Left 4 Dead is a multiplayer game server that can be hosted on a VPS or dedicated server. This comprehensive guide covers everything you need to know about hosting a Left 4 Dead server for your community.
27015222840left4dead/cfg/server.cfg - The main config file| Port | Protocol | Purpose |
|---|---|---|
27015 |
UDP | Game/Query (can change with -port) |
27015 |
TCP | RCON |
27020 |
UDP | SourceTV (tv_port) |
27005 |
UDP | Client port (outbound/varies) |
26900 |
UDP | Steam (outbound, -sport) (Optional) |
27031-27036 |
UDP | Steam Remote Play / P2P (outbound) (Optional) |
27036-27037 |
TCP | Steam Remote Play (inbound where applicable) (Optional) |
Allow server ports through your firewall:
# UFW (Ubuntu/Debian)
sudo ufw allow [PORT]/tcp
sudo ufw allow [PORT]/udp
sudo ufw reload
# FirewallD (CentOS/RHEL)
sudo firewall-cmd --permanent --add-port=[PORT]/tcp
sudo firewall-cmd --permanent --add-port=[PORT]/udp
sudo firewall-cmd --reload
# Windows Firewall
netsh advfirewall firewall add rule name="Left 4 Dead Server" dir=in action=allow protocol=TCP localport=[PORT]
netsh advfirewall firewall add rule name="Left 4 Dead Server" dir=in action=allow protocol=UDP localport=[PORT]
# Update system packages
sudo apt update && sudo apt upgrade -y
# Create server directory
mkdir -p ~/gameserver
cd ~/gameserver
# Download server files (method varies by game)
# Check official documentation for download links
./srcds_run -console -game left4dead2 -ip 0.0.0.0 -port 27015 +map c1m1_hotel +maxplayers 24 +exec server.cfg
Download the server files from the official game website or through Steam (if applicable). Extract to a dedicated folder and run the server executable.
This game can be installed via SteamCMD using App ID: 222840
# Update package list
sudo apt update
# Enable 32-bit architecture
sudo dpkg --add-architecture i386
sudo apt update
# Install SteamCMD
sudo apt install -y lib32gcc-s1 steamcmd
# Create directory for game server
mkdir -p ~/gameservers/left4dead
# Run SteamCMD and download
steamcmd +login anonymous \
+force_install_dir ~/gameservers/left4dead \
+app_update 222840 validate \
+quit
# Server files are now in ~/gameservers/left4dead/
cd ~/gameservers/left4dead
ls -la
C:\steamcmd\cd C:\steamcmd
steamcmd.exe +login anonymous ^
+force_install_dir C:\gameservers\left4dead ^
+app_update 222840 validate ^
+quit
After installation, you'll need to configure your server. Here's where to find the configuration files and what settings you can change.
Important configuration files for this server:
left4dead/cfg/server.cfg - The main config file