CoD4x is a modification of the Call of Duty 4 - Modern Warfare server. It fixes several bugs in the original binaries and allows developers to extend server functionality with additional variables and plugins. When using the CoD4x server, the clients invoke installation of the proprietary CoD4x client to players joining the server using the CoD4x servers, which fixes several known base game bugs in the client, and in combination with the server allows for extra features. A compatible client modification can be found here: CoD4x_Client_pub
- Administration commands
- Measurements against hackers
- Reliable player identification
- Pbss like screenshot feature
- Automated client update, no manual installation needed
- Backwards compatibility to 1.7 and 1.7a servers
- A new masterserver, for when the official masterserver is down
The CoD4x server can run on Windows and Linux. The CoD4x client update is only available for windows.
Download binaries: Releases
You also require the base game to run a server. Copy every .iwd file in cod4directory/main/ to serverdirectory/main/.
Also copy everything inside cod4directory/zone to serverdirectory/zone.
Now you can run the server with ./cod4x18_dedrun +map mp_killhouse. If you are running a local server on Windows use cod4x18_dedrun.exe +map mp_killhouse +set dedicated 2 +set net_ip 127.0.0.1. Join the server with your client via the console (^) by typing /connect 127.0.0.1 (if hosted locally), and see if you can join the server.
You will need a token if you want your server to be listed on the Cod4x Master List. You can generate a token here.
Once a token is generated add it to the sv_authtoken cvar in server.cfg or command-line parameters by using sv_authtoken "mytokenhere"
Hint: you probably want to run the server on a separate user. Please don't run the server (any server) as root. That would be a major security threat.
A more detailed server tutorial is available on our wiki. Also read about new banlists here
Official images are now availabe on Docker Hub
Images are available on amd64 and arm64 architectures, arm64 is still experimental, and expect bugs.
arm64 architecture is utilising FEX-Emu
You can use the latest tag, which has been built every commit on this repository, or you can use a tagged release, which format is YYYY-MM (e.g 2026-11)
Make sure you give 777 permissions to main and zone (and home) folders, so the container can write to it properly.
Setting up with docker compose example config, also can be found in the repository:
services:
cod4x-server:
container_name: cod4x-server
hostname: cod4x-server
image: alexandercurl/cod4x-server:latest
ports:
- "28960:28960/tcp"
- "28960:28960/udp"
# Volumes store your data between container upgrades
volumes:
- "./main:/home/user/cod4/main"
- "./main_shared:/home/user/cod4/main_shared"
- "./zone:/home/user/cod4/zone"
- "./mods:/home/user/cod4/mods"
- "./plugins:/home/user/cod4/plugins"
- "./usermaps:/home/user/cod4/usermaps"
- "./home:/home/user/.callofduty4" # If you want your games_mp.log to be readable
restart: unless-stopped
Running with docker run:
docker run -d --name cod4x-server --restart=unless-stopped \
-p 28960:28960 -p 28960:28960/udp \
-v ./main:/home/user/cod4/main \
-v ./zone:/home/user/cod4/zone \
-v ./mods:/home/user/cod4/mods \
-v ./plugins:/home/user/cod4/plugins \
-v ./usermaps:/home/user/cod4/usermaps \
alexandercurl/cod4x-server +exec server.cfg +map_rotate
To compile CoD4x from source, you need to install the following prerequisites:
- NASM
- gcc
- make
RHEL/CentOS/Rocky Linux 32-bit:
sudo yum install -y glibc-devel glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 nasm
Debian/Ubuntu 32-bit:
sudo apt install nasm make git
Debian/Ubuntu 64-bit:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install nasm:i386 make gcc-multilib g++-multilib git
openSUSE 32-bit:
sudo zypper install nasm gcc-32bit gcc-c++-32bit
Arch Linux 64-bit:
sudo pacman -S nasm gcc lib32-gcc-libs make
Now compile the server by running make.
If compilation was successful the binary will be placed in the /bin/ folder.
To compile CoD4x from source you require the following tools:
Now compile the server by running mingw32-make.
If compilation was successful the binary will be placed in the /bin/ folder.
CoD4x is licensed under the AGPL3 license. We welcome anybody to fork this project and submit a pull request.
Plugins can be written in C/C++ and we also provide language bindings for D. The /plugins directory contains some example plugins. You can contribute to the project by developing plugins and create a pull request for them and/or uploading and promoting them on the forums.
If you want to contribute to the core project check the issue tracker for todos. We will try our best to keep the issue tracker filled with new bits. If you would like to work on a completely new feature, we would appreciate if you contact us first on the forums or on Github to discuss the idea.
If you're not a programmer but still want to help, you can help by testing and reporting bugs, but also by writing documentation. Please submit your bug reports to the Github issue tracker.
Aside from agreeing to the license, by making any use of CoD4x18 server you agree to the following:
-
Respect other communities!
-
Don't spam the master server with private servers to overshadow other servers
-
Bot clients shall not be disguised as real players. All bots must report a ping of 0 or 999, and their names shall be prefixed with
[BOT].
Server's IPs violating these conditions can get permanently disabled.
These conditions have been established to keep user created content open to everyone, and also to value the work on CoD4x.
