Before you start

  • A Left 4 Dead 2 server with us and access to the game panel.
  • Left 4 Dead 2 on Steam.

1. Allow joining from the console

  1. In the game panel open the Files tab and the left4dead2/cfg folder. If there is no server.cfg file in it, click New File, otherwise open the file.
  2. Add the line sv_allow_lobby_connect_only 0. Without it the server lets in only players from a lobby, and connect does not work.
  3. Set the server's name with the line hostname "My server" and a password with sv_password "secret". For no password leave the password line out.
  4. For a new file click Create File, type the name server.cfg and confirm. Save a changed file with Save Content. Then click Restart on the Console tab (the circular arrow at the top near the server's name).

2. Join from the game

  1. The server's address is in the client area on the service's page under IP address, for example node1.imperialhost.cc:30005. In the game panel it is at the top under the server's name, and the Copy button copies it.
  2. In L4D2 open the options, the keyboard and mouse tab, and allow the developer console.
  3. Open the console with the key below Esc and type connect node1.imperialhost.cc:30005 with your address and port. For a server with a password type password secret first.

3. Versus mode and maps

  1. For versus add the line mp_gamemode versus to server.cfg and restart the server.
  2. Set the default map on the Startup tab in DEFAULT MAP, for example c1m1_hotel. To switch it while the server runs, type changelevel c2m1_highway in the panel's console.
  3. Upload community maps and campaigns (.vpk files) to the left4dead2/addons folder on the Files tab with Upload and restart the server. Upload a file over 100 MB over SFTP: Connect to your server with SFTP (FileZilla, WinSCP).

4. Admins with SourceMod

  1. Download Metamod:Source from metamodsource.net and SourceMod from sourcemod.net, both for Linux.
  2. Unpack both archives on your computer and upload what is inside them over SFTP to the left4dead2 folder on the server: Connect to your server with SFTP (FileZilla, WinSCP).
  3. Restart the server and type sm version in the panel's console. If it prints the SourceMod version, it runs.
  4. Join, type status in the panel's console and copy your Steam ID. In the file left4dead2/addons/sourcemod/configs/admins_simple.ini add a line with your Steam ID, for example "STEAM_0:1:12345678" "99:z". Save and type sm_reloadadmins in the console.

Troubleshooting

connect does not work

The line sv_allow_lobby_connect_only 0 is missing in left4dead2/cfg/server.cfg, or the server has not restarted since the change. Add it and restart the server.

The console won't open in the game

Allow it in the options on the keyboard and mouse tab. It opens with the key below Esc, left of 1. The -console launch option in the game's properties in Steam helps too.

A community map can't be played

Players need the same map as the server, and the server must restart after you upload the .vpk file.

I want more than 4 survivors

The base game has 4 survivors, and versus is 4 against 4. More players need a community add-on, for example L4DToolZ for Metamod:Source, which you install yourself.

Still stuck?

Message us on Discord. The AI assistant Aurel answers first, and you can call an admin. Or open a ticket in the client area.