People seem to ask this question allot lately so I decided to help them.
In order to get your server going you need to make a config. For your convenience here is one setup up for you: Dedicated.CFG
Download that cfg (right click save as) and open it with notepad or wordpad and then just change the server name along with rcon and save. Once you’ve done that place the dedicated.cfg file in your call of duty 4 main folder.
Default is C:\Program Files\Activision\Call of Duty 4 – Modern Warfare\main.
Now that you have your cfg edited and placed in the right directory you need to make another shortcut for iw3mp.exe on your desktop and rename it to dedicated server or whatever you want really. This is so that you have two shortcuts to the ‘iw3mp.exe’, one for playing cod4 normally online and the other for your dedicated cod4 server. So now with your shortcut for your server you have to right click it and click properties.
Where it says “Target” you have to place this line: +set dedicated 2 +set sv_punkbuster 1 +exec dedicated.cfg +map_rotate after iw3mp.exe so it should look something like this:
“C:\Program Files\Activision\Call of Duty 4 – Modern Warfare\iw3mp.exe” +set dedicated 2 +set sv_punkbuster 1 +exec dedicated.cfg +map_rotate
Then click apply. Note, that if it doesn’t let you apply and gives you an error then you’re doing something wrong.
If you’ve done all that, you can simply click on your server shortcut and a cod4 console window will open. This is totally normal and means that your game is running in dedicated server mode.
If you want to learn more about call of duty 4 go to dead-x-clan.com