rudedog
02-25-2005, 10:16 PM
RCON (Remote Console) is a way for an Admin of a server to issue commands to the server from his/her client machine while in-game
RCON
RCON (Remote Console) is a way for an Admin of a server to issue commands to the server from his/her client machine while in-game. This can be useful for many things, including changing variables (like the maxPing value or inactiveKick etc.) and of course the ever popular KICK command.
'ENABLING' rcon is nothing more than assigning a password to it in your config file.
//See above in the .CFG section
rconPassword your password
To "USE" it from your CLIENT, you MUST have + set ui_console 1 in your target line of the shortcut (also shown above in the shortcut/command line section ).
MANUAL LOGIN FOR RCON
To manually login to your server:
Method 1:
Start MOH, when you get to the MAIN MENU room, hit the ~ (tilde) key to bring down the console.
Type rconAddress xxx.xxx.xxx.xxx (X = your server's IP address) and hit enter.
Then type rconPassword yourpassword (yourpassword = the password set in your .cfg file) and hit enter.
If you've supplied a wrong or misspelled password, it will return an error, bad Rcon password.
If you entered it correctly it will simply enter to the next line (there's no confirmation really)
(at this point I'd type a command like RCON STATUS to test if it worked, if it did RCON STATUS will list the players currently in your server)
Method 2:
Almost the same as Method 1 but WITHOUT needing the rconAddress command.
Start MOH, and CONNECT to your server as if you were simply going there to play.
Once you are connected, bring down the console using the ~ key.
Type rconPassword yourpassword and hit enter (again, same confirmation, just a blank line)
You DO NOT need to use the rconAddress command because you are ALREADY connected to your server, so it knows what server to send the RCON request to.
(again, you should perform the RCON STATUS command to test your RCON).
AUTOMATIC LOGIN FOR RCON
This is the method I use and I prefer it over all the manual typing.
What I do is create ANOTHER config file, call it RCON.CFG for example and save it in your MAIN directory wherever MOHAA is installed.
Put these 2 lines in the file:
rconAddress xxx.xxx.xxx.xxx // (x = your SERVER'S IP address).
rconPassword xxx //(x = your password).
That's all you need, be sure to hit ENTER at the end to create a blank line at the end. SAVE IT AS rcon.cfg, or be sure to rename it to whateveryouwant.CFG
Then make sure your shortcut (on the CLIENT MACHINE !!) CALLS the config file by adding +exec rcon.cfg at the END of the command line.
By doing this, as SOON AS YOU START MOH on the CLIENT machine, you will have logged yourself into YOUR SERVER without having to join the game first or enter anything manually. You can then bring down the console (in the lobby) and do whatever commands you like since you are logged in !!!.
As far as RCON commands .... well you're on your own really.
Some useful commands are:
rcon status //Shows player info for all the people on your server
rcon serverinfo //Shows current server settings
rcon kick all //Kicks everyone off the server at once
rcon kick playername //Kick a disruptive player off the server by his playername
rcon clientkick (0-32) //Kicks a player by their client #. Rcon Status will list players starting with a
//client #. The number is always 0 thru one less than max players. So if you
//have a 12 player server, it will list players 0 � 11. This variable comes in VERY
//handy to kick people who have spaces or general funkiness in their names. Plus
//it is easier than typing some peoples really long names.
rcon map mapname //Forces the server to change to the specified map (ex. Rcon map dm/mohdm7)
rcon restart //Restarts the current map, resets the timelimit if one is specified
Remember, you can type CMDLIST or CVARLIST in the console for full lists of available commands and cvar's.
Ok, you should be on your way to having a decent dedicated server now.
RCON
RCON (Remote Console) is a way for an Admin of a server to issue commands to the server from his/her client machine while in-game. This can be useful for many things, including changing variables (like the maxPing value or inactiveKick etc.) and of course the ever popular KICK command.
'ENABLING' rcon is nothing more than assigning a password to it in your config file.
//See above in the .CFG section
rconPassword your password
To "USE" it from your CLIENT, you MUST have + set ui_console 1 in your target line of the shortcut (also shown above in the shortcut/command line section ).
MANUAL LOGIN FOR RCON
To manually login to your server:
Method 1:
Start MOH, when you get to the MAIN MENU room, hit the ~ (tilde) key to bring down the console.
Type rconAddress xxx.xxx.xxx.xxx (X = your server's IP address) and hit enter.
Then type rconPassword yourpassword (yourpassword = the password set in your .cfg file) and hit enter.
If you've supplied a wrong or misspelled password, it will return an error, bad Rcon password.
If you entered it correctly it will simply enter to the next line (there's no confirmation really)
(at this point I'd type a command like RCON STATUS to test if it worked, if it did RCON STATUS will list the players currently in your server)
Method 2:
Almost the same as Method 1 but WITHOUT needing the rconAddress command.
Start MOH, and CONNECT to your server as if you were simply going there to play.
Once you are connected, bring down the console using the ~ key.
Type rconPassword yourpassword and hit enter (again, same confirmation, just a blank line)
You DO NOT need to use the rconAddress command because you are ALREADY connected to your server, so it knows what server to send the RCON request to.
(again, you should perform the RCON STATUS command to test your RCON).
AUTOMATIC LOGIN FOR RCON
This is the method I use and I prefer it over all the manual typing.
What I do is create ANOTHER config file, call it RCON.CFG for example and save it in your MAIN directory wherever MOHAA is installed.
Put these 2 lines in the file:
rconAddress xxx.xxx.xxx.xxx // (x = your SERVER'S IP address).
rconPassword xxx //(x = your password).
That's all you need, be sure to hit ENTER at the end to create a blank line at the end. SAVE IT AS rcon.cfg, or be sure to rename it to whateveryouwant.CFG
Then make sure your shortcut (on the CLIENT MACHINE !!) CALLS the config file by adding +exec rcon.cfg at the END of the command line.
By doing this, as SOON AS YOU START MOH on the CLIENT machine, you will have logged yourself into YOUR SERVER without having to join the game first or enter anything manually. You can then bring down the console (in the lobby) and do whatever commands you like since you are logged in !!!.
As far as RCON commands .... well you're on your own really.
Some useful commands are:
rcon status //Shows player info for all the people on your server
rcon serverinfo //Shows current server settings
rcon kick all //Kicks everyone off the server at once
rcon kick playername //Kick a disruptive player off the server by his playername
rcon clientkick (0-32) //Kicks a player by their client #. Rcon Status will list players starting with a
//client #. The number is always 0 thru one less than max players. So if you
//have a 12 player server, it will list players 0 � 11. This variable comes in VERY
//handy to kick people who have spaces or general funkiness in their names. Plus
//it is easier than typing some peoples really long names.
rcon map mapname //Forces the server to change to the specified map (ex. Rcon map dm/mohdm7)
rcon restart //Restarts the current map, resets the timelimit if one is specified
Remember, you can type CMDLIST or CVARLIST in the console for full lists of available commands and cvar's.
Ok, you should be on your way to having a decent dedicated server now.