Dedicated Game Servers

g4m3rof1337

Active Member
I know Counter Strike: Source has a dedicated server option, what about Call of Duty 4? To host a server online. And would it be the same process as CSS, with port forwarding?


What are some other games that can do this?

Battlefield 2/2142?


Thanks.
 
Alright, I sent you a PM.


What about for other games, like Battlefield and stuff?

Are all the games the same when it comes to speeds and stuff? Like with CSS, on a 768k line, I can get 12 people no lag. But I'll be on a line with 1mb upload.



Thanks.
 
i found that css and hl2 were less forgiving than cod4 when it came to the amount of players, my upload is 768 and on css i would be able to host the same as you around 12 people the same when for hl2 but cod 4 i have hosted 16 people before with no problems and a mate of mine on the same service provider has had 20 with no noticable problems.
 
Quick guide to making a dedicated cod 4 server.

The first thing is to start with a clean install.For a ranked game (unmodded with xp points and custom classes ) All you are going to need is a server.cfg .
here is one you can use.
//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 "^7WELCOME"
//tell [clientnum] "^4have fun"

// server settings
// --------------
//map rotation

set sv_mapRotation "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_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog 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_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"
// Client Download Settings. (0=off/1=on) Used for MODs and custom maps
// See included Quick Setup Guide for instructions.
//set sv_allowdownload "1"
//seta sv_wwwDownload "1"
//seta sv_wwwBaseURL "http://www.xxx.xxx.xx"
//seta sv_wwwDlDisconnected "1"
//<gametype> is one of:
//"dm" - free for all deathmatch
//"dom" - domination
//"koth" - headquarters
//"sab" - sabotage
//"sd" - search & destroy
//"war" - team deathmatch
set scr_motd ""
set sv_hostname ""
set g_gametype "dm war"
set sv_maxclients 20 //[1-32]
//set g_password "alpha"
set sv_voice 1 //[0-1]
set scr_teambalance 1 //[0-1]
set g_allowvote 1 //[0-1]
set sv_punkbuster 1 //[0-1]
set sv_minping 0 //[0-n] (milliseconds)
set sv_maxping 400 //[0-n] (milliseconds)
//set sv_connectTimeout 60 //[0-n] (seconds)
//set sv_timeout 60 //[0-n] (seconds)
//set sv_privatePassword "meanman" // Private slots, non-public slots
// Rate
set net_port 28960
set sv_maxRate "5000"
set sv_punkbuster "1"
PB_SV_GUIDRelax 1
pb_sv_httpAddr
pb_sv_httpPort 8080
pb_sv_httpKey
pb_sv_httpRefresh 30
PB_SV_HttpMaps gametype dm map mp_backlot gametype sab map mp_bloc
PB_SV_AutoUpdBan 1
PB_SV_Update
PB_SV_Sleep 100
PB_SV_MinName 4
PB_SV_ScoreKick -9
PB_SV_KickLen 01
set rcon_password
// FPS
//set sv_fps "20"
//gameplay options
//----------------
//gameplay options
//----------------
set sv_master1 "cod2master.activision.com"
set sv_master2 "cod2authorize.activision.com"
set sv_master3 "cod2master.infinityward.com"
set sv_master3 "cod2update.activision.com"
set sv_master4 "master.gamespy.com:28960"
set sv_master5 "master0.gamespy.com"
set sv_master6 "master1.gamespy.com"
set sv_master7 "clanservers.net"
set sv_gamespy "1"
//set scr_oldschool //[0-1]
set scr_hardcore 0//[0-1]
set scr_game_spectatetype 3//[0-2] (Disabled, Team/Players Only, Free)
set scr_game_allowkillcam 1 //[0-1]
set scr_team_fftype 2 //[0-3] (Disabled, Enabled, Reflect, Shared)
//set perk_allow_rpg_mp 0
set scr_game_perks 1 //[0-1]
set scr_game_onlyheadshots 1 //[0-1]
//set scr_game_forceuav //[0-1]
set scr_game_hardpoints 1//[0-1] (i.e. artillery, uav, helicopter)
set scr_hardpoint_allowartillery 1//[0-1]
set scr_hardpoint_allowuav 1//[0-1]
set scr_hardpoint_allowhelicopter 1//[0-1]


//free for all deatmatch
//-----------------------
set scr_dm_scorelimit 250 //[0-n]
set scr_dm_timelimit 20 //[0-n] (minutes)


// DOMINATION
//************************************************** ****************************
set scr_dom_scorelimit 200
set scr_dom_timelimit 0
set scr_dom_roundlimit 2
set scr_dom_numlives 3
set scr_dom_playerrespawndelay 0
set scr_dom_waverespawndelay 0


//team deathmatch
//-----------------
set scr_war_scorelimit 750//[0-n]
set scr_war_timelimit 15//[0-n] (minutes)


