Skip to content

Rust: Timeout while waiting for authentication response from server #138

@meyverick

Description

@meyverick

Sorry, I'm pretty new to development, I don't know if it's a bug or incompatibility but I don't manage to make it works for Rust Dedicated server.

Test

public class Init {
	public static async Task Main(string[] args) {
		// Connect to a server
		var rcon = new RCON(IPAddress.Parse("192.168.1.4"), 28016, "iamforgetful");
		await rcon.ConnectAsync();

		// Send a simple command and retrive response as string
		string response = await rcon.SendCommandAsync("echo hi");

		// Send "status" and try to parse the response
		Status status = await rcon.SendCommandAsync<Status>("status");

		Console.WriteLine($"Connected to: {status.Hostname}");
	}
}

Result

Unhandled exception. System.TimeoutException: Timeout while waiting for authentication response from server
   at CoreRCON.RCON.AuthenticateAsync()
   at CoreRCON.RCON.ConnectAsync()
   at Init.Main(String[] args) in C:\Users\admin\Files\files\Rust\Eggs\Console\main.cs:line 23
   at Init.<Main>(String[] args)

I tried with a dedicated software like RustAdmin and it works using the same IP, port and password so I think it's how CoreRcon handle Rcon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions