Smiley face
  Forum Index    Search    Usergroups    Edit your profile    Members    Arcade    Ranks

 Reputation    Medals    Staff    Statistics    Board Rules    Forum FAQ    Private MessagesLogin, Check Messages    Log in 

Search for at
Soldier Of Fortune 2 Advanced Search

Post new topicReply to topicprinter-friendly viewThank Post
   Soldier Of Fortune 2 Forum Index » Call of Duty (series) » Call of Duty 4 - Modern Warfare » Call of Duty 4 Dedicated Server Guide
 View previous topic :: View next topic  
Author Message

In Game: Teo

Joined: Sep 21, 2009
Last Visit: Jun 28, 2017
Age: 36
Posts: 1107
Location: Milan
Reputation: 4512
votes: 6
Medals: 6 (View more...)
Super Dedicated User (Amount: 1)

Status: Online
PostPosted: Tue Jan 08, 2013 10:11 am
PostPost subject: No icon Call of Duty 4 Dedicated Server Guide
Reply with quote

PC server admin guide for Call of Duty 4: Modern Warfare

I will be adding to this in the coming days, but to get you guys started, here's the basics. If you have questions or would like something in particular, please speak up and I'll see what I can do.

Sample Server Configuration can be found: Here

Required Ports
UDP 20800
UDP 20810
UDP 28960

Hardware + Bandwidth Requirements

Bandwidth and server resource usage should be lower than that of COD2 in most situations, but it is not guaranteed. There are some situations where bandwidth usage may spike, and the server will get hit harder than usual. Generally, if you're capable of hosting a COD2 dedicated server you should be just fine for COD4.

starting a dedicated server
LAN server
] iw3mp.exe +set dedicated 1

Internet server
] iw3mp.exe +set dedicated 2

Modded server
] iw3mp.exe +set dedicated [1,2] +set fs_game "mods/<modname>"

start map
] map <mapname>

example usage:
] iw3mp.exe +set dedicated 2 +exec my_server.cfg +map mp_crash

my_server.cfg contains customized settings which are detailed below.
syntax: set <dvar> <value>

server commands
] killserver
] quit
] map_restart
] say "my message"
] tell [clientnum] "my message to you"

server settings
map rotation
] sv_mapRotation gametype <gametype> map <mapname> gametype <gametype> map <mapname> ...

<gametype> is one of:
"dm" - free for all deathmatch
"dom" - domination
"koth" - headquarters
"sab" - sabotage
"sd" - search & destroy
"war" - team deathmatch

] sv_hostname "my server"
] g_gametype <gametype>
] sv_maxclients [1-32]
] g_password "my password"
] sv_voice [0-1]
] scr_teambalance [0-1]
] g_allowvote [0-1]
] sv_punkbuster [0-1]
] sv_minping [0-n] (milliseconds)
] sv_maxping [0-n] (milliseconds)
] sv_connectTimeout [0-n] (seconds)
] sv_timeout [0-n] (seconds)

gameplay options
] scr_oldschool [0-1]
] scr_hardcore [0-1]
] scr_game_spectatetype [0-2] (Disabled, Team/Players Only, Free)
] scr_game_allowkillcam [0-1]
] scr_team_fftype [0-3] (Disabled, Enabled, Reflect, Shared)

] scr_game_perks [0-1]
] scr_game_onlyheadshots [0-1]
] scr_game_forceuav [0-1]
] scr_game_hardpoints [0-1] (i.e. artillery, uav, helicopter)
] scr_hardpoint_allowartillery [0-1]
] scr_hardpoint_allowuav [0-1]
] scr_hardpoint_allowhelicopter [0-1]

free for all deatmatch
] scr_dm_scorelimit [0-n]
] scr_dm_timelimit [0-n] (minutes)

] scr_dom_scorelimit [0-n]
] scr_dom_timelimit [0-n] (minutes)

team deathmatch
] scr_war_scorelimit [0-n]
] scr_war_timelimit [0-n] (minutes)

] scr_sab_scorelimit [1-n] (points)
] scr_sab_timelimit [0-n] (minutes)
] scr_sab_roundswitch [0-n] (after how many rounds)
] scr_sab_bombtimer [0-n] (seconds)
] scr_sab_planttime [0-n] (seconds)
] scr_sab_defusetime [0-n] (seconds)
] scr_sab_hotpotato [0-1] (shared bomb timer)

search and destroy
] scr_sd_scorelimit [1-n] (points)
] scr_sd_timelimit [0-n] (minutes)
] scr_sd_roundswitch [0-n] (number of rounds before switching teams)
] scr_sd_bombtimer [0-n] (seconds)
] scr_sd_planttime [0-n] (seconds)
] scr_sd_defusetime [0-n] (seconds)
] scr_sd_multibomb [0-1]

] scr_koth_scorelimit [1-n] (points)
] scr_koth_timelimit [0-n] (minutes)
] koth_autodestroytime [0-n] (seconds)
] koth_kothmode [0-1] (classic mode, non-classic)
] koth_spawntime [0-n] (seconds, hq spawn time)


This guide is intended for server admins wanting to set up a dedicated server at a remote datacenter. It is based on a Windows 2003 server setup, which is the only type of server I have. Hopefully someone knowledgeable about the Linux server setup (when it comes out) can add that information when it comes available.

CoD4 Windows Remote Dedicated Server Setup:

Part 1: Getting the files to the server
1. Buy and install the game on your home computer.

