On-premise Photon Server, player disconnects on join room. (Quest2)

DEan
DEan
edited August 2022 in Photon Server

Would anyone be able to tell me what's going wrong here. The problem only seems to be apparent on my android/oculus quest build but works fine on my Vive pro pc builds. with multiple pc on the local network.

So when I run the same code on the quest it connects to the right ip on .200 for the masterserver but then soon as it goes to join the room it says these things:

IPhotonSocket.Connect() 127.0.0.1:5056 this.Protocol: Udp

Receive issue. State: Connected. Server: '127.0.0.1' 

why is the port 5056 and why is the ip now localhost..?

I would greatly appreciate any help if anyone knows whats going on here.

I've tried server versions 4 and 5

here's the rest of it


12:34:52.993 19253 19280 I Unity     : IPhotonSocket.Connect() 192.168.0.200:5055 this.Protocol: Udp

12:34:52.993 19253 19280 I Unity     : ExitGames.Client.Photon.IPhotonSocket:Connect()

12:34:52.993 19253 19280 I Unity     : ExitGames.Client.Photon.SocketUdp:Connect()

12:34:52.993 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:Connect(String, String, String, Object)

12:34:52.993 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:Connect(String, String, String, Object, Object)

12:34:52.993 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:ConnectToMasterServer()

12:34:52.993 19253 19280 I Unity     : Photon.Pun.PhotonNetwork:ConnectToMaster(String, Int32, String)

12:34:52.993 19253 19280 I Unity     : Photon.Pun.PhotonNetwork:ConnectUsingSettings(AppSettings, Boolean)

12:34:52.993 19253 19280 I Unity     : <coreWait>d__33:MoveNext()

12:34:52.993 19253 19280 I Unity     : UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

12:34:52.993 19253 19280 I Unity     : 

12:34:52.994 19253 19280 I Unity     : Attempting Connection. waiting for override callback.

12:34:52.994 19253 19280 I Unity     : <coreWait>d__33:MoveNext()

12:34:52.994 19253 19280 I Unity     : UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

12:34:52.994 19253 19280 I Unity     : 

