Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

Connect directly to Game Server?

$
0
0
Hi,

I'm currently developing a game with authoritative server logic. I read in Photon's documentation that I could run Unity instances in the gameserver.

But i'm afraid following might happen:

MasterServer
/ \
GameServer1 GameServer2
/ | \ / | \
(Unity instances) (Unity instances)
A unity Instance running in GameServer1 will execute PhotonNetwork.ConnectUsingSettings(), that would connect it to the MasterServer and it would be subject to the loadbalancing and might end up being redirected to GameServer2 instead.

Is there any way for me to force the Unity Instance to connect to a specific game server without me having to change the loadbalancing code?


Viewing all articles
Browse latest Browse all 1557