Post by El on Nov 29, 2006 14:02:02 GMT 1
Logging Into RCON
RCON, which stands for Remote CONtrol, is like a special mode of communicating with your server as an administrator. It gives you the ability to do alot of administrative tasks from the developer console. The developer console is just a part of your game that lets you send commands directly to the server. You can open the console by hitting the ~ (tilde) key on your keyboard. If nothing happens, you may have to enable the Developer Console in your Options / Advanced / Keyboard settings in whichever game you are playing.
The first step to using RCON is to log into RCON. To do this, connect to your gameserver first. Then open the console by hitting the ~ key. Once the console opens up, type in
rcon_password yourrconpassword
Your rcon password is something that you can set in your server's server.cfg file. Once you are finished typing in the above line, hit enter. Nothing special will happen, but if you typed the rcon password in correctly, you will be 'logged into rcon'. Keep in mind that if you disconnect from the server and log back on, you'll need to log into RCON again.
Now that you're logged into RCON, there are quite a few things you can do.
Changing Maps
If you want to change to a new map on your server, here's what you would write:
rcon changelevel mapname
ie. rcon changelevel de_dust2
or; rcon changelevel crossfire
The map will change immediately. Do not forget the 'rcon' preceding the changelevel command or it will not work.
Setting the Timelimit
If you want to change the timelimit for the current map, you can do this:
rcon mp_timelimit 60
The above command would change the map's timelimit to 60 minutes.
Setting the Fraglimit
Want to change how many frags (kills) occur before the map changes to the next map in the mapcycle? Try this:
rcon mp_fraglimit 25
The above command would set the server to end the map as soon as someone hits 25 kills.
Friendly Fire
If you want to enable or disable friendly fire (team damage) in your server, here's the command you need:
rcon mp_friendlyfire 0 (off)
or;
rcon mp_friendlyfire 1 (on)
Kicking a Player
If you want to kick a player, you need to use the rcon kick command. You can kick someone using their name or using their Steam ID. To get someone's Steam ID you have to use the status command. When you type status in the console, it will give you a list of players and information about them; it will look like this:
hostname: Your Server
version : 1.0.0.6/7 2455 secure
udp/ip : 10.11.12.13:27015
map : crazyMap at: 0 x, 0 y, 0 z
players : 8 (16 max)
# userid name uniqueid connected ping loss state adr
# 78 "117" STEAM_0:0:8470450 17:25 99 0 active 69.141.47.189:43621
# 27 "Capt_Kirk" STEAM_0:1:5276191 3:11:26 54 0 active 209.246.153.34:64985
# 87 "billemite" STEAM_0:0:5117808 02:17 63 0 active 68.203.129.137:60426
# 84 "unnamed" STEAM_0:0:7804396 09:39 184 0 active 84.60.216.95:27005
# 85 "Iceman" STEAM_0:0:6118542 08:25 99 0 active 69.76.82.25:27005
# 88 "paintballhallic" STEAM_0:1:8611297 00:42 176 0 spawning 68.13.113.146:27005
# 54 "Johnny Crazy" STEAM_0:0:6327182 1:19:14 136 0 active 24.119.184.220:63555
# 68 "Killer Klark" STEAM_0:0:5957785 1:00:56 96 0 active 68.13.181.120:27005
Let's say for example, the player in the server named Iceman was causing problems, and you needed to kick him. As you can see, I've highlighted Iceman's Steam ID in the status output. You can use either of these 2 commands to kick Iceman:
rcon kick Iceman
or
rcon kick STEAM_0:0:6118542
Of course, it's easier to kick Iceman by his name. But some people have wierd characters in their name, or have difficult to spell names. Sometimes you will have to use the Steam ID. Also, a player's Steam ID follows him everywhere. A person can change names, but they cannot change their Steam IDs. This comes in handy when you want to ban a player.
Temporarily Banning a Player
Let's say Iceman came back into the server after you kicked him, and started causing problems again, and you wanted to ban him for 30 minutes. This is how you would do it;
rcon banid 30 Iceman
rcon writeid
or
rcon banid 30 STEAM_0:0:6118542
rcon writeid
The first line bans the Steam ID of the player (the banid command does that) for 30 minutes since we typed in 30. The second part, rcon writeid, writes the user's ID to a banned_user.cfg file in your gameserver folder that keeps track of the banned players. The reason for this is that if you do not write his ID to the file, if the map changes he will become unbanned immediately.
Permanently Banning a Player
Well, Iceman hasn't learned his lesson and comes back 30 minutes later and starts swearing and teamkilling everyone. You want to ban him permanently now. Here's how:
rcon banid 0 Iceman kick
rcon writeid
or
rcon banid 0 STEAM_0:0:6118542 kick
rcon writeid
By putting a zero (0) in for the ban time, the ban becomes permanent. The kick part of the line kicks the player as they are banned. Say goodbye to Iceman, for good!
Unbanning a Banned Player
Whoops, I banned my friend! How can I get him unbanned? First of all you will need your friend's Steam ID. You'll either have to get it from him, or join a different server with him and use the status command to get his Steam ID.
Once you have his Steam ID, connect back to your server, log into rcon and write the following 2 commands:
rcon removeid STEAM_0:1:123456
rcon writeid
If you banned someone by their IP Address and not their Steam ID, use the removeip command instead of removeid. See below for information about banning by IP.
This is the only way to remove someone from being banned on your server.
Banning an IP Address
A player on your server keeps reconnecting with different Steam IDs and being a jerk. You want to ban his entire IP address (his internet address) so he can't connect anymore. Using the status command, check his IP address, which is the last part of the line:
hostname: Your Server
version : 1.0.0.6/7 2455 secure
udp/ip : 10.11.12.13:27015
map : crazyMap at: 0 x, 0 y, 0 z
players : 8 (16 max)
# userid name uniqueid connected ping loss state adr
# 78 "117" STEAM_0:0:8470450 17:25 99 0 active 69.141.47.189:43621
# 27 "Capt_Kirk" STEAM_0:1:5276191 3:11:26 54 0 active 209.246.153.34:64985
# 87 "billemite" STEAM_0:0:5117808 02:17 63 0 active 68.203.129.137:60426
# 84 "unnamed" STEAM_0:0:7804396 09:39 184 0 active 84.60.216.95:27005
# 85 "Iceman" STEAM_0:0:6118542 08:25 99 0 active 69.76.82.25:27005
The parts I have highlighted are the IP addresses. Once you know which one you want to ban, write it down carefully. Banning the wrong IP could turn out to be a bigger mistake than you want to make. Let's say we want to ban Iceman by his IP address:
rcon banip 0 69.76.82.25 kick
The above line bans Iceman's IP address permanently and kicks him. Now Iceman will never get back on your server unless he gets a new internet provider, or unless he has a dynamic (changing) IP Address.
Loading a Configuration File
Let's say you're in a league and you want to run the league's config file for a match. First you need to upload the configuration file to your gameserver's main folder. Let's say the configuration file is called match.cfg. You would upload it to your gameserver's main folder and then from rcon, to load it, do the following:
rcon exec match.cfg
The match config will load up and all of the settings in it will be executed. You can load any type of configuration file you want at any time. If you wanted to execute that same match configuration file every time a map changes, add the following line to your server.cfg file:
exec match.cfg
Changing the Server's Password
Want to change the password of your server on the fly?
rcon sv_password newpassword
Want to remove the password altogether? (Please do not do this if you rent a private server).
rcon sv_password ""
Low Gravity
The default gravity setting is 800. If you want to lower the gravity so that people bounce around easily, try the following setting:
rcon sv_gravity 100
Restart Your Server
You can even restart your server from RCON. Just write:
rcon quit
This is the equivalent of stopping and starting the server
RCON, which stands for Remote CONtrol, is like a special mode of communicating with your server as an administrator. It gives you the ability to do alot of administrative tasks from the developer console. The developer console is just a part of your game that lets you send commands directly to the server. You can open the console by hitting the ~ (tilde) key on your keyboard. If nothing happens, you may have to enable the Developer Console in your Options / Advanced / Keyboard settings in whichever game you are playing.
The first step to using RCON is to log into RCON. To do this, connect to your gameserver first. Then open the console by hitting the ~ key. Once the console opens up, type in
rcon_password yourrconpassword
Your rcon password is something that you can set in your server's server.cfg file. Once you are finished typing in the above line, hit enter. Nothing special will happen, but if you typed the rcon password in correctly, you will be 'logged into rcon'. Keep in mind that if you disconnect from the server and log back on, you'll need to log into RCON again.
Now that you're logged into RCON, there are quite a few things you can do.
Changing Maps
If you want to change to a new map on your server, here's what you would write:
rcon changelevel mapname
ie. rcon changelevel de_dust2
or; rcon changelevel crossfire
The map will change immediately. Do not forget the 'rcon' preceding the changelevel command or it will not work.
Setting the Timelimit
If you want to change the timelimit for the current map, you can do this:
rcon mp_timelimit 60
The above command would change the map's timelimit to 60 minutes.
Setting the Fraglimit
Want to change how many frags (kills) occur before the map changes to the next map in the mapcycle? Try this:
rcon mp_fraglimit 25
The above command would set the server to end the map as soon as someone hits 25 kills.
Friendly Fire
If you want to enable or disable friendly fire (team damage) in your server, here's the command you need:
rcon mp_friendlyfire 0 (off)
or;
rcon mp_friendlyfire 1 (on)
Kicking a Player
If you want to kick a player, you need to use the rcon kick command. You can kick someone using their name or using their Steam ID. To get someone's Steam ID you have to use the status command. When you type status in the console, it will give you a list of players and information about them; it will look like this:
hostname: Your Server
version : 1.0.0.6/7 2455 secure
udp/ip : 10.11.12.13:27015
map : crazyMap at: 0 x, 0 y, 0 z
players : 8 (16 max)
# userid name uniqueid connected ping loss state adr
# 78 "117" STEAM_0:0:8470450 17:25 99 0 active 69.141.47.189:43621
# 27 "Capt_Kirk" STEAM_0:1:5276191 3:11:26 54 0 active 209.246.153.34:64985
# 87 "billemite" STEAM_0:0:5117808 02:17 63 0 active 68.203.129.137:60426
# 84 "unnamed" STEAM_0:0:7804396 09:39 184 0 active 84.60.216.95:27005
# 85 "Iceman" STEAM_0:0:6118542 08:25 99 0 active 69.76.82.25:27005
# 88 "paintballhallic" STEAM_0:1:8611297 00:42 176 0 spawning 68.13.113.146:27005
# 54 "Johnny Crazy" STEAM_0:0:6327182 1:19:14 136 0 active 24.119.184.220:63555
# 68 "Killer Klark" STEAM_0:0:5957785 1:00:56 96 0 active 68.13.181.120:27005
Let's say for example, the player in the server named Iceman was causing problems, and you needed to kick him. As you can see, I've highlighted Iceman's Steam ID in the status output. You can use either of these 2 commands to kick Iceman:
rcon kick Iceman
or
rcon kick STEAM_0:0:6118542
Of course, it's easier to kick Iceman by his name. But some people have wierd characters in their name, or have difficult to spell names. Sometimes you will have to use the Steam ID. Also, a player's Steam ID follows him everywhere. A person can change names, but they cannot change their Steam IDs. This comes in handy when you want to ban a player.
Temporarily Banning a Player
Let's say Iceman came back into the server after you kicked him, and started causing problems again, and you wanted to ban him for 30 minutes. This is how you would do it;
rcon banid 30 Iceman
rcon writeid
or
rcon banid 30 STEAM_0:0:6118542
rcon writeid
The first line bans the Steam ID of the player (the banid command does that) for 30 minutes since we typed in 30. The second part, rcon writeid, writes the user's ID to a banned_user.cfg file in your gameserver folder that keeps track of the banned players. The reason for this is that if you do not write his ID to the file, if the map changes he will become unbanned immediately.
Permanently Banning a Player
Well, Iceman hasn't learned his lesson and comes back 30 minutes later and starts swearing and teamkilling everyone. You want to ban him permanently now. Here's how:
rcon banid 0 Iceman kick
rcon writeid
or
rcon banid 0 STEAM_0:0:6118542 kick
rcon writeid
By putting a zero (0) in for the ban time, the ban becomes permanent. The kick part of the line kicks the player as they are banned. Say goodbye to Iceman, for good!
Unbanning a Banned Player
Whoops, I banned my friend! How can I get him unbanned? First of all you will need your friend's Steam ID. You'll either have to get it from him, or join a different server with him and use the status command to get his Steam ID.
Once you have his Steam ID, connect back to your server, log into rcon and write the following 2 commands:
rcon removeid STEAM_0:1:123456
rcon writeid
If you banned someone by their IP Address and not their Steam ID, use the removeip command instead of removeid. See below for information about banning by IP.
This is the only way to remove someone from being banned on your server.
Banning an IP Address
A player on your server keeps reconnecting with different Steam IDs and being a jerk. You want to ban his entire IP address (his internet address) so he can't connect anymore. Using the status command, check his IP address, which is the last part of the line:
hostname: Your Server
version : 1.0.0.6/7 2455 secure
udp/ip : 10.11.12.13:27015
map : crazyMap at: 0 x, 0 y, 0 z
players : 8 (16 max)
# userid name uniqueid connected ping loss state adr
# 78 "117" STEAM_0:0:8470450 17:25 99 0 active 69.141.47.189:43621
# 27 "Capt_Kirk" STEAM_0:1:5276191 3:11:26 54 0 active 209.246.153.34:64985
# 87 "billemite" STEAM_0:0:5117808 02:17 63 0 active 68.203.129.137:60426
# 84 "unnamed" STEAM_0:0:7804396 09:39 184 0 active 84.60.216.95:27005
# 85 "Iceman" STEAM_0:0:6118542 08:25 99 0 active 69.76.82.25:27005
The parts I have highlighted are the IP addresses. Once you know which one you want to ban, write it down carefully. Banning the wrong IP could turn out to be a bigger mistake than you want to make. Let's say we want to ban Iceman by his IP address:
rcon banip 0 69.76.82.25 kick
The above line bans Iceman's IP address permanently and kicks him. Now Iceman will never get back on your server unless he gets a new internet provider, or unless he has a dynamic (changing) IP Address.
Loading a Configuration File
Let's say you're in a league and you want to run the league's config file for a match. First you need to upload the configuration file to your gameserver's main folder. Let's say the configuration file is called match.cfg. You would upload it to your gameserver's main folder and then from rcon, to load it, do the following:
rcon exec match.cfg
The match config will load up and all of the settings in it will be executed. You can load any type of configuration file you want at any time. If you wanted to execute that same match configuration file every time a map changes, add the following line to your server.cfg file:
exec match.cfg
Changing the Server's Password
Want to change the password of your server on the fly?
rcon sv_password newpassword
Want to remove the password altogether? (Please do not do this if you rent a private server).
rcon sv_password ""
Low Gravity
The default gravity setting is 800. If you want to lower the gravity so that people bounce around easily, try the following setting:
rcon sv_gravity 100
Restart Your Server
You can even restart your server from RCON. Just write:
rcon quit
This is the equivalent of stopping and starting the server