How to Configure Your Left 4 Dead 2 Server (server.cfg)
Complete L4D2 server.cfg reference — game modes, difficulty, Workshop maps, SourceMod, and FastDL.
server.cfg
Editing server.cfg
Open Files
In the XGamingServer Panel, click Files → left4dead2/cfg/ → open server.cfg.
Key Settings
hostname "My L4D2 Server"
sv_password ""
rcon_password "YourRconPassword"
sv_lan 0
sv_cheats 0
mp_gamemode coop
z_difficulty NormalGame Modes
Set via mp_gamemode in config or +mp_gamemode in Startup:
| Mode | Value | Description |
|---|---|---|
| Campaign Co-op | coop | Standard 4-player co-op campaign |
| Versus | versus | 4v4 survivors vs infected |
| Scavenge | scavenge | Competitive fuel collection |
| Survival | survival | Holdout against endless waves |
| Realism | realism | Hardcore co-op (no outlines, harder) |
| Mutation | mutation* | Weekly special modes |
Difficulty
Set via z_difficulty:
| Value | Level | Description |
|---|---|---|
Easy | Easy | Fewer infected, more supplies |
Normal | Normal | Standard experience |
Hard | Advanced | More special infected, less health |
Impossible | Expert | Maximum challenge |
Workshop Maps
L4D2 supports Steam Workshop for custom campaigns and maps:
+host_workshop_collection COLLECTION_IDSet in the Startup tab or add to the startup command. Or load a single map in Console:
host_workshop_map MAP_IDFastDL
sv_downloadurl "https://yourcdn.com/left4dead2/"
sv_allowdownload 1Plugins — MetaMod + SourceMod
Same installation as other Source games. See CS:GO guide for steps.
Popular L4D2 plugins: Left 4 Downtown 2 (unlock mutations), L4D2 Competitive Framework, Versus Stats
Ports
| Port | Protocol | Purpose |
|---|---|---|
| 27015 | UDP + TCP | Game + RCON |
| 27020 | UDP | SourceTV |
Related Guides
How is this guide?

40% Off — Limited TimeGet your Left 4 Dead 2 server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server