COD4 - How to use in-game RCON
How to use in-game RCON to administrate your CoD4 server
- CoD4 game server with rcon access.
1) Connect to your server and login to RCON
Once you have connected to your server, open up the console with the tilde key (normally to the left of “1”). You should see a small box open to at the top of your screen. If you wish to expand it, press Shift + Tilde and the console will expand across your screen. Through here you can input commands, including RCON commands. First, we need to login to RCON, you entered this when you ordered/setup your server. For this example the RCON password is “cheese”, to login to RCON you would enter the command (without quotes) “/rcon login cheese” – this will authenticate you as the server owner and will allow you to run any other commands.
2) The commands
Along as you could login to RCON the rest is relatively simple, as long as you know the commands. Below is a list of various console commands, each with an explanation. (Note: Do NOT include the square brackets in the command!)
Shows the current server's settings.
Shows the current System Information.
Displays info of all the players on the server.
/rcon exec [FILENAME]
Executes a Server Config File (located in your server's main directory)
/rcon writeconfig [FILENAME]
Saves a Server Config File
Post a console message to all players.
/rcon map mapname
Loads the map specified by mapname.
Reloads the map (map load screen appears – required for gametype change etc)
Restarts the map immediately (no load screen, resets scores and goes back to team selection menu)
Note: You can get a players [ID] by using “/rcon status” and use the single number beside their name.
/rcon kick all
Kicks all players from the server.
/rcon onlykick [NAME]
Kicks a player by name from the server. (Does not need Color Codes)
/rcon banUser [NAME]
Bans a user by their ingame name. Writes their GUID to ban.txt
/rcon banClient [ID]
Bans a user by their client number. Writes their GUID to ban.txt
/rcon tempBanUser [NAME]
Kicks and temporarily bans player by name from server.
/rcon tempBanClient [ID]
Kicks and temporarily bans player by client id from server.
/rcon unbanuser [NAME]
Unban every player banned with [name]. If you want to unban a single player whose