Day of Defeat Server Guide

📋 Quick Info

Server Specifications

🔌 Ports & Firewall Configuration

Day 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

Firewall Examples

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

⚙️ Installation & Setup

System Requirements

Installation via SteamCMD (Linux)

  1. Install SteamCMD:
    sudo apt-get install steamcmd # Debian/Ubuntu sudo yum install steamcmd # CentOS/RHEL
  2. Run SteamCMD and install DoD server:
    steamcmd +login anonymous +force_install_dir /home/steam/dod +app_update 90 validate +quit
  3. Create server.cfg: Navigate to /home/steam/dod/dod/ and create configuration file

Installation via SteamCMD (Windows)

  1. Download SteamCMD from Valve's website
  2. Extract to C:\steamcmd\
  3. Run: steamcmd +login anonymous +force_install_dir C:\dod +app_update 90 validate +quit
  4. Create server.cfg in C:\dod\dod\

📝 Configuration

Basic server.cfg Example

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

mapcycle.txt Example

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

🚀 Startup Parameters

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

Example Startup Command (Linux)

./hlds_run -game dod -port 27015 +maxplayers 32 +map dod_avalanche +exec server.cfg -console

Example Startup Command (Windows)

hlds.exe -game dod -port 27015 +maxplayers 32 +map dod_avalanche +exec server.cfg -console

Example Startup Script (Linux)

#!/bin/bash cd /home/steam/dod ./hlds_run -game dod -port 27015 +maxplayers 32 +map dod_avalanche +exec server.cfg -console

🔧 Troubleshooting

Server Not Appearing in Browser

Issue: Server not visible in the in-game server browser.

Solutions:

Connection Issues

Issue: Players cannot connect or timeout.

Solutions:

High Ping/Lag Issues

Issue: Players experiencing high latency.

Solutions:

RCON Not Working

Issue: Cannot connect via RCON.

Solutions:

Server Crashes on Startup

Issue: Dedicated server crashes immediately.

Solutions:

Maps Not Loading

Issue: Server fails to load specific maps.

Solutions:

🎮 Game Modes

Day of Defeat features team-based World War 2 combat with objective-based gameplay:

Player Classes

🗺️ Default Maps

Official Maps

Popular server modifications compatible with Day of Defeat:

📚 Resources

Important Notes