- Home /
Networking: Cannot get average ping to server
The title says it all, I am trying to use Network.getAveragePing(NetworkPlayer)
I don't know if the getAveragePing method works or not, the issue I am having is finding a value for the NetworkPlayer
I tried all of the following:
NetworkServer.connections
-> list is always empty
NetworkServer.localConnections
-> list is always empty
Network.connections
-> list is empty
Network.player
-> not set
I have tries many different things, and the list is either empty, full of null values, or -1. Am I missing something? Does this method even work still?
I need to figure out what the average and/or current ping is to the server, is there another way to go about doing this?
Stupid question but are you ever creating a server / connecting to one? :D
I am using a NetworkLobby$$anonymous$$anager, so I guess I am not creating/connecting to a server myself, but I assumed that NetworkLobby$$anonymous$$anager would handle all of that
Your answer
Follow this Question
Related Questions
How to find out a players ping? 2 Answers
Ping a Matchmaking room 1 Answer
Ping an Ip 1 Answer
Unity networking tutorial? 6 Answers
Very Low FPS 1 Answer