Hi! I try to connect with
WebSocketSecure protocol to
my self-hosted server. (there are no problems with Photon Cloud)
I connect to self-hosted server using port 9090 (
Master) and it connects to lobby without problems. But when I try to create room after this, I get exception:
![]()
This is place in code which calls this exception (
NetworkingPeer.GameEnteredOnGameServer(OperationResponse operationResponse)):
![]()
This is because
OperationResponse.ReturnCode == 0. (but I don't know why and what to do)
When I use port 9091 (
Game) I connect and join/create room without problems. It would be ok, but using port 9091
I can't get PhotonNetwork.GetRoomsList(), can't use JoinRandomRoom() and others...When I use
Tcp protocol and connect using port 4530 (
Master) it connects and joins lobby and creates room without problems. (
that's what I want from wss connection)
So what do I have to change on server/client to solve this problem?This is my
SocketWebTcp.cs:
![]()
This is my
PhotonServer.config WebSocketListeners:
<WebSocketListeners>
<WebSocketListener
IPAddress="0.0.0.0"
Port="9090"
DisableNagle="true"
InactivityTimeout="10000"
OverrideApplication="Master"
PolicyFile="Policy\assets\socket-policy.xml"
Secure = "true"
CertificateName = "WIN-GR1JM6PETN8"
UseMachineStore = "true">
</WebSocketListener>
<WebSocketListener
IPAddress="0.0.0.0"
Port="9091"
DisableNagle="true"
InactivityTimeout="10000"
OverrideApplication="Game"
PolicyFile="Policy\assets\socket-policy.xml"
Secure = "true"
CertificateName = "WIN-GR1JM6PETN8"
UseMachineStore = "true">
</WebSocketListener>
</WebSocketListeners>
This is how I connect to server;
PhotonNetwork.ConnectUsingSettings(Version + "." + SceneManagerHelper.ActiveSceneBuildIndex);
What is the rightest way to set server/client for
right wss connection? To I would connect to 9090 and get RoomList() and create/join room (in Tcp it works)
I want to repeat:
it connects to lobby, but can't create/join room bcs of exception above.Thanks a lot.(I swear, if I solve all my problems with self-hosted server and WebSockets and PUN, I will necessarily write detailed guid of this.
![:# :#]()
)