Cloud matchmaking ip is always 0.0.0.0

Options
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.

Comments

  • stanchion
    Options
    I'm not sure about the IP stuff off the top of my head. Try using the BoltPhotonInit.cs example
  • JohnMcClain
    edited June 2017
    Options
    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.
  • stanchion
    Options
    Ignoring the IP for now, does the BoltPhotonInit.cs example work for you?
  • JohnMcClain
    Options
    Yes, everything connects and works, I just need a way to get the wan ip of the server from the session list.
  • stanchion
    Options
    I believe you should put the IP and any other information you want to share with clients before they connect in the token.
  • JohnMcClain
    Options
    Okay but how do I access the token via UdpSession?
  • stanchion
    Options
    session.Value.GetProtocolToken()

    See BoltPhotonInit.cs for example
  • JohnMcClain
    Options
    Thanks, I'll check it out.