Skip to content

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.

  1. Open your server in the panel and go to Startup.
  2. Change the fields you need and save.
  3. 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.

  • With Lobby Only off (the default), anyone can open the developer console and type connect host:port using 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.

L4D2 has no admin menu of its own.

RCON, no addons:

  1. Set Admin (RCON) Password on Startup and restart.
  2. In game, open the console and run rcon_password <the password>, then rcon <command> — rcon status to check it worked, rcon changelevel c2m1_highway to move everyone.

SourceMod, for a menu and proper admin flags. Our setup installs the game only, so this is a manual upload:

  1. Take a backup, then stop the server.
  2. Download MetaMod:Source and SourceMod for Linux from AlliedModders and upload them into left4dead2/, so you end up with left4dead2/addons/metamod/ and left4dead2/addons/sourcemod/. The MetaMod:Source package includes an addons/metamod.vdf loader file — if MetaMod does not load afterwards, that file is the first thing to check.
  3. Start the server and check Console: meta version and then sm version should both answer.
  4. Join, type status in your console, and copy your Steam ID in the STEAM_0:1:23456 form.
  5. Stop the server, edit left4dead2/addons/sourcemod/configs/admins_simple.ini, and add "STEAM_0:1:23456" "99:z" — z grants every SourceMod command, 99 is immunity.
  6. Start the server, run sm_reloadadmins in Console, and open sm_admin in game to confirm.
  1. Take a backup, then stop the server.
  2. Download the campaign’s .vpk on your PC. Valve’s guide to custom content notes that all Left 4 Dead 2 addon content is delivered as VPKs.
  3. Upload the .vpk into left4dead2/addons/.
  4. 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.
  5. 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.

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.

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.
  • 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.
  • Nobody can join by IP. Lobby Only is set to 1. Set it to 0 on Startup and restart.
  • A custom campaign is missing from the map list. The .vpk is not in left4dead2/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.