Photon Server webgl join-create game problem

Options
Hi,

It seems there is a problem joining and creating rooms on a remotely running Photon server when i try to connect on webgl,,on mobile connections everythings is fine. I'm using last PUN on assetstore to create the connection. When calling PhotonNetwork.Connect() everything seems to be just fine. I connect to my remote server, but if I try to call PhotonNetwork.CreateGame() or PhotonNetwork.JoinGame(), I'm thrown the following exception:
Exiting receive thread due to error: An exception has occurred while connecting. / System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host.

at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP, Boolean requireSocketPolicy) [0x00000] in :0
at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in :0
at System.Net.Sockets.TcpClient.Connect (System.Net.IPEndPoint remote_end_point) [0x00000] in :0
at System.Net.Sockets.TcpClient.Connect (System.Net.IPAddress[] ipAddresses, Int32 port) [0x00000] in :0 Server: wss://localhost:19091
UnityEngine.Debug:LogError(Object)
NetworkingPeer:DebugReturn(DebugLevel, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1445)
ExitGames.Client.Photon.c__Iterator4:MoveNext() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/SocketWebTcp.cs:175)

on photon server config i have these attributes






and i set the PublicIP values on
photon-socketserver-sdk\deploy\Loadbalancing\GameServer\bin\Photon.LoadBalancing.dll.config
photon-socketserver-sdk\deploy\Loadbalancing\Master\bin\Photon.LoadBalancing.dll.config

i cant find any solutions for my error anymore, hope someone can help :smile:

Comments

  • Gamestaller
    Options
    attributes -->
    <WebSocketListeners> <WebSocketListener IPAddress="0.0.0.0" Port="9090" DisableNagle="true" InactivityTimeout="10000" OverrideApplication="Master" Secure = "true" StoreName = "My" CertificateName = "WIN-5HKHAOPCA5N" UseMachineStore = "true"> </WebSocketListener> <WebSocketListener IPAddress="0.0.0.0" Port="9091" DisableNagle="true" InactivityTimeout="10000" OverrideApplication="Game" Secure = "true" StoreName = "My" CertificateName = "WIN-5HKHAOPCA5N" UseMachineStore = "true"> </WebSocketListener> </WebSocketListeners>