Self-hosted server local network trouble getting to work
I'm trying to host a local photon server (Photon OnPremise Server SDK v4-0-29-11263) with one computer and have some clients on other computers connect. The computers are connected wireless over a router which is not connected to internet. Right now I can't even get the Run Testclient button to work. When I run that it gives Connect Exceptions:
see comment
When I run server connected to the internet it starts games but fails to create/join:
see comment
I've turned off firewalls and deleted the license since there's no internet access. Can anyone point me in some direction of how to approach this? Is what I'm trying to do even possible? (local network server no internet access)? If not, how should I do that?
Thanks.
see comment
When I run server connected to the internet it starts games but fails to create/join:
see comment
I've turned off firewalls and deleted the license since there's no internet access. Can anyone point me in some direction of how to approach this? Is what I'm trying to do even possible? (local network server no internet access)? If not, how should I do that?
Thanks.
0
Comments
-
offline connect exceptions:Test case: Master
Settings: 5 games per process, 3 players per game, game server at 127.0.0.1:5055
Sending reliable operation every 100 ms
Starting 5 games with 3 players
[14704] Press Return to End
4032828: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
6044116: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
20974680: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
[14704] Started game MSI(14704)1 with 3 clients
35320229: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
59817589: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
[14704] Started game MSI(14704)2 with 3 clients
49538252: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
48209832: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
58366981: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
34717384: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
[14704] Started game MSI(14704)3 with 3 clients
42931033: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
62696216: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
60644701: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
[14704] Started game MSI(14704)4 with 3 clients
33711845: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
37489757: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
39053774: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
[14704] Started game MSI(14704)5 with 3 clients0 -
connected to internet start game but fail create/join:Test case: Master
Settings: 5 games per process, 3 players per game, game server at 127.0.0.1:5055
Sending reliable operation every 100 ms
Starting 5 games with 3 players
[1340] Press Return to End
[1340] Started game MSI(1340)1 with 3 clients
[1340] Started game MSI(1340)2 with 3 clients
[1340] Started game MSI(1340)3 with 3 clients
[1340] Started game MSI(1340)4 with 3 clients
[1340] Started game MSI(1340)5 with 3 clients
OnOperationReturn: CreateGame failed: ReturnCode: 32762 (Failed to get server instance.). Disconnecting...
OnOperationReturn: CreateGame failed: ReturnCode: 32762 (Failed to get server instance.). Disconnecting...
OnOperationReturn: CreateGame failed: ReturnCode: 32762 (Failed to get server instance.). Disconnecting...
OnOperationReturn: CreateGame failed: ReturnCode: 32762 (Failed to get server instance.). Disconnecting...
OnOperationReturn: CreateGame failed: ReturnCode: 32762 (Failed to get server instance.). Disconnecting...
OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...0 -
no internet connect exception:Test case: Master
Settings: 5 games per process, 3 players per game, game server at 127.0.0.1:5055
Sending reliable operation every 100 ms
Starting 5 games with 3 players
[14704] Press Return to End
4032828: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
6044116: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
20974680: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
[14704] Started game MSI(14704)1 with 3 clients
35320229: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
59817589: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
[14704] Started game MSI(14704)2 with 3 clients
49538252: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
48209832: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
58366981: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
34717384: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
[14704] Started game MSI(14704)3 with 3 clients
42931033: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
62696216: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
60644701: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
[14704] Started game MSI(14704)4 with 3 clients
33711845: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
37489757: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
39053774: Receive issue. State: Connected Exception: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at ExitGames.Client.Photon.SocketUdp.ReceiveLoop()
Waiting: OnPeerStatusCallback: unexpected return code ExceptionOnReceive
[14704] Started game MSI(14704)5 with 3 clients0 -
hi, @infinityx
PhotonSocketServer will not work without an internet connection.
About not being able to connect - as you may see master cannot find game server instance. this may happen in next cases:
1. game server failed to connect to master. (see logs in deploy/log folder)
2. game server overloaded (see logs in deploy/log folder). This may happen because something takes all CPU in the system.
so, in any case, we need to see server logs and your configs to say why master cannot find game server instance
best,
ilya0 -
hi ilya,
is there any way to make photon socket server work without internet connection? I recall being able to do so previously0 -
no, there is no way for this
best,
ilya0 -
Hi @infinityx,
Thank you for choosing Photon!
While my colleague @chvetsov's answer is correct, it's not possible to run Photon Server without internet access as it's required to reach license check servers.
You could, however, try sending an email to developer@photonengine.com and request a special priced "offline" license if you really need it (explain why) for some constraint. You should know that this is not guaranteed and it has its limitations.0