Getting Started

Here's some initial code to get started (.NET 4+). Be sure to go through the other pages to see what else you can do!

//create the connection
RconConnection connection = new RconConnection();
connection.Hostname = "ip here pls";
connection.Port = 1337;

//create the client that will work with the connection...
//to provide meaningful communication
RconClient client = new RconClient(connection);

//connect to the server
//NOTE: you can use either connection.Connect() or client.Connect()

//login using your server's rcon password

//send a request, and receive the response back!
IList<string> response = Client.SendRequest("serverinfo");

Last edited Dec 7, 2013 at 11:24 PM by Timiz0r, version 1