Not creating a room

Here's the errors I am receiving, I am self hosting on aws server. Trying to create a lobby on my game from my personal computer and I get this.


Photon Server Log

2022-07-28 19:53:32,842 [13] DEBUG Photon.LoadBalancing.GameServer.MasterServerConnectionBase - s2s MS connection: MasterServer endpoint for address 0.0.0.0 updated to 0.0.0.0:4520

2022-07-28 19:53:32,842 [13] INFO Photon.LoadBalancing.GameServer.MasterServerConnectionBase - s2s MS connection: Parameters to register on master: address 0.0.0.0, TCP 4531, UDP 5056, WebSocket 9091, Secure WebSocket 19091, ServerID 9f2c29d7-c128-486f-a7de-fcdd99d4567f, Hostname localhost, IPv6Address , WebRTC 7072

2022-07-28 19:53:32,842 [13] INFO Photon.LoadBalancing.GameServer.MasterServerConnectionBase - s2s MS connection: Connecting to master at 0.0.0.0:4520, serverId=9f2c29d7-c128-486f-a7de-fcdd99d4567f

2022-07-28 21:57:33,803 [9] WARN Photon.LoadBalancing.GameServer.MasterServerConnectionBase - s2s MS connection: connection failed: address=0.0.0.0:4520, errorCode=1214, msg=The format of the specified network name is invalid.. Skipped:3


Unity Log

OpCreateRoom()

UnityEngine.Debug:Log (object)

Photon.Realtime.LoadBalancingClient:DebugReturn (ExitGames.Client.Photon.DebugLevel,string) (at Assets/MFPS/Content/Required/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2572)

Photon.Realtime.LoadBalancingPeer:OpCreateRoom (Photon.Realtime.EnterRoomParams) (at Assets/MFPS/Content/Required/Photon/PhotonRealtime/Code/LoadbalancingPeer.cs:284)

Photon.Realtime.LoadBalancingClient:OpCreateRoom (Photon.Realtime.EnterRoomParams) (at Assets/MFPS/Content/Required/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:1715)

Photon.Pun.PhotonNetwork:CreateRoom (string,Photon.Realtime.RoomOptions,Photon.Realtime.TypedLobby,string[]) (at Assets/MFPS/Content/Required/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:1794)

bl_Lobby:CreateRoom (MFPSRoomInfo) (at Assets/MFPS/Scripts/Network/Lobby/bl_Lobby.cs:470)

bl_Lobby:CreateRoom () (at Assets/MFPS/Scripts/Network/Lobby/bl_Lobby.cs:430)

bl_LobbyUI:CreateRoom () (at Assets/MFPS/Scripts/UI/Lobby/bl_LobbyUI.cs:441)

UnityEngine.EventSystems.EventSystem:Update () (at Library/PackageCache/[email protected]/Runtime/EventSystem/EventSystem.cs:385)


queueIncomingCommand() CMD(6 ch#/sq#/usq#: 0/10/0 r#/st/tt:0/0/0) channel seq# r/u: 9/4

UnityEngine.Debug:Log (object)

Photon.Realtime.LoadBalancingClient:DebugReturn (ExitGames.Client.Photon.DebugLevel,string) (at Assets/MFPS/Content/Required/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2576)

ExitGames.Client.Photon.EnetPeer:QueueIncomingCommand (ExitGames.Client.Photon.NCommand) (at D:/Dev/Work/photon-dotnet-sdk/PhotonDotNet/EnetPeer.cs:1913)

ExitGames.Client.Photon.EnetPeer:ExecuteCommand (ExitGames.Client.Photon.NCommand) (at D:/Dev/Work/photon-dotnet-sdk/PhotonDotNet/EnetPeer.cs:1715)

ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands () (at D:/Dev/Work/photon-dotnet-sdk/PhotonDotNet/EnetPeer.cs:420)

ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands () (at D:/Dev/Work/photon-dotnet-sdk/PhotonDotNet/PhotonPeer.cs:1771)

Photon.Pun.PhotonHandler:Dispatch () (at Assets/MFPS/Content/Required/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:222)

Photon.Pun.PhotonHandler:FixedUpdate () (at Assets/MFPS/Content/Required/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:145)


[4:42.42] SupportLogger OnCreateRoomFailed(32762,Failed to get server instance.).

UnityEngine.Debug:Log (object)

Photon.Realtime.SupportLogger:OnCreateRoomFailed (int16,string) (at Assets/MFPS/Content/Required/Photon/PhotonRealtime/Code/SupportLogger.cs:322)

Photon.Realtime.MatchMakingCallbacksContainer:OnCreateRoomFailed (int16,string) (at Assets/MFPS/Content/Required/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:4174)

Photon.Realtime.LoadBalancingClient:CallbackRoomEnterFailed (ExitGames.Client.Photon.OperationResponse) (at Assets/MFPS/Content/Required/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2591)

Photon.Realtime.LoadBalancingClient:OnOperationResponse (ExitGames.Client.Photon.OperationResponse) (at Assets/MFPS/Content/Required/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2834)

ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback (ExitGames.Client.Photon.StreamBuffer) (at D:/Dev/Work/photon-dotnet-sdk/PhotonDotNet/PeerBase.cs:872)

ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands () (at D:/Dev/Work/photon-dotnet-sdk/PhotonDotNet/EnetPeer.cs:565)

ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands () (at D:/Dev/Work/photon-dotnet-sdk/PhotonDotNet/PhotonPeer.cs:1771)

Photon.Pun.PhotonHandler:Dispatch () (at Assets/MFPS/Content/Required/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:222)

Photon.Pun.PhotonHandler:FixedUpdate () (at Assets/MFPS/Content/Required/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:145)

Answers

  • hi, @Topzic

    I see that your game server tries to connect to 0.0.0.0:4520 and fails. so, of course on client you will get error "Can not get server instance".

    by default master address is 127.0.0.1. It looks like you updated GameServer.xml.config and set wrong values


    best,

    ilya