Left4dead 2 the sequel to the record breaking survival shooter Left4dead has been performing pretty well with bugs until recently after getting all patched up. If you have been enjoying the game on international servers, its time you make one of your own to play Left4dead 2 in a lag free setting.
Left4dead 2 Server Prerequisites
1. Good Connection.
2. Good Machine.
3. Port forwarding “UDP: 27015 and 27006″
4.You will need a static IP.
Download and Install Left4dead 2 Dedicated Server
1. Download hldsupdatetool.exe Valve’s server tool. This tool will be used to download and update source dedicated server.
2. Run hldsupdatetool and install it in a folder say C:/SRCDS.
3. Now go to the folder containing hldsupdatetool say C:/SRCDS and double click it to update.
4. To download Left4dead 2 dedicated server you need to create a batch file.
-Create a new text file in C:/SRCDS, rename it to “Update.bat” and add the following code in it.
Edit to add your own server name, rcon password and contact info.This is a basic Left4Dead 2 cfg so you can edit to your own liking if you want.
How to Start Left4Dead 2 Server
There are many ways you can start Left4Dead 2 server, mainly via making a shortcut to srcds.exe, or by making a batch file.
Create Left4Dead 2 Server Startup Shortcut
1. Go to “C:\SRCDS\left4dead2″, right click on “srcds.exe” and create a shortcut.
2. Go to the properties of this shortcut. Now you need to add few parameters in the “Target” line of this shortcut to get the server started. Left4Dead 2 Server Startup Parameters
Edit it with your external IP address in place of “YOUR.WAN.IP.ADD” and your internal ‘static’ IP address in place of “YOUR.LAN.IP.ADD”. You can change the map to your own liking by editing the map name after “+map”. Note: Tap space bar once to add a space after “\srcds.exe” and before “-console.
Once you have done all that click OK to save the changes and double click the shortcut to start your server.
Left4Dead 2 Server Crash Protection Startup Batch File
1. Go to “C:/SRCDS” create a text file, and rename it to “Left4Dead2Server.bat”.
2. Now add following lines of code to make a crash protection Left4Dead 2 server startup batch file.
echo Protecting srcds from crashes…
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
echo (%time%) srcds started.
start /wait left4dead2\srcds.exe -console -game left4dead2 +hostip YOUR.WAN.IP.ADD -ip YOUR.LAN.IP.ADD +hostport 27016 +clientport 27006 -nohltv +exec server.cfg +map l4d_hospital05_rooftop
echo (%time%) WARNING: srcds closed or crashed, restarting.
Edit it with your external IP address in place of “YOUR.WAN.IP.ADD” and your internal ‘static’ IP address in place of “YOUR.LAN.IP.ADD”.You can change the map to your own liking by editing the map name after “+map”. Double clicking “Left4Dead2Server.bat” will start Left4Dead 2 server with crash protection.
Updating the Left4Dead 2 Server
Update the game using Left4Dead 2 hldsupdate tool.
1. If you want to connect to your own Left4Dead 2 Dedicated server, use this command BEFORE starting the lobby.
You also have to be the lobby leader, replace the “ServerIP” with the IP of your server and it will connect to your dedicated server.