- Home /
Wifi LAN : Detect server side loss of connectivity?
Hi,
I'm trying to detect when the server loses wifi connection.
Tried OnDisconnectedFromServer, but it seems it only gets called on the server after Network.Disconnect.
I could poll Application.InternetReachability==NetworkReachabil ity.ReachableViaLocalAreaNetwork every now and then, but isn't there a more elegant way?
I'm testing this by switching off my router whilst a server is set up on my iPad, FYI.
Many thanks,
Gregzo
Try OnPlayerDisconnected(NetworkPlayer player) //Called on the server whenever a player disconnected from the server. or you can check Network.connections.Length...
Your answer
Follow this Question
Related Questions
Server & client on same wifi, error 1 Answer
Unity networking tutorial? 6 Answers
Is it possible to control a game with an Android phone without Unity? 1 Answer
MMO multi-levels 3 Answers
Server hosting game 1 Answer