Original Post
Hello.Immediately after my client's connection code to the server, I get repeated NetExceptions. Here's the connection code:
After some debugging, I've discovered that the NetException is thrown because the NetConnectionStatus is RespondedConnect. Unfortunately I've got no idea what this means or how to fix it. The only idea I have is that it's just a failed connection, but I'm not sure. Any suggestions?
Thanks.
config = new NetPeerConfiguration("NetGame");
client = new NetClient(config);
client.Start();
// Registration message
NetOutgoingMessage registration = new NetOutgoingMessage();
registration.Write(username);
registration.Write(Game.version);
// Connect with the registration message
client.Connect(host, 3579, registration);
Console.WriteLine("[client] Connected to " + host + ", registering...");
After some debugging, I've discovered that the NetException is thrown because the NetConnectionStatus is RespondedConnect. Unfortunately I've got no idea what this means or how to fix it. The only idea I have is that it's just a failed connection, but I'm not sure. Any suggestions?
Thanks.