Can't connect to server on wifi network
Options
Hi everyone,
I've been designing a game in PUN on my home wifi network and seemed to work fine over there.
When I try to connect to the server while back at university (Eduroam), it doesn't seem to connect to the server anymore.
This is the log:
PUN Basics Tutorial/Launcher: OnDisconnected() was called by PUN with reason ClientTimeout
UnityEngine.Debug:LogWarningFormat(String, Object[])
Launcher:OnDisconnected(DisconnectCause) (at Assets/Launcher.cs:166)
Photon.Realtime.ConnectionCallbacksContainer:OnDisconnected(DisconnectCause) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3748)
Photon.Realtime.LoadBalancingClient:OnStatusChanged(StatusCode) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2787)
ExitGames.Client.Photon.<>c__DisplayClass109_0:<EnqueueStatusCallback>b__0()
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
Photon.Pun.PhotonHandler:Dispatch() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:205)
Photon.Pun.PhotonHandler:FixedUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:139)
What could be wrong?
All my best,
Nicolas
I've been designing a game in PUN on my home wifi network and seemed to work fine over there.
When I try to connect to the server while back at university (Eduroam), it doesn't seem to connect to the server anymore.
This is the log:
PUN Basics Tutorial/Launcher: OnDisconnected() was called by PUN with reason ClientTimeout
UnityEngine.Debug:LogWarningFormat(String, Object[])
Launcher:OnDisconnected(DisconnectCause) (at Assets/Launcher.cs:166)
Photon.Realtime.ConnectionCallbacksContainer:OnDisconnected(DisconnectCause) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3748)
Photon.Realtime.LoadBalancingClient:OnStatusChanged(StatusCode) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2787)
ExitGames.Client.Photon.<>c__DisplayClass109_0:<EnqueueStatusCallback>b__0()
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
Photon.Pun.PhotonHandler:Dispatch() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:205)
Photon.Pun.PhotonHandler:FixedUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:139)
What could be wrong?
All my best,
Nicolas
0
Comments
-
Well, the University may block your (UDP) network traffic. Ask the admins, if you can use the required protocols and ports. For UDP it's 5055 to 5058 by default.
Here is the full list (not all are used at the same time but under certain conditions):
https://doc.photonengine.com/en-us/pun/current/connection-and-authentication/tcp-and-udp-port-numbers
Try TCP. PUN 2.19 has an automatic fallback from UDP to TCP, should the connect fail.0 -
Thanks, I'll try it out!0