Click here to Skip to main content
Licence GPL3
First Posted 5 Dec 2007
Views 27,202
Downloads 267
Bookmarked 10 times

Send RCON Commands to Quake Based Games

By | 6 Dec 2007 | Article
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)

About the Author

Waqas Badar

Software Developer (Senior)
EBusiness
Pakistan Pakistan

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Layout  Per page   
  Refresh
QuestionNot receive all response (COD2) Pinmemberasdfaf30:02 25 Mar '12  
Generalput these value's in a table Pinmembertheunynck9:48 21 Jul '09  
GeneralNumbers Pinmember3thr0:26 10 Jun '09  
GeneralNicely done :P PinmemberJohn43111:02 3 Apr '09  
GeneralThanks PinmemberMr_Adder1:03 19 Dec '08  
GeneralThank you! PinmemberWubbo4:01 12 Nov '08  
GeneralRCON Commands PinmemberMember 32021872:51 14 Dec '07  
GeneralRe: RCON Commands PinmemberWaqas Badar1:09 31 Jan '08  
GeneralRe: RCON Commands Pinmemberklopfer15:20 22 Oct '08  
GeneralRe: RCON Commands PinmemberWaqas Badar21:15 22 Oct '08  

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.

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