27015/UDPDay of Defeat servers require specific ports for proper operation:
| Port | Protocol | Purpose | Required |
|---|---|---|---|
| 27015 (configurable) | UDP | Game port | Yes |
| 27015 (same as game) | TCP | RCON remote control | Optional |
| 27005 | UDP | Client port (outbound) | Yes |
| 26900 | UDP | Master server communication | Optional |
UFW (Ubuntu/Debian):
sudo ufw allow 27015/udp comment 'DoD Game Port'
sudo ufw allow 27015/tcp comment 'DoD RCON'
sudo ufw allow 27005/udp comment 'DoD Client Port'
FirewallD (CentOS/RHEL):
sudo firewall-cmd --permanent --add-port=27015/udp
sudo firewall-cmd --permanent --add-port=27015/tcp
sudo firewall-cmd --permanent --add-port=27005/udp
sudo firewall-cmd --reload
iptables:
iptables -A INPUT -p udp --dport 27015 -j ACCEPT
iptables -A INPUT -p tcp --dport 27015 -j ACCEPT
iptables -A INPUT -p udp --dport 27005 -j ACCEPT
sudo apt-get install steamcmd # Debian/Ubuntu
sudo yum install steamcmd # CentOS/RHELsteamcmd +login anonymous +force_install_dir /home/steam/dod +app_update 90 validate +quit/home/steam/dod/dod/ and create configuration fileC:\steamcmd\steamcmd +login anonymous +force_install_dir C:\dod +app_update 90 validate +quitserver.cfg in C:\dod\dod\// Server Name
hostname "My Day of Defeat Server"
// RCON Password
rcon_password "your_secure_password"
// Server Password (leave blank for public)
sv_password ""
// Network Settings
sv_region 255 // 0=US East, 1=US West, 2=South America, 3=Europe, etc.
sv_contact "admin@example.com"
// Game Settings
mp_teamplay 1
mp_friendlyfire 0
mp_fraglimit 0
mp_timelimit 30 // Minutes per map
mp_maxrounds 0
// Team Balance
mp_autoteambalance 1
mp_limitteams 2 // Max player difference between teams
// Class Limits (per team)
mp_limit_allies -1 // -1 = no limit
mp_limit_axis -1
// Specific Class Limits
mp_limit_rifleman -1
mp_limit_assault -1
mp_limit_support -1
mp_limit_sniper 2 // Limit snipers
mp_limit_mg 2 // Limit machine gunners
// Spawn Settings
mp_respawnstyle 0 // 0=wave spawn, 1=instant
mp_respawndelay 0
// Hit Registration
sv_maxrate 20000
sv_minrate 5000
sv_maxupdaterate 101
sv_minupdaterate 20
// Server Performance
sv_maxspeed 320
sv_fps_max 1000
// Logging
log on
sv_logblocks 1
sv_logecho 0
sv_logfile 1
sv_log_onefile 0
// Map Cycle
mapcyclefile "mapcycle.txt"
// Execute additional configs
exec banned.cfg
dod_anzio
dod_avalanche
dod_caen
dod_charlie
dod_chemille
dod_donner
dod_flash
dod_forest
dod_glider
dod_kalt
dod_kraftstoff
dod_merderet
dod_northbound
dod_palermo
dod_saints
dod_sturm
dod_vicenza
dod_zalec
| Parameter | Description | Example |
|---|---|---|
| -game | Specify game mod (dod) | -game dod |
| -port | Server port | -port 27015 |
| +maxplayers | Maximum player slots | +maxplayers 32 |
| +map | Starting map | +map dod_avalanche |
| +exec | Execute config file on startup | +exec server.cfg |
| -ip | Bind to specific IP | -ip 192.168.1.100 |
| -console | Enable console output | -console |
| -condebug | Log console output to file | -condebug |
./hlds_run -game dod -port 27015 +maxplayers 32 +map dod_avalanche +exec server.cfg -console
hlds.exe -game dod -port 27015 +maxplayers 32 +map dod_avalanche +exec server.cfg -console
#!/bin/bash
cd /home/steam/dod
./hlds_run -game dod -port 27015 +maxplayers 32 +map dod_avalanche +exec server.cfg -console
Issue: Server not visible in the in-game server browser.
Solutions:
sv_lan 0 is set (not LAN-only mode)Issue: Players cannot connect or timeout.
Solutions:
maxplayers limit)sv_password ""dod/logs/ for connection errorsIssue: Players experiencing high latency.
Solutions:
sv_maxrate and sv_maxupdateratesv_fps_max 1000 for smoother gameplaymaxplayers if server is overloadedIssue: Cannot connect via RCON.
Solutions:
rcon_password is set in server.cfgIssue: Dedicated server crashes immediately.
Solutions:
dod/logs/ for error messagesserver.cfg syntax is correctldd hlds_linuxIssue: Server fails to load specific maps.
Solutions:
dod/maps/mapcycle.txt for typos in map namesDay of Defeat features team-based World War 2 combat with objective-based gameplay:
Popular server modifications compatible with Day of Defeat: