RCON Access (HL Modifications)
This is a FAQ to help customers who have already purchased a server
and need information RCON access. Please contact us
in the event your concerns are not addressed.
Keep in mind all RCON commands only work temporarily. To make permanent changes,
edit the server.cfg file.
All customers are expected to have read our Terms of
Service
What is RCON (Remote Console)?
It is a way to temporarily change your half-life game server variables while
you are in the game. You should never give out your RCON password or else someone
can shutdown and/or ruin your game server.
What can it do?
With RCON, you can do things like change the map, lower the gravity, turn friendly
fire on and off, set the round time, restart the scores, and much more. Typically
though, most changes made will reset themselves after a new map load. So in
order to make permanent changes, you'll need to edit the config file that initializes
the parameter in question.
How do I use it?
Before you can use rcon you must first login so the server recognizes and
verifies you. You must either be in the game or at some remote rcon command
line. In the console, you must type the following:
rcon_port <your game server port> (i.e. 27015, 27025, etc)
rcon_password <your rcon password>
For example:
rcon_port 27035
rcon_password bshx
How do I kick a player off the server?
To force a player to leave your game server, you can do:
rcon kick <player>
rcon kick <ID #> (via status command)
rcon kick # <wonid>
How do I ban a player from the server?
You can ban players by wonid or by their IP Addresses. Usually banning by
wonid is enough because it's generated from the player's unique CD Key. However,
you may have a player who either has another copy of the game or a hack to change
their wonid so you may want to ban their IP as well.
rcon banid <minutes> <wonid> kick
rcon writeid
To ban permanently, use 0 minutes. The "rcon writeid"
command makes the ban permanent, without it, the ban will be lost when your
server restarts.
Ban by IP Address
To ban by IP Address, use the "rcon stat" command to find the player's
IP Address and then type in:
rcon addip <minutes> <ipaddress>
rcon writeip
To ban permanently, use 0 minutes. IP banning does also automatically kick
someone in this case. Now to make the IP ban remain permanent, make sure your
autoexec.cfg file on your server has the following line at the end of it:
exec listip.cfg. Please note that adding a zero on the end of an ip
address will act as a wild card: 65.80.76.0
How do I check the ban list from in the server?
You can list banned players from your game console by listing either the
wonid ban list or the IP Address ban list. To list bans by wonid, use the rcon
listid command. To list bans by IP Address, use the rcon listip command.
How do I unban by wonid?
To unban by wonid, use the console and type:
rcon removeid <wonid>
rcon writeid
How do I unban by IP Address?
To unban by IP Address, use the console and type:
rcon removeip <ipaddress>
rcon writeip
How do I change the map on the server?
Using the map name with out the .bsp extension, type rcon changelevel
<map>.
How do I restart the map on the
server?
If you wish to restart the current map rather than switching to another map
simply use rcon restart. It will also execute server.cfg.
How do I execute a league config for
a clan match?
Often these league configs will be called ogl.cfg, cal.cfg, or similar.
First upload the league config via FTP to your game server's mod directory if
it already isn't there. In console, simply type rcon exec <configfile>
to execute the file. Make sure the version you upload does not have the word
rcon in the file name. That is a client side config file only designated
if a server doesn't have the specified config file uploaded.
How do I turn on friendly fire?
When friendly fire is on, then shots from teammates can hit and kill one
another. To turn on friendly fire and enable team killing type in rcon mp_friendlyfire
1. To turn off friendly fire and disable team killing type in rcon mp_friendlyfire
0. This change is temporary and will remain until the server map is changed
or until the server is restarted. If you want the change to be permanent, then
change the mp_friendlyfire server variable in your server.cfg file.
How do I set the map time on the server?
To change the *total* time a server stays on a map, type in rcon mp_timelimit
<time limit>. This will not increase the time left, but only change
the total. Changing the map to the next map is as easy as setting the timelimit
to 1. To keep the server on the map forever, simply change the timelimit to
0.
How do I change the entry password
on the server?
If you want to change the server password to keep unwanted players out of
your match or game, then type in rcon sv_password <password>. This
change takes effect immediately and new players won't be able to get in unless
they know the new password. If you are renting a public server, then doing the
above will temporarily lock your server. When you are done with your match or
game, then you can unlock it by typing rcon sv_password ""
(those are two " symbols in a row). Please check with your terms and conditions
before you make your server public. If you are renting a private server, for
instance, then you will risk being charged the price of a public server for
making your server public.
How do I restart the game server?
If you want to restart the server, then use rcon restart. Note that
this will reload the current map. It will load all configurations on default
values. rcon restart simply acts as a map change to the current map and
reloads all applicable configs.
How do I change the rcon password on the server?
If you want to change the rcon password temporarily before giving it out
to someone during a match (so that you don't have to give out the original rcon
password), then type in rcon_password <newpass>. This change takes
effect immediately and the old rcon password won't work again until a new map
load or server restart.
How do I change the gravity on the
server?
If you want to change the gravity, then type in rcon sv_gravity <gravity>.
The default value is 800.
What's rcon quit do?
Do not use it. It will shut down your server. The server will not
restart by itself.
What are some Counter-Strike specific commands?
rcon mp_c4timer <seconds>
Bomb timer, set it to between 15 - 90 seconds.
rcon mp_roundtime <minutes>
Sets maximum time for each round, set it to between 1 - 8 minutes.
rcon sv_restartround <seconds>
Resets the game in <seconds> seconds. The reset is good for matches
when everybody is finally ready to start the match. The reset will reset frags,
weapons, money, and scores.
rcon mp_limitteams <numplayers>
This variable allows you to keep the team sizes as even as possible. The number
entered here is the maximum number of additional players one team can have.
Setting it to 0 will not limit team sizes.
rcon mp_autoteambalance <1/0>
If '1', then force players to join teams that will be balanced.
Example: rcon mp_autoteambalance 1.
rcon mp_freezetime <seconds>
The time at that beginning where you can't move but can only buy. Set to '0'
to have no freeze time.
Example: rcon mp_freezetime 0.
rcon mp_hostagepenalty <hostagekills>
Sets the number of hostages that a player can kill before they are kicked
from the server. '0' turns it off.
Example: rcon mp_hostagepenalty 0.
Back to top
|