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 Normal

Game Modes

ModeValueDescription
Campaign Co-opcoopStandard 4-player co-op campaign
Versusversus4v4 survivors vs infected
ScavengescavengeCompetitive fuel collection
SurvivalsurvivalHoldout against endless waves
RealismrealismHardcore co-op (no outlines, harder)
Realism Versusrealism + versusHardcore versus mode
Mutationmutation*Weekly special modes

Set via: mp_gamemode coop or startup parameter +mp_gamemode versus

Difficulty

ValueLevel
EasyEasy
NormalNormal
HardAdvanced
ImpossibleExpert

Set via: z_difficulty Normal

Workshop Maps/Addons

L4D2 supports Steam Workshop. Add to startup:

+host_workshop_collection COLLECTION_ID

Or use host_workshop_map MAP_ID in console.

FastDL

sv_downloadurl "https://yoursite.com/fastdl/"
sv_allowdownload 1

Plugins

Install MetaMod:Source + SourceMod for admin management.

Ports

PortProtocolPurpose
27015UDP + TCPGame + RCON
27020UDPSourceTV

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

On this page