2. FTP the ENTIRE installed game to your remote dedicated server. Be certain to maintain the directory structure from the game's ROOT directory on. The game's root directory contains the iw3mp.exe file.

Note: Eventually we may find some files are unnecessary, but for now uploading them all is your safest bet.

Part 2: Creating a shortcut to run your server
1. On your dedicated server, RIGHT click on the iw3mp.exe file found in the CoD4 server's ROOT directory and DRAG it to the desktop. Have the server create a SHORTCUT. Be sure you only created a shortcut and did not actually MOVE the file.

2. Right click on the new shortcut you just created and go to its properties.

3. Find the TARGET field and add the following to the END of the existing target, do not DELETE any of the existing tartget!

+set dedicated 2 +set sv_punkbuster 1 +exec mp-server.cfg +map_rotate

Note: Make sure there is a SPACE between "iw3mp.exe" and "+set dedicated 2".

Note 2: I am not sure if the CoD4 server will run on Windows 2000, but if you are trying you will very likely need to enclose the part of your target line that existed BEFORE you changed it in quotation marks. I noticed my Windows 2003 server did not need this, but I always had to have it before when I ran a Windows 2000 server.

The above command line assumes you intend to use Punkbuster of course. If not, remove that part of the command line. Also, you can obviously change the name of your config file to what ever YOU want to call it.

Other optional commandline items:

+set net_ip
+set net_port xxxxx
+set fs_game mods/modwarfare

Part 3: Creating your config file
1. On your remote server, browse to CoD4's main/ directory. You should see many .IWD files in this directory. Create a new text file and rename it to mp-server.cfg. (The name of this config file MUST match what you put in the server's command line)

2. Open your newly created config file with a text editor (such as notepad).

3. Copy and paste this basic config into your new config:

seta sv_punkbuster 1

// Server name
set sv_hostname "My CoD4 Server" //Change this to whatever you want your server to be named in the server browser

// Server password
set g_password "" // blank means NO password

// Rconpassword
set rcon_password "change_me" // Change this to your rcon password!

// Maximum Clients
set sv_maxclients "32"
set sv_privateclients "6"

// Max Ping
set sv_maxping "225"

// Rate
set sv_maxRate "25000"

// Map_rotation
set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"

set sv_maprotationcurrent ""

Note: The above is a VERY basic config, just to get the server up and running. A more complete config file will be coming.

Part 4: DirectX file
1. Download the attached directX file in this post:

2. Upload the d3dx10_34.dll file to your Window's Servers system32 directory (Mine was in C:\WINDOWS\system32).

Part 5: PunkBuster files
1. Download pbsetup.exe from here:

2. Upload pbsetup.exe to your server. It does NOT need to be in the CoD4 directories, in fact it is probably best if you treat this as a stand-alone application (it can update ALL PB servers from one application).

3. Run pbsetup.exe and click "Add a Game". Choose a CoD4 server. You will likely need to browse to the iw3mp.exe file so that pbsetup knows where your CoD4 server is located.

4. Once you have added your CoD4 server, select/highlight the CoD4 server in the list and click "Check For Updates". This should download a number of files to your CoD4 server directories. You should not have to do anything else.

Finally you are there! Simply use the shortcut you made on the server's desktop to start your server.


In CoD4 if you put the map_rotate command in the startup config file, the server will CRASH.

I have changed the above instructions to put the map_rotate command in the command line parameters, which seems to solve the problem.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Visit member's Facebook:
Poster Member
Poster Member

Joined: Apr 05, 2013
Last Visit: Apr 09, 2013
Age: 29
Posts: 1

Reputation: 1.2
Medals: None

Status: Offline
PostPosted: Tue Apr 09, 2013 3:04 pm
PostPost subject: No icon Re: Call of Duty 4 Dedicated Server Guide
Reply with quote

Back to top
View user's profile Send private message

In Game: Teo

Joined: Sep 21, 2009
Last Visit: Jun 28, 2017
Age: 36
Posts: 1107
Location: Milan
Reputation: 4512
votes: 6
Medals: 6 (View more...)
Dedication (Amount: 1)

Status: Online
PostPosted: Fri Apr 12, 2013 10:23 am
PostPost subject: No icon Re: Call of Duty 4 Dedicated Server Guide
Reply with quote

burchov wrote (View Post):

have u got it working or is this spam only?
Back to top
View user's profile Send private message Send e-mail Visit poster's website Visit member's Facebook:
Display posts from previous:
Post new topicReply to topic printer-friendly viewThank Post
Soldier Of Fortune 2 Forum Index » Call of Duty (series) »  Call of Duty 4 - Modern Warfare
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Hi guys 12 Rockertjen 4751 Wed Dec 18, 2013 9:47 am
Punisher View latest post
No new posts Hey guys if anyone remembers playing with me hit me up 1 playdoh 1837 Thu Dec 05, 2013 9:07 am
Teo View latest post
No new posts Sup guys!!! 5 VenOm 3661 Thu Sep 12, 2013 12:01 pm
Hoffers View latest post
No new posts have a good week end guys....dont drink and drive.. 1 LilJoe 1832 Thu Aug 29, 2013 10:58 pm
Teo View latest post
No new posts hello guys! 1 crusher 1767 Sun May 26, 2013 8:25 pm
Teo View latest post

Back to Top

SOF2.ORG Multiplayer Community © 2017 All times are UTC + 2 Hours [DST enabled]

Copyright ©