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 Filesleft4dead2/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 Normal

Game Modes

Set via mp_gamemode in config or +mp_gamemode in Startup:

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)
Mutationmutation*Weekly special modes

Difficulty

Set via z_difficulty:

ValueLevelDescription
EasyEasyFewer infected, more supplies
NormalNormalStandard experience
HardAdvancedMore special infected, less health
ImpossibleExpertMaximum challenge

Workshop Maps

L4D2 supports Steam Workshop for custom campaigns and maps:

+host_workshop_collection COLLECTION_ID

Set in the Startup tab or add to the startup command. Or load a single map in Console:

host_workshop_map MAP_ID

FastDL

sv_downloadurl "https://yourcdn.com/left4dead2/"
sv_allowdownload 1

Plugins — 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

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