Server Dock

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.

OS: Windows · LinuxRAM: from 2 GBDisk: from 8 GBOwner files / Steam library setup

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.

Actual RAM needed
~2.5 GB
Spec-sheet max: 2 GB
Recommended CPU
2 vCPU
Disk (with backup headroom)
15 GB
Suggested VDS tier
VDS Starter (2 vCPU · 4 GB RAM)

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

    All installers: Windows, Linux, Steam Deck, VDS

  2. 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. 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. 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. 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.

PurposeDefault PortDescription
Server Port28960Default server network port.

Key panel settings

SettingDefaultDescription
Server Port28960Configurable in the web panel before launch.
Max Players24Configurable in the web panel before launch.
Mapmp_crashConfigurable in the web panel before launch.
Password—Configurable in the web panel before launch.
Logfile1Configurable in the web panel before launch.
G Logsync2Configurable in the web panel before launch.
G Loggames_mp.logConfigurable in the web panel before launch.
Sv Punkbuster0Configurable in the web panel before launch.
Sv HostnameServer Dock CoD4Configurable in the web panel before launch.
Scr Motd^4Welcome to COD4!Configurable in the web panel before launch.
Sv Map Rotationgametype 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_vacantConfigurable in the web panel before launch.
G GametypedmConfigurable in the web panel before launch.
Sv Privateclients6Configurable 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

  1. 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.

  2. 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.

  3. 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.

  4. 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"