Unity Editor and Build Cant find each others room

edited September 2018 in Photon Server
My project was connecting fine about 3 hours ago when suddenly my Editor build and exported build were no longer able to join the same room.

To connect to photon I use
 public void ConnectToPhoton()
            PhotonNetwork.GameVersion = gameVersion;

        public override void OnConnectedToMaster()

        public override void OnJoinedLobby()
            //PhotonNetwork.JoinRandomRoom(null, 0);
            PhotonNetwork.JoinRandomRoom(null, 0);

        public override void OnJoinRandomFailed(short returnCode, string message)
            print(message + " " + returnCode);
            Debug.Log("OnPhotonRandomJoinFailed() was called by PUN. No random room available, so we create one. Calling: PhotonNetwork.CreateRoom(null, new RoomOptions() {maxPlayers = 4}, null);");
            PhotonNetwork.CreateRoom(null, new RoomOptions() { MaxPlayers = 4 }, null);
The error code from OnRandomJoinFailed gives me 32760 No rooms
Typically I was able to use either the exported build or the Editor build to host. At the time I was working i wasnt affecting any code related to this. I have even gone back to my previous git pull and am still unable to get my builds to connect to each other. I can't seem to find the cause and would be glad to help.


  • Hi, @lilcolombian

    are you sure that you have same versions in your builds? are you sure that you are connecting to the same region? What version of PUN are you using?

  • @chvetsov Thanks for the reply i meant to edit last night, it was caused by the region. Unity suddenly decided that the region in the build/ editor was gonna be different. I found a post talking about hardsetting the region and it did the trick. Still dont know why i happened though. Lost like 3 hours looking for an answer.
  • great that you managed to fix it

Sign In or Register to comment.