Cannot join other room (using PUN2 with Photon Server's Load Balancing)

Options
Hello, I have a problem when trying to join a created room,

I can connect to the master server, I did it by following codes:
```
PhotonNetwork.NetworkingClient.SerializationProtocol = ExitGames.Client.Photon.SerializationProtocol.GpBinaryV16;
PhotonNetwork.AutomaticallySyncScene = false;
PhotonNetwork.OfflineMode = false;
PhotonNetwork.ConnectToMaster(masterAddress, masterPort, "Master");
```

Then join lobby when connected to master
```
public override void OnConnectedToMaster()
{
base.OnConnectedToMaster();
Debug.Log("Connected to master");
PhotonNetwork.JoinLobby();
}
```

Then after joined lobby, create room by following codes:
```
PhotonNetwork.CreateRoom("RoomName");
```

The "Client A" which created the room can join the created room.

But when I try to join room with "Client B" by following codes:
```
PhotonNetwork.JoinRoom("RoomName");
```

It can't connect, load balancer client state changed to connected to master.

OnJoinedRoom callback won't be triggered, don't know why.

Comments

  • Insthync
    Options
    I try 2 clients in the same machine, not sure it can be a source of the issue?
  • Insthync
    Options
    I found the solution, I have to set PhotonNetwork.AuthValues