Cannot get public IP

Options
System.Net.WebException: The remote server returned an error: (403) Forbidden.
at System.Net.HttpWebRequest.GetResponse()
at Photon.Common.LoadBalancer.Common.PublicIPAddressReader.DoLookupPublicIpAddress(String lookupServiceUrl) in d:\dev\photon-socketserver-sdk_cloud\src-server\Photon.Common\LoadBalancer\Common\PublicIPAddressReader.cs:line 168
at Photon.Common.LoadBalancer.Common.PublicIPAddressReader.LookupPublicIpAddress() in d:\dev\photon-socketserver-sdk_cloud\src-server\Photon.Common\LoadBalancer\Common\PublicIPAddressReader.cs:line 83
at Photon.Common.LoadBalancer.Common.PublicIPAddressReader.ParsePublicIpAddress(String publicIpAddressFromSettings) in d:\dev\photon-socketserver-sdk_cloud\src-server\Photon.Common\LoadBalancer\Common\PublicIPAddressReader.cs:line 36
at Photon.LoadBalancing.GameServer.GameApplication.Setup() in d:\dev\photon-socketserver-sdk_cloud\src-server\LoadBalancing\LoadBalancing\GameServer\GameApplication.cs:line 321
at Photon.SocketServer.ApplicationBase.PhotonHostRuntimeInterfaces.IPhotonControl.OnPhotonRunning() in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\ApplicationBase.cs:line 1189
at PhotonHostRuntime.PhotonDomainManager.PhotonPlainAppDomainBehavior.PhotonRunning()

My server cannot get my public IP so I am getting socket exceptions trying to join the room.

Comments

  • chvetsov
    Options
    hi, @CTIngenieros01

    I'm not sure what is wrong in your case, but it looks for ip because you did not set it explicitly. you may do it in app.config. Find PublicIPAddress in Photon.LoadBalancing.GameServer.GameServerSettings and set it to correct value

    best,
    ilya