- Home /
Ping a Matchmaking room
I am trying to sort the room that matchMaker.ListMatches gives me. However, I do not see any way to ping a room the player is not connected to.
I have tried using:
Ping toThem = new Ping(matchDesc.directConnectInfos [0].publicAddress);
but for some reason the publicAdress is never set to anything.
I have seen:
NetworkTransport.GetCurrentRtt
but I have no idea where to get the hostID and connectionID it requires.
Answer by Chubysnow · Oct 16, 2016 at 05:21 PM
I found out how to do this but it is not a very good fix. Basically, I just added the local ping to the room name whenever a player hosts a game. Then the player looking to connect can just parse it off the room name.
Your answer
Follow this Question
Related Questions
How to find out a players ping? 2 Answers
Networking: Cannot get average ping to server 0 Answers
Ping an Ip 1 Answer
Unity networking tutorial? 6 Answers
Very Low FPS 1 Answer