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

Unable to create room on client.

$
0
0
Hi, I've downaloded the photon server sdk, installed it and its up and running with LoadBalancing.

I created a sample client on Unity and seems I can connect and connect to master, even auto join lobby. But when I try to create room, this error log appears:


Failed parsing address:
UnityEngine.Debug:LogError(Object)
NetworkingPeer:DebugReturn(DebugLevel, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1574)
ExitGames.Client.Photon.IPhotonSocket:Connect()
ExitGames.Client.Photon.SocketUdp:Connect()
ExitGames.Client.Photon.EnetPeer:Connect(String, String, Object)
ExitGames.Client.Photon.PhotonPeer:Connect(String, String, Object)
NetworkingPeer:Connect(String, ServerConnection) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:590)
NetworkingPeer:OnStatusChanged(StatusCode) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2175)
ExitGames.Client.Photon.<>c__DisplayClass146_0:b__0()
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:158)


And here is the c# code:


public override void OnConnectedToMaster() {
base.OnConnectedToMaster();
Debug.Log("Connected to Master");

RoomOptions room = new RoomOptions();
room.MaxPlayers = 1;
room.IsOpen = true;
room.IsVisible = true;

PhotonNetwork.JoinOrCreateRoom("Room123", room, TypedLobby.Default);
}


Checked the logs from the photon server and there isn't any log that correspond to that error.

Tried in Photon cloud and works flawlessly, this only happens when using the self hosted option. I'm using latest version of Photon server sdk and using Unity LTS 2017.4.1f1.

I would greatly appreaciate any help.

Viewing all articles
Browse latest Browse all 1557

Trending Articles