28960/UDPCall of Duty: World at War servers require specific ports to be open for proper operation:
| Port | Protocol | Purpose | Required |
|---|---|---|---|
| 28960 | UDP | Game port (default, configurable) | Yes |
| 28960 | TCP | RCON remote control | Optional |
| 20500-20510 | UDP | PunkBuster (if enabled) | Optional |
UFW (Ubuntu/Debian):
sudo ufw allow 28960/udp comment 'CoDWaW Game Port'
sudo ufw allow 28960/tcp comment 'CoDWaW RCON'
sudo ufw allow 20500:20510/udp comment 'CoDWaW PunkBuster'
FirewallD (CentOS/RHEL/Fedora):
sudo firewall-cmd --permanent --add-port=28960/udp
sudo firewall-cmd --permanent --add-port=28960/tcp
sudo firewall-cmd --permanent --add-port=20500-20510/udp
sudo firewall-cmd --reload
iptables:
sudo iptables -A INPUT -p udp --dport 28960 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 28960 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 20500:20510 -j ACCEPT
mkdir -p ~/codwawserver
cd ~/codwawserversudo apt-get install lib32gcc1 lib32stdc++6 # Debian/Ubuntu
sudo yum install glibc.i686 libstdc++.i686 # CentOS/RHELchmod +x codwaw_lnxdedserver.cfg in the main directoryserver.cfg file in the main directoryCoDWaWmp.exe with appropriate parameters// Server Name
set sv_hostname "My World at War Server"
// Network Settings
set net_ip "0.0.0.0"
set net_port 28960
// Server Type (1=LAN, 2=Internet)
set dedicated 2
// Player Limits
set sv_maxclients 24
// RCON Password
set rcon_password "your_secure_password_here"
// Game Settings
set g_gametype "war" // dm, war, sab, koth, sd, ctf
set sv_maxPing 350
set sv_minPing 0
// PunkBuster (0=off, 1=on)
set sv_punkbuster 1
// Map Rotation
set sv_mapRotation "gametype war map mp_castle gametype war map mp_dome gametype war map mp_makin"
// Password Protection (leave empty for public)
set g_password ""
// Friendly Fire
set scr_team_fftype 0 // 0=off, 1=on, 2=reflect
// Kill Cam
set scr_game_allowkillcam 1
// Hardcore Mode
set scr_hardcore 0
// Game Log
set g_log "games_mp.log"
set g_logsync 2
// Voice Chat
set sv_voice 1
// Anti-Lag
set sv_fps 20
// Downloads
set sv_allowDownload 1
// Pure Server
set sv_pure 1
// Auto-Balance
set scr_teambalance 1
// Zombies Mode Server
set sv_hostname "My Zombies Server"
set g_gametype "zom" // Zombies game type
set sv_mapRotation "gametype zom map nazi_zombie_prototype"
// Zombies-specific settings
set scr_zm_round_limit 100
set scr_zm_player_base_health 100
| Parameter | Description | Example |
|---|---|---|
| +set dedicated | Server mode (1=LAN, 2=Internet) | +set dedicated 2 |
| +set net_ip | Bind to specific IP address | +set net_ip "0.0.0.0" |
| +set net_port | Server port (default: 28960) | +set net_port 28960 |
| +set fs_basepath | Base installation directory | +set fs_basepath "/home/user/codwaw" |
| +set fs_homepath | Config and log directory (deprecated) | +set fs_homepath "/home/user/.codwaw" |
| +set fs_savepath | Save path for logs and user data | +set fs_savepath "/home/user/codwawdata" |
| +set fs_game | Mod folder (if using mods) | +set fs_game "mods/mymod" |
| +set sv_punkbuster | Enable PunkBuster (0=off, 1=on) | +set sv_punkbuster 1 |
| +exec | Execute config file on startup | +exec server.cfg |
| +set rcon_password | RCON password for remote admin | +set rcon_password "secret123" |
| +set sv_maxclients | Maximum player slots | +set sv_maxclients 24 |
| +map_rotate | Start map rotation from server.cfg | +map_rotate |
| +map | Start with specific map | +map mp_castle |
./codwaw_lnxded +set dedicated 2 +set net_ip "0.0.0.0" +set net_port 28960 +set sv_maxclients 24 +set sv_punkbuster 1 +set fs_savepath "/home/user/codwawdata" +exec server.cfg +map_rotate
./codwaw_lnxded +set dedicated 2 +set net_port 28960 +set sv_maxclients 4 +exec zombies.cfg +map nazi_zombie_prototype
Issue: Players cannot see the server in the in-game browser.
Solutions:
+set dedicated 2 is set (not 1 for LAN)sv_pure settingps aux | grep codwawIssue: Dedicated server crashes immediately after launch.
Solutions:
games_mp.log in fs_savepath directory for errorsserver.cfg syntax is correctchmod +x codwaw_lnxdedIssue: Zombies servers not working or crashing.
Solutions:
g_gametype "zom" is set correctlyIssue: Players cannot connect or timeout.
Solutions:
sv_maxPing settingsv_maxclients)set g_password ""sv_pure - clients must have matching files if enabledIssue: Players experience significant lag.
Solutions:
sv_fps setting (recommended: 20)sv_maxclients if server is overloadedsv_maxPing to restrict high-ping playersIssue: Cannot connect via RCON.
Solutions:
rcon_password is set in server.cfg/rcon login password then /rcon commandCall of Duty: World at War supports the following game modes:
Popular server modifications compatible with Call of Duty: World at War:
g_gametype "zom") typically uses 4-8 player slotsfs_savepath instead of fs_homepath for configuration directories