- Home /
Question by
J.P · Nov 11, 2012 at 09:39 AM ·
networkmasterserverconnect
Unhandled message 65 from local ip.
I get an error message whenever I, or anyone else tries to connect(The error is in the title). The client apparently connects though, since when I close the other instance of the game(the one which connected to the server), the console says "A client has disconnected from the server" but also gives the error "A client which was not in the connected players list, has disconnected. ???". The code for the server is:
public class MasterServer1 : MonoBehaviour {
public string ipString;
public string portString;
public string playerx = "No Player Connected";
public bool newPlayer = false;
void OnGUI () {
MasterServer.ipAddress = "79.112.115.201";
MasterServer.port = 23466;
Network.natFacilitatorIP = "79.112.115.201";
Network.natFacilitatorPort = 50005;
if(GUILayout.Button("Start Server"))
{
Network.InitializeServer(32,50005,!Network.HavePublicAddress());
}
if(GUILayout.Button("Register Game"))
{
MasterServer.RegisterHost("GameType","GameName");
MasterServer.RequestHostList("GameName");
}
if(GUILayout.Button("Request guid"))
{
HostData[] hostData = MasterServer.PollHostList();
foreach (HostData element in hostData) {
Debug.Log(element.gameName + " guid: " + element.guid + "\n");
}
}
ipString = GUILayout.TextField(ipString);
portString = GUILayout.TextField(portString);
if(GUILayout.Button("Connect To Server"))
Network.Connect(ipString,portString);
The rest is of the code is just tests and stuff and I doubt it would have any point so I'll just leave it at this. But if needed I will upload the rest too. Thanks in advance.
Comment