How to Configure Your Left 4 Dead Server

Learn how to configure your Left 4 Dead dedicated server using server.cfg and startup parameters.

Left 4 Dead server configuration is managed through the server.cfg file and optional startup parameters. The server runs on the Source engine, so it uses standard Source dedicated server commands and ConVars.

Configuration File

The main configuration file is server.cfg, located in the left4dead/cfg/ directory. This file is executed every time the server starts or a new map loads.

Open the XGamingServer panel

Log in to the XGamingServer panel and stop your Left 4 Dead server.

Navigate to Files

In the sidebar, click Files.

Open server.cfg

Navigate to left4dead > cfg and open server.cfg. If the file doesn't exist, create it.

Add your settings

Add or modify your desired settings (see the reference tables below).

Save and restart

Click Save and start your server.

Essential Server Settings

These are the most commonly configured settings for server.cfg:

CommandDescriptionExample
hostnameServer name shown in the browserhostname "My L4D Server"
sv_passwordPassword required to joinsv_password "secret123"
rcon_passwordPassword for remote console accessrcon_password "admin123"
maxplayersMaximum player countmaxplayers 8
sv_lanLAN-only mode (0 = internet, 1 = LAN)sv_lan 0
sv_regionServer region for browser filteringsv_region 0
sv_contactAdmin contact emailsv_contact "admin@example.com"

Region Codes

The sv_region value determines where your server appears in regional filters:

ValueRegion
0US East
1US West
2South America
3Europe
4Asia
5Australia
6Middle East
7Africa
255World (all regions)

Gameplay Settings

CommandDescriptionDefault
sv_cheatsEnable cheat commands (0 = off, 1 = on)0
mp_friendlyfireEnable friendly fire (0 = off, 1 = on)0
mp_autoteambalanceAuto-balance teams in Versus mode1
sv_alltalkAll players hear each other regardless of team0
sv_pausableAllow the game to be paused0
sv_voiceenableEnable voice chat1
mp_disable_autokickDisable automatic idle kicks0

Network and Performance Settings

CommandDescriptionRecommended
sv_maxrateMaximum bandwidth per client (bytes/sec)0 (unlimited)
sv_minrateMinimum bandwidth per client (bytes/sec)3500
sv_maxupdaterateMaximum update packets per second to clients30
sv_minupdaterateMinimum update packets per second to clients10
sv_maxcmdrateMaximum command packets per second from clients30
sv_mincmdrateMinimum command packets per second from clients10
fps_maxServer tick rate cap300
net_maxfilesizeMaximum file download size (MB)64

💡 Tip: For the best experience, set sv_maxupdaterate and sv_maxcmdrate to 30 for standard servers. Higher values consume more bandwidth but provide smoother gameplay for clients with good connections.

Example server.cfg

Here's a complete example configuration file:

// Server Identity
hostname "My Left 4 Dead Server"
sv_password ""
rcon_password "YourSecureRCON"
sv_region 0
sv_lan 0

// Player Settings
maxplayers 8
mp_friendlyfire 0
sv_alltalk 0
sv_voiceenable 1

// Network Settings
sv_maxrate 0
sv_minrate 3500
sv_maxupdaterate 30
sv_minupdaterate 10
sv_maxcmdrate 30
sv_mincmdrate 10

// Server Behavior
mp_disable_autokick 1
sv_pausable 0
sv_cheats 0
sv_consistency 1

// Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1

Startup Parameters

Startup parameters are configured in the Startup tab on the XGamingServer panel. Common parameters:

ParameterDescriptionExample
+mapStarting map+map l4d_hospital01_apartment
+maxplayersMaximum player count+maxplayers 8
+sv_lanLAN mode+sv_lan 0
-portServer port-port 27015
-tickrateServer tick rate-tickrate 30
-ipBind to a specific IP-ip 0.0.0.0
+execExecute a config file on start+exec server.cfg

📝 Note: Parameters with + set ConVars on startup. Parameters with - set engine options. The +exec server.cfg parameter ensures your config file runs on server start — without it, your settings in server.cfg might not load.

Additional Config Files

You can create additional config files in the left4dead/cfg/ directory for different purposes:

FilePurpose
server.cfgMain configuration, runs on every map change
autoexec.cfgRuns once on server start before server.cfg
motd.txtMessage of the Day shown to joining players
mapcycle.txtMap rotation list (one map per line)
banned_user.cfgBanned Steam IDs
banned_ip.cfgBanned IP addresses

💡 Tip: Use motd.txt to welcome players to your server. You can include HTML formatting for a polished look. The MOTD appears as a popup when players join.

If you get stuck at any time, you can join our Discord.

How is this guide?

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

On this page