//---------
// SABOTAGE
//************************************************** ****************************
set scr_sab_scorelimit 3
set scr_sab_timelimit 15
set scr_sab_roundlimit 0
set scr_sab_roundswitch 1
set scr_sab_numlives 0
set scr_sab_bombtimer 30
set scr_sab_planttime 2.5
set scr_sab_defusetime 5
set scr_sab_hotpotato 0
set scr_sab_playerrespawndelay 5
set scr_sab_waverespawndelay 0


//************************************************** ****************************
// SEARCH AND DESTROY CLASSIC
//************************************************** ****************************
set scr_sd_scorelimit 4
set scr_sd_timelimit 2.5
set scr_sd_roundlimit 0
set scr_sd_roundswitch 3 // rounds between switching teams
set scr_sd_numlives 1 // elimination
set scr_sd_bombtimer 45
set scr_sd_planttime 5
set scr_sd_defusetime 5
set scr_sd_multibomb 0
set scr_sd_playerrespawndelay 5
set scr_sd_waverespawndelay 0


// HEADQUARTERS
//************************************************** ****************************
set scr_koth_scorelimit 250
set scr_koth_timelimit 15
set scr_koth_roundlimit 1
set scr_koth_roundswitch 1
set scr_koth_numlives 3
set scr_koth_playerrespawndelay 0
set scr_koth_waverespawndelay 0
set koth_autodestroytime 60
set koth_spawntime 0
set koth_kothmode 0
set koth_capturetime 20
set koth_destroytime 10
set koth_delayPlayer 0
set koth_spawnDelay 60
exec pbsvmessages.cfg
**************************************************
copy and paste it into notepad and save as server.cfg, brows to were you have installed the game and place the server.cfg into the main folder. then right click the iw3mp.exe and send to desktop. Go to your desktop and right click the iw3mp.exe and select properties copy and paste what it says in the target line into notepad leave a space at the end of iw3mp.exe" and add this +set dedicated 2 +set net_ip **** +set net_port 28960 +exec server.cfg + map_rotate Then remove what it says in the iw3mp.exe target line and copy and paste what you just done in notepad into the target line save and exit.
dedicated 2 means it will be seen on the internet dedicated 1 is for a lan server.
now its time to tweak you server.cfg when you have done that double click the iw3mp.exe and you should be good to go. dont forget to port forward if you are through a router.
if you have a bit of webspace that allows ftp you can use statsgen to setup a stats page amd you can also use modern rcon for easy control of your server.
if you want to rotate messages on your server you have to do it through punkbuster for this you will notice in the cfg at the botton it has this
exec pbsvmessages.cfg you will also need to make two cfgs one called pbsvuser.cfg in this you will need to add this, pb_sv_load pbsvmessages.cfg //load server messages
and the other cfg will need to be called this pbsvmessages.cfg and you will have to add this ;pb_sv_task X Y "MESSAGE HERE"
;X= Number of seconds after server start to say message
;Y= Number of seconds before repeating this message

//pb_sv_task 20 180 say "put your messages like this "
//pb_sv_task 20 180 say " you can use the colurs ie ^2 is green"
//pb_sv_task 120 180 say ""
//pb_sv_task 30 180 say ""
//pb_sv_task 30 180 say ""
//pb_sv_task 360 600 say ""
//pb_sv_task 420 600 say ""

hope this helps let me no how you go.
 
Last edited:
Is it a program that hosts it? Like Source Dedicated Server? Or do I use the Create a Server feature?



Thanks.
 
neither follow the above guide and then just run the shortcut from your desktop and instead of the game starting a box will come up in the box iy will say this -----------------------------------
PunkBuster Server: pb_sv_GuidRelax = 7 (0 to 7)
Hitch warning: 2191 msec frame time
Sending heartbeat to cod4master.activision.com
that means everything is working fine.
 
Last edited:
I got the box to after you start the game but now what do I do? It won't let me do anything except to type stuff.
 
if the box you are refering to has call of duty 4 written on the top and a box full of wrighting that ends in sending heartbeat to cod4master. activision.com you are done and its working fine. now go to the pc you are running the game from and look for your server in the internet list.
 
um i didn't even create a name for my server so how can I find it in the list?

This is all so confusing. I'm about to give up.
 
on the page before this i posted a guide in the guide is a cfg so i take it you have copied and pasted it into notepad and saved it as server.cfg that goes into your main folder in the cfg you will find everything you need to alter like the server name. server name goes here
set sv_hostname ""
so look for that in the cfg and place the name into it like this
set sv_hostname "put server name here"
everything to do with your dedicated server can be found in the cfg.
p.s. if you cant figure it out send me a pm with what you want to call the server and what colors you want the name to be in and the ip of the server ,how many players you want it to have whether you want it hardcore ,oldshool or normal
and i will do it for you and ill pm you with a link that you will be able to download it from.
 
Last edited:
Back
Top