Enhanced game documentation with comprehensive installation and configuration details

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-22 21:36:59 +00:00
parent b72c8ea19d
commit 0216af04ed
299 changed files with 20545 additions and 21001 deletions

View file

@ -1,501 +1,385 @@
<?php
/**
* Call of Duty 4: Modern Warfare Server Documentation
* Call of Duty 4: Modern Warfare Server Documentation - Comprehensive Guide
* General game server hosting information (not platform-specific)
*/
?>
<style>
.nav-menu {
background: #1a1a2e;
padding: 15px;
border-radius: 8px;
margin-bottom: 25px;
}
.nav-menu a {
color: #4a9eff;
text-decoration: none;
margin-right: 15px;
font-size: 14px;
}
.nav-menu a:hover {
color: #6bb3ff;
text-decoration: underline;
}
.info-box {
background: #1e3a5f;
padding: 20px;
border-left: 4px solid #3b82f6;
margin: 20px 0;
border-radius: 4px;
}
.warning-box {
background: #78350f;
padding: 20px;
border-left: 4px solid #f59e0b;
margin: 20px 0;
border-radius: 4px;
}
.code-block {
background: #0f172a;
padding: 15px;
border-radius: 4px;
margin: 15px 0;
overflow-x: auto;
}
.code-block code {
color: #a5b4fc;
font-family: 'Courier New', monospace;
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
background: #1a1a2e;
}
table th {
background: #2a2a4e;
color: #ffffff;
padding: 12px;
text-align: left;
border: 1px solid #3a3a6e;
}
table td {
padding: 10px 12px;
border: 1px solid #3a3a6e;
color: #e5e7eb;
}
table tr:nth-child(even) {
background: #222244;
}
</style>
<div class="nav-menu">
<strong style="color: #ffffff;">Quick Navigation:</strong>
<a href="#quick-info">Quick Info</a> |
<a href="#ports">Ports</a> |
<a href="#installation">Installation</a> |
<a href="#configuration">Configuration</a> |
<a href="#parameters">Parameters</a> |
<a href="#troubleshooting">Troubleshooting</a> |
<a href="#game-types">Game Types</a> |
<a href="#maps">Maps</a> |
<a href="#related-mods">Mods</a>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">📚 Quick Navigation</h3>
<div style="display: flex; flex-wrap: wrap; gap: 10px;">
<a href="#quick-info" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Quick Info</a>
<a href="#ports" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">🔌 Ports</a>
<a href="#installation" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Installation</a>
<a href="#configuration" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Configuration</a>
<a href="#parameters" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">⚙️ Startup Parameters</a>
<a href="#troubleshooting" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">🔧 Troubleshooting</a>
<a href="#performance" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Performance</a>
<a href="#security" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Security</a>
</div>
</div>
<h1>Call of Duty 4: Modern Warfare Server Guide</h1>
<h1>Call of Duty 4: Modern Warfare Server Hosting Guide</h1>
<h2 id="quick-info">📋 Quick Info</h2>
<div class="info-box">
<h3 style="color: #ffffff; margin-top: 0;">Server Specifications</h3>
<ul style="color: #e5e7eb; line-height: 1.8;">
<li><strong style="color: #ffffff;">Game:</strong> Call of Duty 4: Modern Warfare (2007)</li>
<li><strong style="color: #ffffff;">Platform:</strong> Linux / Windows</li>
<li><strong style="color: #ffffff;">Default Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">28960/UDP</code></li>
<li><strong style="color: #ffffff;">Max Players:</strong> 64 (typical: 18-32)</li>
<li><strong style="color: #ffffff;">Control Protocol:</strong> RCON</li>
<li><strong style="color: #ffffff;">Executable (Linux):</strong> cod4_lnxded</li>
<li><strong style="color: #ffffff;">Executable (Windows):</strong> iw3mp.exe</li>
<h2>Overview</h2>
<p>Call of Duty 4: Modern Warfare 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 Call of Duty 4: Modern Warfare server for your community.</p>
<h2 id="quick-info">Quick Info</h2>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<ul style="color: #e5e7eb; line-height: 1.8; margin: 0;">
<li><strong style="color: #ffffff;">Default Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">28960</code></li>
<li><strong style="color: #ffffff;">Protocol:</strong> UDP</li>
<li><strong style="color: #ffffff;">Minimum RAM:</strong> 512 MB1 GB baseline</li>
<li><strong style="color: #ffffff;">Engine:</strong> id Tech 3 derivative</li>
<li><strong style="color: #ffffff;">Steam App ID:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">N/A</code></li>
<li><strong style="color: #ffffff;">Recommended OS:</strong> Linux (Ubuntu/Debian) or Windows Server</li>
</ul>
</div>
<h2 id="ports">🔌 Ports & Firewall Configuration</h2>
<p>Call of Duty 4: Modern Warfare servers require specific ports to be open for proper operation:</p>
<h2 id="ports">🔌 Network Ports</h2>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">Required Ports</h3>
<table style="width: 100%; color: #e5e7eb; border-collapse: collapse;">
<thead>
<tr style="background: #0f172a;">
<th style="padding: 10px; text-align: left; color: #ffffff;">Port</th>
<th style="padding: 10px; text-align: left; color: #ffffff;">Protocol</th>
<th style="padding: 10px; text-align: left; color: #ffffff;">Purpose</th>
</tr>
</thead>
<tbody>
<tr style="border-bottom: 1px solid #374151;">
<td style="padding: 10px;"><code style="background: #0f172a; padding: 2px 6px; border-radius: 3px;">28960</code></td>
<td style="padding: 10px;">UDP</td>
<td style="padding: 10px;">Game/Query</td>
</tr>
<tr style="border-bottom: 1px solid #374151;">
<td style="padding: 10px;"><code style="background: #0f172a; padding: 2px 6px; border-radius: 3px;">20800</code></td>
<td style="padding: 10px;">UDP</td>
<td style="padding: 10px;">Legacy query (varies) <span style="color: #f59e0b;">(Optional)</span></td>
</tr>
</tbody>
</table>
<h3 style="color: #ffffff; margin-top: 20px;">Firewall Configuration</h3>
<p style="color: #e5e7eb;">Allow server ports through your firewall:</p>
<pre><code style="color: #a5b4fc;"># UFW (Ubuntu/Debian)
sudo ufw allow [PORT]/tcp
sudo ufw allow [PORT]/udp
sudo ufw reload
<table>
<thead>
<tr>
<th>Port</th>
<th>Protocol</th>
<th>Purpose</th>
<th>Required</th>
</tr>
</thead>
<tbody>
<tr>
<td>28960</td>
<td>UDP</td>
<td>Game port (default, configurable)</td>
<td>Yes</td>
</tr>
<tr>
<td>28960</td>
<td>TCP</td>
<td>RCON remote control</td>
<td>Optional</td>
</tr>
<tr>
<td>20500-20510</td>
<td>UDP</td>
<td>PunkBuster (if enabled)</td>
<td>Optional</td>
</tr>
</tbody>
</table>
# FirewallD (CentOS/RHEL)
sudo firewall-cmd --permanent --add-port=[PORT]/tcp
sudo firewall-cmd --permanent --add-port=[PORT]/udp
sudo firewall-cmd --reload
<h3>Firewall Examples</h3>
# Windows Firewall
netsh advfirewall firewall add rule name="Call of Duty 4: Modern Warfare Server" dir=in action=allow protocol=TCP localport=[PORT]
netsh advfirewall firewall add rule name="Call of Duty 4: Modern Warfare Server" dir=in action=allow protocol=UDP localport=[PORT]
</code></pre>
<p><strong>UFW (Ubuntu/Debian):</strong></p>
<div class="code-block">
<code>sudo ufw allow 28960/udp comment 'CoD4 Game Port'
sudo ufw allow 28960/tcp comment 'CoD4 RCON'
sudo ufw allow 20500:20510/udp comment 'CoD4 PunkBuster'</code>
<h3 style="color: #ffffff; margin-top: 20px;">⚠️ Port Security Notes</h3>
<ul style="color: #fef3c7; line-height: 1.8;">
<li>Only open ports that are necessary for the game server to function</li>
<li>Consider using non-standard ports to reduce automated attacks</li>
<li>If using cloud hosting, configure security groups properly</li>
<li>Monitor connection attempts and unusual traffic patterns</li>
</ul>
</div>
<p><strong>FirewallD (CentOS/RHEL/Fedora):</strong></p>
<div class="code-block">
<code>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</code>
</div>
<p><strong>iptables:</strong></p>
<div class="code-block">
<code>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</code>
</div>
<h2 id="installation">⚙️ Installation & Setup</h2>
<h2 id="installation">Installation & Setup</h2>
<h3>System Requirements</h3>
<ul>
<li><strong>OS:</strong> Linux (Debian 9+, Ubuntu 18.04+, CentOS 7+) or Windows Server 2016+</li>
<li><strong>CPU:</strong> 2+ cores @ 2.5GHz recommended</li>
<li><strong>RAM:</strong> 2GB minimum, 4GB recommended for 32+ players</li>
<li><strong>Disk:</strong> 8GB for base game + space for mods and logs</li>
<li><strong>Network:</strong> Low latency connection, 10Mbps+ bandwidth</li>
<li><strong>OS:</strong> Linux (Ubuntu 20.04+ or Debian 11+ recommended) or Windows Server 2019+</li>
<li><strong>CPU:</strong> 2+ cores recommended (single-threaded performance important for most game servers)</li>
<li><strong>RAM:</strong> 512 MB1 GB baseline minimum (more for larger player counts)</li>
<li><strong>Storage:</strong> 5GB+ for server files (SSD recommended for better performance)</li>
<li><strong>Network:</strong> Stable internet connection with low latency</li>
</ul>
<h3>Linux Installation</h3>
<ol>
<li><strong>Download Server Files:</strong> Obtain Call of Duty 4: Modern Warfare dedicated server files</li>
<li><strong>Create Server Directory:</strong>
<div class="code-block"><code>mkdir -p ~/cod4server
cd ~/cod4server</code></div>
</li>
<li><strong>Extract Files:</strong> Extract server files to the directory</li>
<li><strong>Install 32-bit Libraries (64-bit Linux):</strong>
<div class="code-block"><code>sudo apt-get install lib32gcc1 lib32stdc++6 # Debian/Ubuntu
sudo yum install glibc.i686 libstdc++.i686 # CentOS/RHEL</code></div>
</li>
<li><strong>Set Permissions:</strong>
<div class="code-block"><code>chmod +x cod4_lnxded</code></div>
</li>
<li><strong>Create Configuration:</strong> Create <code>server.cfg</code> in the <code>main</code> directory</li>
</ol>
<h3>Required Dependencies</h3>
<ul>
<li>DirectX/VC runtimes (Windows)</li>
<li>Router/NAT port forward</li>
</ul>
<h3>Windows Installation</h3>
<ol>
<li>Install Call of Duty 4: Modern Warfare dedicated server files</li>
<li>Create a <code>server.cfg</code> file in the <code>main</code> directory</li>
<li>Ensure Windows Firewall allows the game ports</li>
<li>Install latest Visual C++ Redistributables if needed</li>
<li>Run <code>iw3mp.exe</code> with appropriate parameters</li>
</ol>
<h3>Installation Steps</h3>
<h2 id="configuration">📝 Configuration</h2>
<h4>Linux (Ubuntu/Debian)</h4>
<pre><code># Update system packages
sudo apt update && sudo apt upgrade -y
<h3>Basic server.cfg Example</h3>
<div class="code-block">
<code>// Server Name
set sv_hostname "My Call of Duty 4 Server"
# Create server directory
mkdir -p ~/gameserver
cd ~/gameserver
// Network Settings
set net_ip "0.0.0.0"
set net_port 28960
# Download server files (method varies by game)
# Check official documentation for download links
</code></pre>
// Server Type (1=LAN, 2=Internet)
set dedicated 2
<h4>Starting the Server</h4>
<pre><code>wine cod4x18_dedrun.exe +set dedicated 2 +set net_port 28960 +set fs_game mods/<mod> +exec server.cfg
</code></pre>
// Player Limits
set sv_maxclients 32
<h4>Windows Server</h4>
<p>Download the server files from the official game website or through Steam (if applicable). Extract to a dedicated folder and run the server executable.</p>
// RCON Password
set rcon_password "your_secure_password_here"
<h3>Manual Installation</h3>
<p>This game requires manual download. Check the official game website or Steam store page for dedicated server downloads.</p>
// Game Settings
set g_gametype "war" // dm, war, sab, koth, sd, hq
set sv_maxPing 350
set sv_minPing 0
// PunkBuster (0=off, 1=on)
set sv_punkbuster 1
<h2 id="configuration">Server Configuration</h2>
// Map Rotation
set sv_mapRotation "gametype war map mp_crash gametype war map mp_backlot gametype war map mp_strike"
<p>After installation, you'll need to configure your server. Here's where to find the configuration files and what settings you can change.</p>
// Password Protection (leave empty for public)
set g_password ""
<h3>Essential Settings</h3>
<ul>
<li><strong>Server Name:</strong> Set a descriptive name for your server</li>
<li><strong>Max Players:</strong> Configure based on your server's resources</li>
<li><strong>Password:</strong> Optional password protection for private servers</li>
<li><strong>Admin/RCON Password:</strong> Set a strong password for remote administration</li>
<li><strong>Game Mode:</strong> Configure game-specific modes and settings</li>
</ul>
// Friendly Fire
set scr_team_fftype 0 // 0=off, 1=on, 2=reflect
<h3>Server Commands</h3>
<p>Common administrative commands (access via console or RCON):</p>
<pre><code># Kick player
kick [player_name]
// Kill Cam
set scr_game_allowkillcam 1
# Ban player
ban [player_name]
// Hardcore Mode
set scr_hardcore 0
# Change map/level (syntax varies by game)
changelevel [map_name]
// Game Log
set g_log "games_mp.log"
set g_logsync 2
# Set admin password (if supported)
setadminpassword [password]
</code></pre>
// Voice Chat
set sv_voice 1
set sv_voiceQuality 1
<h2 id="parameters">⚙️ Startup Parameters</h2>
// Anti-Lag
set sv_fps 20
<h3>Basic Startup</h3>
<pre><code>wine cod4x18_dedrun.exe +set dedicated 2 +set net_port 28960 +set fs_game mods/<mod> +exec server.cfg
</code></pre>
// Downloads
set sv_allowDownload 1
<h3>Common Parameters</h3>
<ul>
<li><code>-port [number]</code> - Set the server port</li>
<li><code>-maxplayers [number]</code> - Maximum player slots</li>
<li><code>-map [name]</code> - Starting map/level</li>
<li><code>-console</code> - Enable console output</li>
<li><code>-nographics</code> - Run without graphics (headless mode)</li>
</ul>
// Pure Server (verify client files)
set sv_pure 1
<h3>Creating a Start Script</h3>
// Spectating
set scr_game_spectatetype 2 // 0=disabled, 1=team only, 2=free
<p><strong>Linux (start.sh):</strong></p>
<pre><code>#!/bin/bash
cd /path/to/server
./server_executable [parameters] 2>&1 | tee server.log
</code></pre>
<pre><code>chmod +x start.sh
./start.sh
</code></pre>
// Auto-Balance
set scr_teambalance 1
<p><strong>Windows (start.bat):</strong></p>
<pre><code>@echo off
cd /d "%~dp0"
server_executable.exe [parameters]
pause
</code></pre>
// Anti-Cheat
set sv_cheats 0</code>
</div>
<h3>Running as a Service</h3>
<h2 id="parameters">🚀 Startup Parameters</h2>
<p><strong>Linux (systemd):</strong></p>
<pre><code># Create service file: /etc/systemd/system/gameserver.service
[Unit]
Description=Call of Duty 4: Modern Warfare Server
After=network.target
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Description</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>+set dedicated</td>
<td>Server mode (1=LAN, 2=Internet)</td>
<td>+set dedicated 2</td>
</tr>
<tr>
<td>+set net_ip</td>
<td>Bind to specific IP address</td>
<td>+set net_ip "0.0.0.0"</td>
</tr>
<tr>
<td>+set net_port</td>
<td>Server port (default: 28960)</td>
<td>+set net_port 28960</td>
</tr>
<tr>
<td>+set fs_basepath</td>
<td>Base installation directory</td>
<td>+set fs_basepath "/home/user/cod4"</td>
</tr>
<tr>
<td>+set fs_homepath</td>
<td>Config and log directory (deprecated in CoD4)</td>
<td>+set fs_homepath "/home/user/.callofduty4"</td>
</tr>
<tr>
<td>+set fs_savepath</td>
<td>Save path for logs and user data</td>
<td>+set fs_savepath "/home/user/cod4data"</td>
</tr>
<tr>
<td>+set fs_game</td>
<td>Mod folder (if using mods)</td>
<td>+set fs_game "mods/pam4"</td>
</tr>
<tr>
<td>+set sv_punkbuster</td>
<td>Enable PunkBuster (0=off, 1=on)</td>
<td>+set sv_punkbuster 1</td>
</tr>
<tr>
<td>+exec</td>
<td>Execute config file on startup</td>
<td>+exec server.cfg</td>
</tr>
<tr>
<td>+set rcon_password</td>
<td>RCON password for remote admin</td>
<td>+set rcon_password "secret123"</td>
</tr>
<tr>
<td>+set sv_maxclients</td>
<td>Maximum player slots</td>
<td>+set sv_maxclients 32</td>
</tr>
<tr>
<td>+map_rotate</td>
<td>Start map rotation from server.cfg</td>
<td>+map_rotate</td>
</tr>
<tr>
<td>+map</td>
<td>Start with specific map</td>
<td>+map mp_crash</td>
</tr>
</tbody>
</table>
[Service]
Type=simple
User=gameserver
WorkingDirectory=/home/gameserver/server
ExecStart=/home/gameserver/server/start.sh
Restart=on-failure
RestartSec=10
<h3>Example Startup Command (Linux)</h3>
<div class="code-block">
<code>./cod4_lnxded +set dedicated 2 +set net_ip "0.0.0.0" +set net_port 28960 +set sv_maxclients 32 +set sv_punkbuster 1 +set fs_savepath "/home/user/cod4data" +exec server.cfg +map_rotate</code>
</div>
[Install]
WantedBy=multi-user.target
</code></pre>
<h3>Example Startup Command (Windows)</h3>
<div class="code-block">
<code>iw3mp.exe +set dedicated 2 +set net_ip "0.0.0.0" +set net_port 28960 +set sv_maxclients 32 +set sv_punkbuster 1 +exec server.cfg +map_rotate</code>
</div>
<pre><code># Enable and start service
sudo systemctl daemon-reload
sudo systemctl enable gameserver
sudo systemctl start gameserver
sudo systemctl status gameserver
</code></pre>
<h2 id="troubleshooting">🔧 Troubleshooting</h2>
<h3>Server Not Appearing in Browser</h3>
<p><strong>Issue:</strong> Players cannot see the server in the in-game browser.</p>
<p><strong>Solutions:</strong></p>
<h3>Server Won't Start</h3>
<h4>Server not visible / cannot join</h4>
<p>Forward UDP 28960; avoid ISP CGNAT; try alternate port; ensure Windows Firewall inbound rule.</p>
<h4>Stuck on 'Awaiting connection...'</h4>
<p>Check net_ip/net_port DVARS and remove conflicting binds; ensure correct punkbuster/disabled if unsupported.</p>
<h3>Connection Issues</h3>
<h4>Can't Connect to Server</h4>
<ol>
<li><strong>Verify server is running:</strong> <code>ps aux | grep server</code></li>
<li><strong>Check port is listening:</strong> <code>netstat -an | grep [PORT]</code></li>
<li><strong>Verify firewall rules</strong> (see Ports section above)</li>
<li><strong>Check server IP:</strong> Use external IP, not localhost</li>
<li><strong>Router/NAT:</strong> Ensure port forwarding is configured</li>
</ol>
<h4>High Latency/Lag</h4>
<ul>
<li>Verify <code>+set dedicated 2</code> is set (not 1 for LAN)</li>
<li>Ensure UDP port 28960 is open in firewall</li>
<li>Check <code>sv_pure</code> setting - some clients filter out non-pure servers</li>
<li>Verify server is online: <code>ps aux | grep cod4</code></li>
<li>CoD4 master servers may have connectivity issues; try direct connect</li>
<li>Check server resource usage (CPU, RAM, disk I/O)</li>
<li>Verify network bandwidth is adequate</li>
<li>Consider server location relative to players</li>
<li>Check for background processes consuming resources</li>
</ul>
<h3>Server Crashes on Startup</h3>
<p><strong>Issue:</strong> Dedicated server crashes immediately after launch.</p>
<p><strong>Solutions:</strong></p>
<h3>Performance Issues</h3>
<h4>Server Lag</h4>
<ol>
<li><strong>Monitor resources:</strong> Use <code>htop</code> or <code>top</code></li>
<li><strong>Check disk I/O:</strong> Use <code>iotop</code></li>
<li><strong>Review server logs</strong> for errors or warnings</li>
<li><strong>Reduce player count</strong> or increase server resources</li>
<li><strong>Optimize configuration</strong> based on server capacity</li>
</ol>
<h4>Memory Leaks</h4>
<pre><code># Monitor memory usage
free -h
top -p $(pgrep -f server)
# Restart server regularly via cron if needed
0 4 * * * /home/gameserver/restart.sh
</code></pre>
<h2 id="performance">Performance Optimization</h2>
<h3>Server Tuning</h3>
<ul>
<li>Check <code>games_mp.log</code> in the fs_savepath directory for error messages</li>
<li>Verify all required game files are present (zone, usermaps, main)</li>
<li>Ensure <code>server.cfg</code> syntax is correct (no typos)</li>
<li>Remove custom mods temporarily to isolate issue</li>
<li>On Linux, verify 32-bit libraries are installed</li>
<li>Check file permissions: <code>chmod +x cod4_lnxded</code></li>
<li>Try running without <code>+map_rotate</code> - specify a single map instead</li>
<li><strong>CPU:</strong> Ensure adequate CPU allocation; most game servers are single-threaded</li>
<li><strong>RAM:</strong> Allocate sufficient memory; monitor usage and adjust as needed</li>
<li><strong>Disk:</strong> Use SSD storage for better I/O performance</li>
<li><strong>Network:</strong> Ensure stable, low-latency connection</li>
</ul>
<h3>Connection Problems</h3>
<p><strong>Issue:</strong> Players cannot connect or timeout.</p>
<p><strong>Solutions:</strong></p>
<h3>Operating System Optimization</h3>
<pre><code># Increase file descriptor limits
echo "* soft nofile 65536" >> /etc/security/limits.conf
echo "* hard nofile 65536" >> /etc/security/limits.conf
# Network tuning
sysctl -w net.core.rmem_max=16777216
sysctl -w net.core.wmem_max=16777216
sysctl -w net.ipv4.tcp_rmem="4096 87380 16777216"
sysctl -w net.ipv4.tcp_wmem="4096 87380 16777216"
</code></pre>
<h3>Monitoring</h3>
<p>Set up monitoring to track server health:</p>
<ul>
<li>Verify firewall rules allow traffic on game port</li>
<li>Check <code>sv_maxPing</code> setting (increase if players have high latency)</li>
<li>Ensure server is not full (<code>sv_maxclients</code>)</li>
<li>Disable password if testing: <code>set g_password ""</code></li>
<li>Verify client and server game versions match (patch 1.7 recommended)</li>
<li>Check <code>sv_pure</code> - if enabled, clients must have matching files</li>
<li>CPU and memory usage</li>
<li>Network traffic and latency</li>
<li>Player count and activity</li>
<li>Error rates and crash logs</li>
</ul>
<h3>High Lag/Ping Issues</h3>
<p><strong>Issue:</strong> Players experience significant lag.</p>
<p><strong>Solutions:</strong></p>
<h3>Backup Strategy</h3>
<pre><code>#!/bin/bash
# backup.sh - Run via cron
DATE=$(date +%Y%m%d_%H%M%S)
BACKUP_DIR="/backups/gameserver"
SERVER_DIR="/home/gameserver/server"
# Create backup
tar -czf $BACKUP_DIR/backup_$DATE.tar.gz -C $SERVER_DIR .
# Keep only last 7 days
find $BACKUP_DIR -name "backup_*.tar.gz" -mtime +7 -delete
</code></pre>
<h2 id="security">Security Best Practices</h2>
<h3>Firewall Configuration</h3>
<pre><code># Minimal firewall - only allow necessary ports
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow [SERVER_PORT]/tcp
sudo ufw allow [SERVER_PORT]/udp
sudo ufw allow 22/tcp # SSH
sudo ufw enable
</code></pre>
<h3>Strong Passwords</h3>
<ul>
<li>Increase <code>sv_fps</code> setting (recommended: 20, max: 30)</li>
<li>Reduce <code>sv_maxclients</code> if server is overloaded</li>
<li>Check server CPU and RAM usage</li>
<li>Verify network bandwidth is sufficient</li>
<li>Lower <code>sv_maxPing</code> to restrict high-ping players</li>
<li>Disable voice chat if not needed: <code>set sv_voice 0</code></li>
<li>Use strong, unique passwords for admin/RCON access</li>
<li>Never use default passwords</li>
<li>Change passwords regularly</li>
<li>Don't share admin credentials unnecessarily</li>
</ul>
<h3>RCON Not Working</h3>
<p><strong>Issue:</strong> Cannot connect via RCON.</p>
<p><strong>Solutions:</strong></p>
<h3>Regular Updates</h3>
<ul>
<li>Verify <code>rcon_password</code> is set in <code>server.cfg</code></li>
<li>Ensure TCP port 28960 is open (in addition to UDP)</li>
<li>Use correct RCON syntax: <code>/rcon login password</code> then <code>/rcon command</code></li>
<li>Test RCON from server console first</li>
<li>CoD4 RCON is case-sensitive - verify password exactly</li>
<li>Keep server software updated to the latest stable version</li>
<li>Update operating system and dependencies regularly</li>
<li>Subscribe to security advisories for your game</li>
<li>Test updates on a staging server before production deployment</li>
</ul>
<h3>Mod/Custom Map Issues</h3>
<p><strong>Issue:</strong> Custom maps or mods not loading.</p>
<p><strong>Solutions:</strong></p>
<h3>Access Control</h3>
<ul>
<li>Verify <code>+set fs_game "mods/modname"</code> parameter is set correctly</li>
<li>Ensure mod files are in the correct directory structure</li>
<li>Custom maps must be placed in <code>usermaps/mapname/</code></li>
<li>Check mod compatibility with server version (patch 1.7)</li>
<li>Enable downloads: <code>set sv_allowDownload 1</code> for clients to auto-download</li>
<li>Limit SSH access to specific IPs if possible</li>
<li>Use SSH keys instead of passwords</li>
<li>Disable root login via SSH</li>
<li>Implement fail2ban or similar intrusion prevention</li>
</ul>
<h2 id="game-types">🎮 Game Types</h2>
<p>Call of Duty 4: Modern Warfare supports the following game modes:</p>
<h3>DDoS Protection</h3>
<ul>
<li><strong>dm</strong> - Deathmatch (Free-for-all)</li>
<li><strong>war</strong> - Team Deathmatch</li>
<li><strong>sab</strong> - Sabotage</li>
<li><strong>koth</strong> - Headquarters</li>
<li><strong>sd</strong> - Search & Destroy</li>
<li><strong>hq</strong> - Headquarters (alternate)</li>
<li>Consider DDoS protection services (Cloudflare, OVH, etc.)</li>
<li>Implement rate limiting where supported</li>
<li>Monitor for unusual traffic patterns</li>
<li>Have an incident response plan</li>
</ul>
<h2 id="maps">🗺️ Default Maps</h2>
<p>Call of Duty 4: Modern Warfare includes the following default multiplayer maps:</p>
<h3>Base Game Maps</h3>
<h2>Additional Resources</h2>
<ul>
<li><strong>mp_backlot</strong> - Backlot</li>
<li><strong>mp_bloc</strong> - Bloc</li>
<li><strong>mp_bog</strong> - Bog</li>
<li><strong>mp_cargoship</strong> - Wet Work</li>
<li><strong>mp_citystreets</strong> - District</li>
<li><strong>mp_convoy</strong> - Ambush</li>
<li><strong>mp_countdown</strong> - Countdown</li>
<li><strong>mp_crash</strong> - Crash</li>
<li><strong>mp_crash_snow</strong> - Winter Crash</li>
<li><strong>mp_crossfire</strong> - Crossfire</li>
<li><strong>mp_farm</strong> - Downpour</li>
<li><strong>mp_overgrown</strong> - Overgrown</li>
<li><strong>mp_pipeline</strong> - Pipeline</li>
<li><strong>mp_shipment</strong> - Shipment</li>
<li><strong>mp_showdown</strong> - Showdown</li>
<li><strong>mp_strike</strong> - Strike</li>
<li><strong>mp_vacant</strong> - Vacant</li>
<li>Official Call of Duty 4: Modern Warfare documentation and forums</li>
<li>Community wikis and guides</li>
<li>Game-specific Discord or Reddit communities</li>
<li>Server hosting provider documentation</li>
</ul>
<h3>Variety Map Pack (DLC)</h3>
<h3>External References</h3>
<ul>
<li><strong>mp_broadcast</strong> - Broadcast</li>
<li><strong>mp_carentan</strong> - Chinatown (remaster)</li>
<li><strong>mp_creek</strong> - Creek</li>
<li><strong>mp_killhouse</strong> - Killhouse</li>
<li><a href="https://cod4x.ovh/t/how-to-create-a-server-windows-guide/3095" target="_blank">https://cod4x.ovh/t/how-to-create-a-server-windows-guide/3095</a></li>
<li><a href="https://kb.firedaemon.com/support/solutions/articles/4000086725-call-of-duty-4-modern-warfare-as-a-service" target="_blank">https://kb.firedaemon.com/support/solutions/articles/4000086725-call-of-duty-4-modern-warfare-as-a-service</a></li>
<li><a href="https://support.activision.com/articles/ports-used-for-call-of-duty-games" target="_blank">https://support.activision.com/articles/ports-used-for-call-of-duty-games</a></li>
</ul>
<h2 id="related-mods">🔌 Related Mods & Plugins</h2>
<p>Popular server modifications compatible with Call of Duty 4: Modern Warfare:</p>
<ul>
<li><a href="../b3/">B3 (Big Brother Bot)</a> - Python-based admin bot with RCON wrapper, player warnings, ban management, statistics tracking, and automated moderation for Call of Duty servers</li>
<li><strong>ProMod</strong> - Competitive gameplay modification</li>
<li><strong>PAM</strong> - Promod Allstars Modification</li>
<li><strong>Zombiemod</strong> - Zombie survival gameplay</li>
<li><strong>CoDJumper</strong> - Parkour/jumping maps and mechanics</li>
</ul>
<h2>📚 Resources</h2>
<ul>
<li><strong>Recommended Patch:</strong> 1.7 (final official patch)</li>
<li><strong>Community Forums:</strong> CoDModding community, CoD4Central</li>
<li><strong>RCON Tools:</strong> B3, CoD4X, various web-based RCON panels</li>
<li><strong>Map Database:</strong> Thousands of custom maps available from community sites</li>
</ul>
<div class="warning-box">
<div style="background: #78350f; padding: 20px; border-left: 4px solid #f59e0b; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;"><i class="fas fa-exclamation-triangle" style="color: #fbbf24; margin-right: 8px;"></i>Important Notes</h3>
<ul style="color: #fef3c7; line-height: 1.8;">
<li>Call of Duty 4 is one of the <strong>most popular</strong> CoD titles for dedicated servers with a large active community</li>
<li>Use <code>fs_savepath</code> instead of <code>fs_homepath</code> - the latter is deprecated in CoD4</li>
<li><strong>Patch 1.7</strong> is the recommended version for both servers and clients</li>
<li>The <code>sv_pure</code> setting enforces file verification - essential for competitive/anti-cheat servers</li>
<li>CoD4 supports extensive modding - <strong>ProMod</strong> is the standard for competitive play</li>
<li>PunkBuster is optional but recommended for public servers to prevent cheating</li>
<li>Always secure your RCON password - CoD4 RCON has been exploited in the past</li>
<li>Custom maps require proper directory structure in <code>usermaps/</code> folder</li>
<li>Consider using <strong>CoD4X</strong> (community modification) for enhanced features and security patches</li>
<ul style="color: #fef3c7; line-height: 1.8; margin: 0;">
<li>Always make backups before making configuration changes</li>
<li>Keep your server and dependencies updated</li>
<li>Monitor server resources and player activity</li>
<li>Follow the game's End User License Agreement (EULA) and Terms of Service</li>
<li>Join community forums for support and best practices</li>
</ul>
</div>
</div>
<p style="text-align: center; margin-top: 30px; color: #666;">
<em>Last updated: November 2025 | For Call of Duty 4: Modern Warfare server hosting</em>
</p>