Skip to content

RCON Commands

Remote Console (RCON) lets you administer your Call of Duty 4 server without restarting it. You can manage players, change maps, and adjust settings in real time.

Logging In

From the In-Game Console

Press ~ to open the console and authenticate:

/rcon login <your_rcon_password>

After logging in, prefix any command with /rcon:

/rcon status
/rcon map mp_crash
/rcon kick PlayerName

From the uHost Dashboard

The RCON console on the dashboard connects directly to your server with no password entry needed. Type commands without the /rcon prefix.

Remote RCON (Not Connected to Server)

You can administer a server you're not playing on by setting the RCON address first:

/rconaddress <ip>:<port>
/rcon login <your_rcon_password>

WARNING

Be careful typing RCON commands in the in-game console. If you mistype a command, your password could be displayed in chat. Use the dashboard RCON console or an external RCON tool for safer administration.

Server Management

CommandDescription
statusList all connected players with client ID, score, ping, GUID, name, and IP.
serverinfoDisplay current server settings.
map <mapname>Change to the specified map. Performs a full reload.
map_rotateAdvance to the next map in the rotation.
map_restartRestart the current map (full reload).
fast_restartRestart the current map without a full reload. Much faster than map_restart.
say "<message>"Broadcast a message to all players.
tell <client_id> "<message>"Send a private message to a player by client ID.
exec <filename>Execute a config file from the server directory.
killserverShut down the server process.

TIP

Prefer fast_restart over map_restart for restarting rounds. It skips the full map reload and is significantly quicker.

Player Management

CommandDescription
kick <name>Kick a player by name. Requires exact name including colour codes. Use kick all to kick everyone.
onlykick <name>Kick a player by name (colour codes not required).
clientkick <client_id>Kick a player by client ID. The most reliable method; get IDs from status.
banUser <name>Permanently ban a player by name. Writes their GUID to ban.txt.
banClient <client_id>Permanently ban a player by client ID. Writes their GUID to ban.txt.
tempBanUser <name>Temporarily ban a player by name.
tempBanClient <client_id>Temporarily ban a player by client ID.
unbanUser <name>Remove a ban by player name.
dumpuser <name>Show detailed information about a connected player.

TIP

Always use clientkick <id> instead of kick <name>. Client IDs from status are unambiguous, while names require exact colour code matches.

Live Setting Changes

You can change server settings without a restart using RCON:

CommandDescription
sv_hostname "<name>"Change the server name.
g_password "<password>"Set or clear the join password. Use "" to remove.
g_gametype <type>Change the game type. Requires map_restart to take effect.
sv_maxclients <count>Change the maximum player count.

For any CVar, use the set command:

/rcon set scr_war_timelimit "15"
/rcon set g_allowvote "0"

INFO

Some settings (like g_gametype) require a map_restart or fast_restart before they take effect.

CoD4x Extended Commands

These commands are available because uHost servers run CoD4x v1.8:

CommandDescription
screensay "<message>"Display a message on every player's screen (HUD overlay).
screentell <client_id> "<message>"Display a message on a specific player's screen.
permban <client_id>Permanently ban a player (CoD4x ban system).
tempban <client_id>Temporarily ban a player (CoD4x ban system).
dumpbanlistDisplay the current ban list.
ministatusCompact player list (less verbose than status).
loadPlugin <name>Load a server plugin (without file extension).
unloadPlugin <name>Unload a server plugin.
pluginsList all loaded plugins.
pluginInfo <name>Show details about a specific plugin.

Map Names

Use these internal names with the map command.

Stock Maps

MapCommand
Ambushmap mp_convoy
Backlotmap mp_backlot
Blocmap mp_bloc
Bogmap mp_bog
Countdownmap mp_countdown
Crashmap mp_crash
Crossfiremap mp_crossfire
Districtmap mp_citystreets
Downpourmap mp_farm
Overgrownmap mp_overgrown
Pipelinemap mp_pipeline
Shipmentmap mp_shipment
Showdownmap mp_showdown
Strikemap mp_strike
Vacantmap mp_vacant
Wet Workmap mp_cargoship

DLC Maps

MapCommand
Broadcastmap mp_broadcast
Chinatownmap mp_carentan
Creekmap mp_creek
Killhousemap mp_killhouse
Winter Crashmap mp_crash_snow

Game Types

CodeMode
dmFree-For-All
warTeam Deathmatch
sdSearch & Destroy
sabSabotage
domDomination
kothHeadquarters

Change the game type live:

/rcon g_gametype sd
/rcon fast_restart

Common Workflows

Restart the Current Round

/rcon fast_restart

Switch to a Specific Map and Game Type

/rcon g_gametype sd
/rcon map mp_crash

Kick a Disruptive Player

/rcon status

Find the player's client ID (first column), then:

/rcon clientkick 5

Temporarily Ban a Player

/rcon tempBanClient 5

Send a Server-Wide Announcement

/rcon say "Server restarting in 5 minutes"

Password-Protect the Server Mid-Game

/rcon g_password "secretpass"

To remove the password:

/rcon g_password ""

Stop Paying for Empty Servers.