Left 4 Dead 2 server guide
Left 4 Dead 2 is one of the lightest servers you can rent, and almost everything a group needs — the starting campaign, the server name, the join password, whether people can connect by IP — is a field on the Startup tab. Custom campaigns and admin plugins are files you upload yourself.
Change server settings
Section titled “Change server settings”- Open your server in the panel and go to Startup.
- Change the fields you need and save.
- Restart from Console.
| Field | What it does |
|---|---|
| Default Map | The map the server loads at start. c1m1_hotel by default — the first map of Dead Center. |
| Server Name | The name in the server browser. It cannot contain ", a backtick, $ or \. |
| Admin (RCON) Password | Password for remote console. Leave empty to keep RCON off. |
| Lobby Only | 1 means players join only through a game lobby; 0 also allows connect host:port from the console. |
| Auto Update | Updates the server files when the server starts. On by default. |
Server Name, Admin (RCON) Password and Lobby Only are written into left4dead2/cfg/server.cfg before
every start, so editing those three lines by hand is wasted work. Other cvars you add to that file, such as difficulty
or sv_cheats, are left alone.
Let people join
Section titled “Let people join”- With Lobby Only off (the default), anyone can open the developer console and type
connect host:portusing the address shown on the server page in the panel. - With Lobby Only on, the server waits for a lobby. One player starts a lobby in game, sets it to the campaign and difficulty they want, and picks your server; everyone else joins through that lobby.
If friends say “I can’t find it in the browser”, remember that Left 4 Dead 2’s browser tabs favor official and Steam group servers. A private server like yours is easiest to reach with direct connect.
Make yourself an admin
Section titled “Make yourself an admin”L4D2 has no admin menu of its own.
RCON, no addons:
- Set Admin (RCON) Password on Startup and restart.
- In game, open the console and run
rcon_password <the password>, thenrcon <command>—rcon statusto check it worked,rcon changelevel c2m1_highwayto move everyone.
SourceMod, for a menu and proper admin flags. Our setup installs the game only, so this is a manual upload:
- Take a backup, then stop the server.
- Download MetaMod:Source and SourceMod for Linux from AlliedModders and upload them into
left4dead2/, so you end up withleft4dead2/addons/metamod/andleft4dead2/addons/sourcemod/. The MetaMod:Source package includes anaddons/metamod.vdfloader file — if MetaMod does not load afterwards, that file is the first thing to check. - Start the server and check Console:
meta versionand thensm versionshould both answer. - Join, type
statusin your console, and copy your Steam ID in theSTEAM_0:1:23456form. - Stop the server, edit
left4dead2/addons/sourcemod/configs/admins_simple.ini, and add"STEAM_0:1:23456" "99:z"—zgrants every SourceMod command,99is immunity. - Start the server, run
sm_reloadadminsin Console, and opensm_adminin game to confirm.
Custom campaigns
Section titled “Custom campaigns”- Take a backup, then stop the server.
- Download the campaign’s
.vpkon your PC. Valve’s guide to custom content notes that all Left 4 Dead 2 addon content is delivered as VPKs. - Upload the
.vpkintoleft4dead2/addons/. - Start the server and run
maps *in Console. That prints every map the server can see; find the custom campaign’s first map in the list. - Load it with
changelevel <map name>. To make it the starting map, put the same name in Default Map on Startup.
Every player needs the same campaign installed in their own game before they join.
Change the mode
Section titled “Change the mode”The server accepts the game’s modes (co-op, realism, versus, survival, scavenge), and the mode is normally chosen by the lobby that connects to it: players create a lobby for the mode they want and pick your server.
To load a map in a given mode yourself, add the mode after the map name in Console, for example
map c8m1_apartment versus. The mp_gamemode cvar that many guides mention is not recognised on our
server’s console; Valve’s own notes say the mode is changed with the map command.
Where your files are
Section titled “Where your files are”| Path | What is in it |
|---|---|
left4dead2/cfg/server.cfg |
Main config, read at startup. |
left4dead2/addons/ |
Custom campaigns, MetaMod and SourceMod. |
left4dead2/maps/ |
Maps shipped with the game, plus any loose .bsp you upload. |
Useful console commands
Section titled “Useful console commands”status— players and Steam IDs.changelevel <map>— switch map now.kick <name>— disconnect a player.say <text>— chat message from the console.sv_password <password>— password for this session only.maps *— list every map the server can load.
Common problems
Section titled “Common problems”- Nobody can join by IP. Lobby Only is set to
1. Set it to0on Startup and restart. - A custom campaign is missing from the map list. The
.vpkis not inleft4dead2/addons/, or the server was not restarted after the upload. - Players are dropped after a Left 4 Dead 2 update. Client and server builds differ; restart with Auto Update on and watch Console for the download to finish.
- “Server uses different class tables”. A client with modified game files, or a server running an older build than the client. Verify the client’s files, and update the server.
