Cloud matchmaking ip is always 0.0.0.0
Options
in Photon Bolt
Hi, I have a strange problem, everytime I get a session list from cloud matchmaking service, wan ips are 0.0.0.0, because of this I can't check for ping etc. Im using wanEndpoint to get the ip. Maybe there's other way to get server ip? or to check ping?
On the side note I can connect to the server by Boltconnect(session) so it's not a connection problem.
On the side note I can connect to the server by Boltconnect(session) so it's not a connection problem.
0
Comments
-
I'm not sure about the IP stuff off the top of my head. Try using the BoltPhotonInit.cs example0
-
I'm using the example code to host a server and get list of games, "session.Value.WanEndPoint.ToString()" always returns "0.0.0.0"
Edit, I also checked direct connection to the internet on the machine hosting the server to avoid router blocking ports etc.0 -
Ignoring the IP for now, does the BoltPhotonInit.cs example work for you?0
-
Yes, everything connects and works, I just need a way to get the wan ip of the server from the session list.0
-
I believe you should put the IP and any other information you want to share with clients before they connect in the token.0
-
Okay but how do I access the token via UdpSession?0
-
session.Value.GetProtocolToken()
See BoltPhotonInit.cs for example0 -
Thanks, I'll check it out.0