Problem connecting PUN to a self hosted LoadBalancing server

Options
Miguel
Miguel
Hi! I'm trying to use PUN with a self hosted server, there are no tutorials about this and now I'm stuck here:
2014-11-25 12:50:08,833 [41] DEBUG Photon.LoadBalancing.MasterServer.MasterApplication [(null)] - Received init request from game client on leader node
2014-11-25 12:50:08,983 [41] DEBUG Photon.LoadBalancing.MasterServer.MasterClientPeer [(null)] - OnOperationRequest: pid=11, op=230
2014-11-25 12:50:09,033 [47] DEBUG Photon.LoadBalancing.MasterServer.MasterClientPeer [(null)] - OnOperationRequest: pid=11, op=225
2014-11-25 12:50:09,103 [44] DEBUG Photon.LoadBalancing.MasterServer.MasterClientPeer [(null)] - OnOperationRequest: pid=11, op=227
2014-11-25 12:50:09,103 [44] DEBUG Photon.LoadBalancing.MasterServer.GameApplication [(null)] - Created game: gameId=906da5ea-8e54-4e78-93ff-2c717d9455db, appId={Default}
2014-11-25 12:50:09,103 [44] DEBUG Photon.LoadBalancing.MasterServer.Lobby.GameState [(null)] - Added peer: gameId=906da5ea-8e54-4e78-93ff-2c717d9455db, userId=, joiningPeers=1
2014-11-25 12:50:09,143 [25] DEBUG Photon.LoadBalancing.MasterServer.MasterClientPeer [(null)] - Disconnect: pid=11: reason=ClientDisconnect, detail=
2014-11-25 12:50:09,143 [25] DEBUG Photon.LoadBalancing.MasterServer.GameApplication [(null)] - OnClientDisconnect: peerId=11, appId={Default}
2014-11-25 12:50:16,594 [40] DEBUG Photon.LoadBalancing.MasterServer.Lobby.GameList [(null)] - Checked join timeouts: before=1, after=1
2014-11-25 12:50:24,106 [42] DEBUG Photon.LoadBalancing.MasterServer.GameApplication [(null)] - Removed game: gameId=906da5ea-8e54-4e78-93ff-2c717d9455db, appId={Default}
2014-11-25 12:50:24,106 [42] DEBUG Photon.LoadBalancing.MasterServer.Lobby.GameList [(null)] - RemoveGameState:id=906da5ea-8e54-4e78-93ff-2c717d9455db, peers=0, max=0, open=True, visible=True, peersJoining=0
2014-11-25 12:50:24,106 [42] DEBUG Photon.LoadBalancing.MasterServer.Lobby.GameList [(null)] - Checked join timeouts: before=1, after=0


following this explanation: http://doc.exitgames.com/en/onpremise/current/reference/load-balancing looks like the room is created, then client should disconnect from Master server and connect to the Game server but the client disconnects from Master client and also the Game Server.

I'm running the "ConnectAndJoinRandom" script from utilityScripts, any tip about what I'm doing wrong?

Comments

  • Tobias
    Options
    Did you setup your server's Game Server IP to something that the client could connect to via the network it has?
    In Photon Control you should do the Game Server IP Config before starting the server:
    http://doc.exitgames.com/en/onpremise/c ... er-in-5min

    What is in the client log? Attach the full server log. Here, I can't see an error.
  • Miguel
    Options
    Hi Tobias,
    I checked the <Photon.LoadBalancing.GameServer.GameServerSettings> and had them this way:
    &lt;setting name="MasterIPAddress" serializeAs="String"&gt;
                    &lt;!--&lt;value&gt;127.0.0.1&lt;/value&gt;--&gt;
    				&lt;value&gt;192.168.65.64&lt;/value&gt;
                &lt;/setting&gt;
    			
    			&lt;!-- Leave empty and the the IP address will be looked up dynamically at runtime. --&gt; 
    			&lt;setting name="PublicIPAddress" serializeAs="String"&gt;
    				&lt;value&gt;&lt;/value&gt;
    			&lt;/setting&gt;
    

    Now changing the PublicIPAddress to the same vaule as the MasterIPAddress it connects and looks that works fine.
    I do not understant why it has to be done this way, it's ok?

    Thanks for your fast response
  • Tobias
    Options
    It has to be set, as each machine can have any number of network interfaces but we only want to deliver one IP to the client who's looking for a game.
    So you have to setup the Game Server address via config.