How to Configure Your Left 4 Dead 2 Server
Complete L4D2 server.cfg reference — hostname, password, game modes, difficulty, and Workshop maps.
L4D2 uses server.cfg in left4dead2/cfg/.
Key Settings
hostname "My L4D2 Server"
sv_password ""
rcon_password "secretpass"
sv_lan 0
sv_cheats 0
mp_gamemode coop
z_difficulty NormalGame Modes
| 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) |
| Realism Versus | realism + versus | Hardcore versus mode |
| Mutation | mutation* | Weekly special modes |
Set via: mp_gamemode coop or startup parameter +mp_gamemode versus
Difficulty
| Value | Level |
|---|---|
Easy | Easy |
Normal | Normal |
Hard | Advanced |
Impossible | Expert |
Set via: z_difficulty Normal
Workshop Maps/Addons
L4D2 supports Steam Workshop. Add to startup:
+host_workshop_collection COLLECTION_IDOr use host_workshop_map MAP_ID in console.
FastDL
sv_downloadurl "https://yoursite.com/fastdl/"
sv_allowdownload 1Plugins
Install MetaMod:Source + SourceMod for admin management.
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