This article summarises the Left 4 Dead 2 dedicated server setup. Sources are the LinuxGSM L4D2 page, the GameCP and ZAP-Hosting guides and the AlliedModders wiki. The Valve developer wiki was not reachable. Checked 2026-11-17.
Our team sets the server up; you use the console, file manager (browser and SFTP) and backups. Versions change, so compare with current documentation.
1. Requirements and ports
- The server binary is 32-bit, installed via SteamCMD (LinuxGSM). Sources disagree on the app ID (222860 per LinuxGSM and GameCP, 222840 per ZAP-Hosting), so our team handles installation.
- Ports (LinuxGSM): 27015 UDP game, 27015 TCP query and RCON, 27020 UDP SourceTV, 27005 UDP client. GameCP says one port (27015) suffices for game traffic and queries.
- ZAP-Hosting opens TCP and UDP 27015-27020 in the Windows firewall.
- GameCP guidance: 4-8 players (co-op) 0.5 core/512 MB; 8-16 (Versus/Scavenge) 1 core/1 GB; 16-32 (modded) 2 cores/2 GB. This is a provider recommendation, not a Valve minimum.
2. First start and configuration
- GameCP's launch line uses srcds_run: -game left4dead2 -console -usercon -port 27015 -strictportbind -norestart +map MAP +maxplayers NUMBER +ip 0.0.0.0 +hostname NAME +sv_setsteamaccount TOKEN +exec server.cfg.
- Configuration is l4d2/cfg/server.cfg (ZAP-Hosting). The start map must be an L4D2 map: ZAP-Hosting's example uses the Counter-Strike map de_dust, which needs replacing.
- GameCP settings: game mode (Co-op, Versus, Scavenge, Survival, Realism, Realism Versus, Mutations), difficulty (Easy, Normal, Advanced, Expert), Lobby Connect Only, Search Key.
- GameCP offers a Competitive (100 tick) profile for Versus.
srcds_run -game left4dead2 -console -usercon -port 27015 +map c1m1_hotel +exec server.cfg3. Common problems and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| The server does not show in the list | No GSLT, or joining is restricted to lobby connections | LinuxGSM says it will not show without a GSLT. GameCP says Lobby Connect Only restricts joins to matchmaking, with an option to allow direct connect |
| Players cannot connect | Port 27015 is not open (UDP and TCP) | Check the firewall and open port; ask our team |
| The start map does not load | The given map is not an L4D2 map | Use a real L4D2 map name (GameCP lists Dead Center, Dark Carnival, Swamp Fever, Hard Rain, The Parish, The Sacrifice, No Mercy, Crash Course, Death Toll, Dead Air, Blood Harvest, Cold Stream, The Last Stand) |
| A szerver nem indul | Bad launch parameter or file | Run it in the foreground in debug mode (LinuxGSM) and read the console |
| SourceMod does not load | Rossz mappa vagy rossz build | meta list and sm version show whether it loaded; sourcemod.vdf must be in addons/metamod (AlliedModders) |
| An admin's rights have no effect | admins_simple.ini was not reloaded | Run sm_reloadadmins in the server console |
4. Saves and updates
- Back up the l4d2/cfg folder and the addons folder; they hold settings and plugins.
- Updating goes through SteamCMD (app_update, validate). LinuxGSM's update command does it in one step; stop the server before updating.
- After updating, verify plugins (meta list, sm version) to confirm they still load.
5. Plugins and administration
- Metamod:Source (1.9.0 or newer) goes in first, then SourceMod; both land in the addons folder of the L4D2 mod folder (AlliedModders).
- Admin: addons/sourcemod/configs/admins_simple.ini, one identifier and flag letters per line, for example "STEAM_0:1:16" "bce"; z grants all rights.
- GameCP handles the server and RCON passwords as settings (Server Password, RCON Password).
6. Sizing: which plan to pick
Load comes mainly from game mode, player count and plugins. GameCP lists 4 per team as the player limit. No guarantees.
- Co-op with 4 players: Start.
- Versus/Scavenge with 8 players and a few plugins: Pro.
- Many plugins or 100 tick: Max.



