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()
client.Connect();

//login using your server's rcon password
client.LogOn("hunter2");

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

Last edited Dec 8, 2013 at 12:24 AM by Timiz0r, version 1