GUIDES · SHOOTERS & SOURCE · cod4
How to host a server for Call of Duty 4: Modern Warfare (CoD4x)
Dedicated Call of Duty 4: Modern Warfare (CoD4x) server managed with Server Dock (Windows · Linux). Automatic setup, live console, configs, and backups.
Real-World Resource Calculator · Call of Duty 4: Modern Warfare (CoD4x)
Estimate actual RAM, CPU, and disk usage for your player count, map, and cluster size.
For small friend groups (2–10 players), real RAM usage is often 1.5–2× lower than peak catalog numbers.
Step-by-step installation & launch guide
1. Install the Server Dock agent on your PC, Steam Deck, or Linux VPS
Create a free account at server-dock.net. Get the installer from the Download page and run it on Windows 10/11 (x64) or Linux / VPS / Steam Deck (x86-64). In the wizard click “Подключить мой аккаунт” (Connect my account) and enter the 8-character code on the site. Python is bundled.
# Windows (PowerShell) irm https://server-dock.net/install.ps1 | iex # Linux curl -fsSL https://server-dock.net/install.sh | bash
2. Create a "Call of Duty 4: Modern Warfare (CoD4x)" server from the catalog
Open "Games & Services" in the panel → search for "Call of Duty 4: Modern Warfare (CoD4x)" → pick your device. The panel automatically verifies free memory (recommended 2 GB+ RAM) and disk space (8 GB+).
3. Automatic setup (Owner files / Steam library setup)
Requires the owner’s game files (supports quick import from a local Steam library or upload via the Files tab).
4. Configure settings and start the server
Set server name, password, map/world, and ports (28960 (Server Port)) in the Settings tab, then click Start. Watch real-time readiness in the live console.
5. Invite friends to join
Open the Connection tab inside the server: forward ports (28960 (Server Port)) on your router / VPS firewall, or enable built-in Porthole, Playit, or the VPS tunnel wizard (no static IP needed). Share the 1-click invite link with friends.
Network ports · Call of Duty 4: Modern Warfare (CoD4x)
For direct friend connections, forward these ports on your router or VPS Cloud Firewall. Behind CGNAT? Enable built-in Porthole, Playit, or the VPS tunnel wizard right inside Server Dock.
| Purpose | Default Port | Description |
|---|---|---|
| Server Port | 28960 | Default server network port. |
Key panel settings
| Setting | Default | Description |
|---|---|---|
| Server Port | 28960 | Configurable in the web panel before launch. |
| Max Players | 24 | Configurable in the web panel before launch. |
| Map | mp_crash | Configurable in the web panel before launch. |
| Password | — | Configurable in the web panel before launch. |
| Logfile | 1 | Configurable in the web panel before launch. |
| G Logsync | 2 | Configurable in the web panel before launch. |
| G Log | games_mp.log | Configurable in the web panel before launch. |
| Sv Punkbuster | 0 | Configurable in the web panel before launch. |
| Sv Hostname | Server Dock CoD4 | Configurable in the web panel before launch. |
| Scr Motd | ^4Welcome to COD4! | Configurable in the web panel before launch. |
| Sv Map Rotation | gametype dm map mp_backlot gametype dom map mp_bloc gametype koth map mp_bog gametype sab map mp_cargoship gametype sd map mp_citystreets gametype war map mp_convoy gametype dm map mp_countdown gametype dom map mp_crash gametype koth map mp_crossfire gametype sab map mp_farm gametype sd map mp_overgrown gametype war map mp_pipeline gametype dm map mp_shipment gametype dom map mp_showdown gametype koth map mp_strike gametype sab map mp_vacant | Configurable in the web panel before launch. |
| G Gametype | dm | Configurable in the web panel before launch. |
| Sv Privateclients | 6 | Configurable in the web panel before launch. |
| Sv Private Password | — | Configurable in the web panel before launch. |
Backups & saved paths
When creating a backup, Server Dock automatically archives: main/server.cfg, mods.
Official documentation
Additional game parameters are documented in the official Call of Duty 4: Modern Warfare (CoD4x) documentation ↗.
Call of Duty 4: Modern Warfare (CoD4x) Server FAQ
How do I host a Call of Duty 4: Modern Warfare (CoD4x) dedicated server on my own PC?
Sign up for Server Dock, install the lightweight Windows or Linux agent, pick Call of Duty 4: Modern Warfare (CoD4x) from the catalog, and click Create. Server files and dependencies are installed automatically.
What are the RAM, disk, and OS requirements for a Call of Duty 4: Modern Warfare (CoD4x) server?
Recommended minimum: 2 GB RAM and 8 GB free disk space. Supported platforms: Windows · Linux.
Which ports does Call of Duty 4: Modern Warfare (CoD4x) use, and can friends join without port forwarding?
Default Call of Duty 4: Modern Warfare (CoD4x) ports: 28960. You can forward them on your router or enable the built-in Playit / Porthole tunnel in one click with zero router changes.
Is Server Dock free for hosting a Call of Duty 4: Modern Warfare (CoD4x) server?
Yes. Server Dock Free is free forever and keeps all Call of Duty 4: Modern Warfare (CoD4x) worlds, mods, and backups locally on your own PC or VPS.
Ready to host your Call of Duty 4: Modern Warfare (CoD4x) server?
Create a free account or sign in to Server Dock—our agent downloads Call of Duty 4: Modern Warfare (CoD4x), configures ports, and launches your world in minutes.
More guides in "Shooters & Source"
- Alien Swarm: Reactive DropDedicated Alien Swarm: Reactive Drop server managed with Server Dock (Windows). Automatic setup, live console, configs, and backups.
- Alien Swarm: Reactive Drop · ProtonDedicated Alien Swarm: Reactive Drop · Proton server managed with Server Dock (Linux). Automatic setup, live console, configs, and backups.
- Among Us · Impostor ServerDedicated Among Us · Impostor Server server managed with Server Dock (Windows · Linux). Automatic setup, live console, configs, and backups.
- Arma 3 Dedicated ServerDedicated Arma 3 Dedicated Server server managed with Server Dock (Windows · Linux). Automatic setup, live console, configs, and backups.
- Arma ReforgerDedicated Arma Reforger server managed with Server Dock (Windows · Linux). Automatic setup, live console, configs, and backups.
- Black Mesa: DeathmatchDedicated Black Mesa: Deathmatch server managed with Server Dock (Windows · Linux). Automatic setup, live console, configs, and backups.