Failed to connect to server after testing each known IP. Error(s) on Android.

Options
Hello Everyone.

I am randomly getting the mentioned error randomly, As such my game sometimes connects just fine, and sometimes it doesn't connect to the Server. I am developing for Android and am using Unity 2019.3.15f1 and using PUN2.

The full error is:
Failed to connect to server after testing each known IP. Error(s):
UnityEngine.Debug:LogError(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2480)
ExitGames.Client.Photon.<>c__DisplayClass109_0:<EnqueueDebugReturn>b__0()
ExitGames.Client.Photon.TPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
Photon.Pun.PhotonHandler:Dispatch() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:223)
Photon.Pun.PhotonHandler:FixedUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:149)

Answers

  • Tobias
    Options
    I changed how IPs and Hostnames are treated in the latest PUN 2 version. The changelog will also point out the new Disconnect reason value.
    Could you give it a try?

    And: This is a IL2CPP build? Which PUN version do you use so far? Do you build on Windows?