Click here to Skip to main content
Click here to Skip to main content

Send RCON Commands to Quake Based Games

, 6 Dec 2007 GPL3
Rate this:
Please Sign up or sign in to vote.
This project sends RCON commands to Quake based games.
Screenshot -

Introduction

This is my first article on CodeProject.

RCON (Remote Console) is used to manage game servers remotely. RCON commands can be sent through games. But in my recent project, I had to send RCON commands through software. After doing a lot of R&D, I was able to find a way in which Quake based games send RCON commands to the server.

RCON command syntax is as follows:

0xFF 0xFF 0xFF 0xFF 0x02 rcon password command

The first five characters are special and should be sent before any RCON command. Every RCON command should contain the RCON password. I set the RCON password for MOHAA by executing the following command in the console:

set rconpassword 123456

I test the code on MOHAA and Medal of Honor SpearHead. But I think it will work fine on other games which are based on Quake Engine.

Using the Code

I have written a class with the name RCON. It has one method, sendCommand. Pass it a game server IP, port, password and RCON command and this method returns a response from the server.

I use this method for Mohaa as follows:

rcon.sendCommand(txtCommand.Text, txtGameServerIP.Text, "123456", 12203);

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)

Share

About the Author

Waqas Badar
Software Developer (Senior) EBusiness
Pakistan Pakistan
No Biography provided

Comments and Discussions

 
QuestionNot receive all response (COD2) Pinmemberasdfaf325-Mar-12 1:02 
Generalput these value's in a table Pinmembertheunynck21-Jul-09 10:48 
GeneralNumbers Pinmember3thr10-Jun-09 1:26 
GeneralNicely done :P PinmemberJohn4313-Apr-09 12:02 
GeneralThanks PinmemberMr_Adder19-Dec-08 2:03 
GeneralThank you! PinmemberWubbo12-Nov-08 5:01 
GeneralRCON Commands PinmemberMember 320218714-Dec-07 3:51 
GeneralRe: RCON Commands PinmemberWaqas Badar31-Jan-08 2:09 
GeneralRe: RCON Commands Pinmemberklopfer122-Oct-08 6:20 
GeneralRe: RCON Commands PinmemberWaqas Badar22-Oct-08 22:15 
GeneralRe: RCON Commands Pinmembersandaasu24-Sep-14 22:38 
GeneralRe: RCON Commands PinmemberWaqas Badar25-Sep-14 21:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141223.1 | Last Updated 6 Dec 2007
Article Copyright 2007 by Waqas Badar
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid