Prerequisites
Before starting, ensure you have:Compiled Server
Follow the Installation Guide to compile the server binary
CoD4 Game Files
Original Call of Duty 4 dedicated server files (main, zone, usermaps folders)
You need the original CoD4 dedicated server files. CoD4 Unleashed replaces the server executable but requires the game data files.
Quick Setup
Prepare Server Directory
Create or navigate to your CoD4 dedicated server directory:Your directory should contain:
main/- Game assets and IWD fileszone/- Zone filesusermaps/- Custom maps (optional)- Server configuration files
Create Server Configuration
Create a Add basic server configuration:
server.cfg file in the main directory:Launch the Server
Start your CoD4 Unleashed server:
Command Line Arguments Explained
Command Line Arguments Explained
+set dedicated 2- Run as dedicated server (2 = internet server, 1 = LAN server)+set net_ip 0.0.0.0- Bind to all network interfaces+set net_port 28960- Set server port (default CoD4 port)+exec server.cfg- Execute configuration file+map_rotate- Start map rotation
Using Unleashed Features
JSON Module
CoD4 Unleashed includes a powerful JSON module for GSC scripting:The JSON module files are located in
bin/main/unleashed/jsonHTTP/HTTPS Requests
Make web requests directly from GSC:Performance Monitoring
Monitor server performance with enhanced FPS functions:Protocol Detection
Detect player protocol versions:Advanced Configuration
Running as System Service (Linux)
Create a systemd service for automatic startup:Firewall Configuration
Ensure your firewall allows CoD4 traffic:Custom Mods and Scripts
Place your custom GSC scripts in the appropriate location:Testing Your Server
Troubleshooting
Server won't start - 'cannot open main/iw_14.iwd'
Server won't start - 'cannot open main/iw_14.iwd'
Problem: Missing CoD4 game files.Solution: Ensure all original CoD4 dedicated server files are present, especially:
main/iw_*.iwdfiles (IWD 00-14)zone/directory with zone files
Server not visible on internet
Server not visible on internet
Problem: Firewall or port forwarding not configured.Solution:
- Open UDP port 28960 in your firewall
- Forward port 28960 UDP in your router to your server
- Set
+set net_ip 0.0.0.0in startup command
Players getting kicked - 'Server is full'
Players getting kicked - 'Server is full'
Problem:
sv_maxclients set too low or sv_privateClients misconfigured.Solution: In server.cfg:JSON functions not working
JSON functions not working
Problem: JSON module not loaded.Solution: Include the JSON module in your GSC:Ensure
bin/main/unleashed/json files are present.Linux: Error opening libcurl.so.4
Linux: Error opening libcurl.so.4
Problem: libcurl shared library not found.Solution:
Next Steps
Scripting API
Explore the complete GSC scripting API documentation
Configuration Reference
Deep dive into server configuration options
Plugin Development
Learn how to create custom plugins for CoD4 Unleashed
Community Forum
Get help and share your server setup