Hi all,
i am trying to ping the server as client with this code:
if(Network.isServer)
{
ping = 0;
}
else
{
if(pingToServer.isDone)
{
ping = pingToServer.time;
// on client, connection 0 == server
pingToServer = new Ping(Network.connections[0].ipAddress);
//Debug.Log(Network.connections[0].ipAddress + "Ping attempt");
}
}
I do this every couple of seconds and once in start().
But all i get is a ping of “-1” and this message in my
mac “konsole”:
I checked the ip of “Network.connections[0].ipAddress” (the server) and its right, so is anyone able to figure out whats wrong?
Thx so far
Ethan