Call of Duty: Modern Warfare 3 Server Guide

📋 Quick Info

Server Specifications

🔌 Ports & Firewall Configuration

Modern Warfare 3 servers require multiple port configurations for proper operation:

Port Protocol Purpose Required
27016 (configurable) UDP Game port Yes
Game port - 1 UDP Query port (net_queryPort) Yes
-18249 UDP Auth port (net_authPort) Yes
Same as game port TCP RCON remote control Optional

Firewall Examples

UFW (Ubuntu/Debian):

sudo ufw allow 27016/udp comment 'MW3 Game Port' sudo ufw allow 27015/udp comment 'MW3 Query Port' sudo ufw allow 27016/tcp comment 'MW3 RCON'

Windows Firewall:

netsh advfirewall firewall add rule name="MW3 Game" dir=in action=allow protocol=UDP localport=27016 netsh advfirewall firewall add rule name="MW3 Query" dir=in action=allow protocol=UDP localport=27015 netsh advfirewall firewall add rule name="MW3 RCON" dir=in action=allow protocol=TCP localport=27016

⚙️ Installation & Setup

System Requirements

Installation Steps

  1. Install Modern Warfare 3: You must have legitimate MW3 game files
  2. Locate Dedicated Server Files: Server files included with MW3 installation
  3. Create Server Directory: Separate directory recommended for dedicated server
  4. Create Server Config: Create server.cfg in players2 folder
  5. Configure Firewall: Allow required ports through Windows Firewall

📝 Configuration

Basic server.cfg Example

// Server Name set sv_hostname "My MW3 Server" // Network Settings (CRITICAL - Multi-port configuration) set net_port 27016 set net_queryPort -1 // Auto-set to net_port - 1 (27015) set net_masterServerPort -1 // Disable master server set net_authPort -18249 // Auth port offset // Server Type set dedicated 2 // Player Limits (MAX 18 for MW3) set sv_maxclients 18 // RCON Password set rcon_password "your_secure_password_here" // Game Settings set g_gametype "war" // dm, war, sab, koth, sd, dom, dd, ctf set sv_maxPing 350 // Map Rotation set sv_mapRotation "gametype war map mp_dome gametype war map mp_hardhat gametype war map mp_seatown" // 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 logfile 2 // Voice Chat set sv_voice 0 // Anti-Lag set sv_fps 20 // Auto-Balance set scr_teambalance 1

🚀 Startup Parameters

Parameter Description Example
+set dedicated Server mode (2=Internet) +set dedicated 2
+set net_port Main game port +set net_port 27016
+set net_queryPort Query port (-1 for auto: port-1) +set net_queryPort -1
+set net_authPort Auth port (-18249 standard) +set net_authPort -18249
+set net_masterServerPort Master server port (-1 to disable) +set net_masterServerPort -1
+set sv_maxclients Maximum player slots (MAX 18) +set sv_maxclients 18
+set rcon_password RCON password for remote admin +set rcon_password "secret123"
+exec Execute config file on startup +exec server.cfg
+map_rotate Start map rotation from config +map_rotate
+map Start with specific map +map mp_dome

Example Startup Command

iw5mp_server.exe +set dedicated 2 +set net_port 27016 +set net_queryPort -1 +set net_authPort -18249 +set net_masterServerPort -1 +set sv_maxclients 18 +exec server.cfg +map_rotate

Example Batch File (start_server.bat)

@echo off title MW3 Dedicated Server iw5mp_server.exe +set dedicated 2 +set net_port 27016 +set net_queryPort -1 +set net_authPort -18249 +set net_masterServerPort -1 +set sv_maxclients 18 +exec server.cfg +map_rotate pause

🔧 Troubleshooting

Server Not Appearing in Browser

Issue: Players cannot see the server in MW3 browser.

Solutions:

Port Configuration Issues

Issue: Server fails to start or clients cannot connect.

Solutions:

Server Crashes on Startup

Issue: Dedicated server crashes immediately after launch.

Solutions:

Connection Problems

Issue: Players cannot connect or timeout.

Solutions:

High Lag/Ping Issues

Issue: Players experience significant lag.

Solutions:

Player Limit Issues

Issue: Cannot set more than 18 players.

Solutions:

RCON Not Working

Issue: Cannot connect via RCON.

Solutions:

🎮 Game Types

Modern Warfare 3 supports the following game modes:

🗺️ Default Maps

Modern Warfare 3 includes the following multiplayer maps:

Base Game Maps

DLC Maps

Popular server modifications compatible with MW3:

📚 Resources

Important Notes