12:34:53.075 19253 19280 I Unity     : queueIncomingCommand() CMD(6 ch#/sq#/usq#: 0/1/0 r#/st/tt:0/0/0) channel seq# r/u: 0/0

12:34:53.075 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:QueueIncomingCommand(NCommand)

12:34:53.075 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:ExecuteCommand(NCommand)

12:34:53.075 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.075 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.075 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.075 19253 19280 I Unity     : 

12:34:53.076 19253 19280 I Unity     : Connected to masterserver.

12:34:53.076 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:OnStatusChanged(StatusCode)

12:34:53.076 19253 19280 I Unity     : ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(StreamBuffer)

12:34:53.076 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.076 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.076 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.076 19253 19280 I Unity     : 

12:34:53.082 19253 19280 I Unity     : queueIncomingCommand() CMD(7 ch#/sq#/usq#: 0/1/1 r#/st/tt:0/0/0) channel seq# r/u: 1/0

12:34:53.082 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:QueueIncomingCommand(NCommand)

12:34:53.082 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:ExecuteCommand(NCommand)

12:34:53.082 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.082 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.082 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.082 19253 19280 I Unity     : 

12:34:53.115 19253 19280 I Unity     : queueIncomingCommand() CMD(6 ch#/sq#/usq#: 0/2/0 r#/st/tt:0/0/0) channel seq# r/u: 1/1

12:34:53.115 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:QueueIncomingCommand(NCommand)

12:34:53.115 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:ExecuteCommand(NCommand)

12:34:53.115 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.115 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.115 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.115 19253 19280 I Unity     : 

12:34:53.117 19253 19280 I Unity     : OpAuthenticate()

12:34:53.117 19253 19280 I Unity     : Photon.Realtime.LoadBalancingPeer:OpAuthenticate(String, String, AuthenticationValues, String, Boolean)

12:34:53.117 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:CallAuthenticate()

12:34:53.117 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:OnStatusChanged(StatusCode)

12:34:53.117 19253 19280 I Unity     : ExitGames.Client.Photon.MyAction:Invoke()

12:34:53.117 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.117 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.117 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.117 19253 19280 I Unity     : 

12:34:53.155 19253 19280 I Unity     : queueIncomingCommand() CMD(6 ch#/sq#/usq#: 0/3/0 r#/st/tt:0/0/0) channel seq# r/u: 2/1

12:34:53.155 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:QueueIncomingCommand(NCommand)

12:34:53.155 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:ExecuteCommand(NCommand)

12:34:53.155 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.155 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.155 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.155 19253 19280 I Unity     : 

12:34:53.156 19253 19280 I Unity     : Connected to photon server.

12:34:53.156 19253 19280 I Unity     : NetworkController:OnConnectedToMaster()

12:34:53.156 19253 19280 I Unity     : Photon.Realtime.ConnectionCallbacksContainer:OnConnectedToMaster()

12:34:53.156 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:OnOperationResponse(OperationResponse)

12:34:53.156 19253 19280 I Unity     : ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(StreamBuffer)

12:34:53.156 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.156 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.156 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.156 19253 19280 I Unity     : 

12:34:53.157 19253 19280 I Unity     : OpJoinRoom()

12:34:53.157 19253 19280 I Unity     : Photon.Realtime.LoadBalancingPeer:OpJoinRoom(EnterRoomParams)

12:34:53.157 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:OpJoinRoom(EnterRoomParams)

12:34:53.157 19253 19280 I Unity     : Photon.Pun.PhotonNetwork:JoinRoom(String, String[])

12:34:53.157 19253 19280 I Unity     : Photon.Realtime.ConnectionCallbacksContainer:OnConnectedToMaster()

12:34:53.157 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:OnOperationResponse(OperationResponse)

12:34:53.157 19253 19280 I Unity     : ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(StreamBuffer)

12:34:53.157 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.157 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.157 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.157 19253 19280 I Unity     : 


12:34:53.235 19253 19280 I Unity     : queueIncomingCommand() CMD(6 ch#/sq#/usq#: 0/4/0 r#/st/tt:0/0/0) channel seq# r/u: 3/1

12:34:53.235 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:QueueIncomingCommand(NCommand)

12:34:53.235 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:ExecuteCommand(NCommand)

12:34:53.235 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.235 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.235 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.235 19253 19280 I Unity     : 

12:34:53.236 19253 19280 I Unity     : SocketUdp.Disconnect()

12:34:53.236 19253 19280 I Unity     : ExitGames.Client.Photon.MyAction:Invoke()

12:34:53.236 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.236 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.236 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.236 19253 19280 I Unity     : 

12:34:53.237 19253 19280 I Unity     : SocketUdp, .Net, Unity.

12:34:53.237 19253 19280 I Unity     : ExitGames.Client.Photon.SocketUdp:.ctor(PeerBase)

12:34:53.237 19253 19280 I Unity     : System.Reflection.MonoCMethod:InternalInvoke(Object, Object[])

12:34:53.237 19253 19280 I Unity     : System.RuntimeType:CreateInstanceImpl(BindingFlags, Binder, Object[], CultureInfo, Object[], StackCrawlMark&)

12:34:53.237 19253 19280 I Unity     : System.Activator:CreateInstance(Type, BindingFlags, Binder, Object[], CultureInfo, Object[])

12:34:53.237 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:Connect(String, String, String, Object, Object)

12:34:53.237 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:Connect(String, String, ServerConnection)

12:34:53.237 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:OnStatusChanged(StatusCode)

12:34:53.237 19253 19280 I Unity     : ExitGames.Client.Photon.MyAction:Invoke()

12:34:53.237 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.237 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.237 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.237 19253 19280 I Unity     : 

12:34:53.239 19253 19280 I Unity     : IPhotonSocket.Connect() 127.0.0.1:5056 this.Protocol: Udp

12:34:53.239 19253 19280 I Unity     : ExitGames.Client.Photon.IPhotonSocket:Connect()

12:34:53.239 19253 19280 I Unity     : ExitGames.Client.Photon.SocketUdp:Connect()

12:34:53.239 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:Connect(String, String, String, Object)

12:34:53.239 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:Connect(String, String, String, Object, Object)

12:34:53.239 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:Connect(String, String, ServerConnection)

12:34:53.239 19253 19280 I Unity     : Photon.Realtime.LoadBalancingClient:OnStatusChanged(StatusCode)

12:34:53.239 19253 19280 I Unity     : ExitGames.Client.Photon.MyAction:Invoke()

12:34:53.239 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.239 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.239 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.239 19253 19280 I Unity     : 

12:34:53.255 19253 19280 E Unity     : Receive issue. State: Connected. Server: '127.0.0.1' ErrorCode: 10061 SocketErrorCode: ConnectionRefused Message: Connection refused System.Net.Sockets.SocketException (0x80004005): Connection refused

12:34:53.255 19253 19280 E Unity     : at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) [0x00000] in <00000000000000000000000000000000>:0 

12:34:53.255 19253 19280 E Unity     : at ExitGames.Client.Photon.SocketUdp.ReceiveLoop () [0x00000] in <00000000000000000000000000000000>:0 

12:34:53.255 19253 19280 E Unity     : at System.Threading.ThreadStart.Invoke () [0x00000] in <00000000000000000000000000000000>:0 

12:34:53.255 19253 19280 E Unity     : at System.Threading.ContextCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 

12:34:53.255 19253 19280 E Unity     : at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 

12:34:53.255 19253 19280 E Unity     : at System.Threading.ThreadStart.Invoke () [0x00000] in

12:34:53.256 19253 19280 I Unity     : SocketUdp.Disconnect()

12:34:53.256 19253 19280 I Unity     : ExitGames.Client.Photon.MyAction:Invoke()

12:34:53.256 19253 19280 I Unity     : ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

12:34:53.256 19253 19280 I Unity     : ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

12:34:53.256 19253 19280 I Unity     : Photon.Pun.PhotonHandler:Dispatch()

12:34:53.256 19253 19280 I Unity     : 

Comments

  • Meep
    Meep ✭✭✭

    Hi, your server is returning localhost IP address and since you do not have a Photon server running on your Quest 2 (I would be concerned if you did), the connection fails.

    You have to modify the configuration files, consult the docs for more info.

    Also I believe your forum posts may have been duplicated by a bug, but if you were spamming try to make only one post or the Photonians might purge all.