Skip to content

How to Join Your Left 4 Dead 2 Server ​

Left 4 Dead 2 is built around lobbies. The most reliable ways onto your own server are a direct connection through the game console or the Steam favorites.

Important

For players to be able to join directly, the line sv_allow_lobby_connect_only "0" has to be set in your server.cfg. If it is set to 1, joining is only possible through a matchmaking lobby and every direct connection fails. How to set it is described below.

Find connection details ​

Note

You can find the IP address and the Game Port of your server in the dashboard of your server. Left 4 Dead 2 uses the same port for gameplay and for server queries — there is no separate Query Port.

Warning

Always enter the Game Port from the dashboard. Port 27005 is the local client port of your game and must not be used as a server address.

Allow direct connections on the server ​

You only have to do this once.

  1. Stop the server
    Stop your server via the dashboard.

  2. Connect via SFTP
    Connect to your server via SFTP.

  3. Open server.cfg
    Open the following file. If it does not exist yet, create it:

    /left4dead2/cfg/server.cfg
  4. Enable direct connections
    Add the following line or set it to 0:

    sv_allow_lobby_connect_only "0"

    Note

    The engine describes the value as follows: if it is set to 1, players may only join the server from a matchmaking lobby and may not connect directly.

  5. Start the server
    Save the file and start your server.

Enable the developer console in the game ​

The console is disabled by default in Left 4 Dead 2.

  1. Start Left 4 Dead 2
    Launch the game and wait for the main menu to load.

  2. Open the settings
    Open the Options and switch to Keyboard/Mouse.

  3. Enable the console
    Enable the Developer Console there.

Connect through the game console ​

  1. Open the console
    Press ~ in the game to open the console.

  2. Connect
    Enter the following command:

    connect IP:Port

    Example

    connect 123.45.67.89:27015

    Use the IP address and the Game Port from your dashboard here.

Via Steam favorites ​

  1. Open Steam
    Open the Steam client.

  2. Open the server browser
    Click on View in the top left and select Game Servers.

  3. Add the server
    Click on the Favorites tab and then on + at the bottom right.

  4. Enter the server address
    Enter the IP address and the Game Port of your server and confirm.

  5. Join
    Select the server and connect. The server then also appears in the favorites section inside the game.

Server does not show up in the public server list?

Without a valid Steam Game Server Login Token (GSLT) your server may not be listed in the public server list and does not use VAC. You can create a token at Steam Game Server Accounts using the App ID 550. Afterwards enter it in the dashboard of your server under Settings in the GSL Token field and restart the server. Every server needs its own token. A direct connection via IP and port works without a token as well.