Advanced Dedicated Server Help

 

Remember that you can start a dedicated server from in-game, changing all of the most common values from within the UI, from the Start Server menu.

 

You can call a command, "cvarlist" in the console to show all available cvars.  You can search for specific cvars by doing, "cvarlist *(query)*" where (query) is anything from "ico", "cod", "team", etc.  This will show a list of all cvars containing the specified query.

 

IMPORTANT NOTE:  Activision Customer Support does not support console commands.  Please do not call with questions or problems that arise from the use of console commands.

 

Command Line Options

 

Command line options must be set on the command line and will not work if executed in a config file.

 

net_ip

 

If you are on a multi-homed server and the default IP is not what you want to use for your Call of Duty server, the net_ip command will need to be used.  This must be set on the command line in the following form.

 

Usage: +set net_ip <ip address>

Sample: CoDMP.exe +set dedicated 1 +set net_ip 192.168.0.0

 

net_port

 

Changing the default server port requires the net_port command be run on the command line.  It is useful for running multiple servers on the same computer or making the server somewhat more private.  The default port is 28960 and is incremented automatically by 1 if another server is started without a specified port.

 

Usage: +set net_port

Sample: CoDMP.exe +set dedicated 1 +set net_port 28961

 

Server Only Settings

 

Server settings are only used only on the server and may be used at the console or command line.  Command line usage requires a +set before each command.

 

For example:

+set sv_maxclients 16

 

sv_maxclients

 

sv_maxclients - sets the maximum amount of clients that can connect to the server.  The default setting is 20.

 

Usage: sv_maxclients

 

sv_hostname

 

sv_hostname - sets the server name that will show up in the master server list.  The name must be enclosed in quotes if a space is in the name.

 

Usage: sv_hostname "<servername>"

 

sv_pure

 

sv_pure - controls crc/zip check of client pk3 files to make sure the pk3 file has not been modified for cheating or other purposes.  Client pk3 files must match that of the server to connect.  The default is set to 1, or on. Set to 0 to turn off check.

 

Usage: sv_pure 1

 

Server Console Commands

 

Server console commands are used from the server console or the remote console.

 

status

 

status - shows the client number (num), score, ping, player name (name), client IP address (address), and port connected through (qport).  Client number is used in conjunction with the clientkick command.

 

Usage: status

 

kick

 

kick - removes a player from the server.  It is particularly useful for removing disruptive players.  To kick a player, type kick and then the player's name.

 

Usage: kick <playername>

 

rconpassword

 

rconpassword - sets remote console password so clients may change server settings without direct access to the server console.  The default is set to none.  Client can control the server by entering commands on the console with the format of \rconpassword mypass and then adding server commands after the \rcon command.

 

Usage: rconpassword <serverpassword>

 

killserver

 

killserver - will stop all server services from running but leaves the Call of Duty executable running on the server.

 

Usage: killserver