Default HTTPListener Url route value ("/*") in PhotonServer.config (server v5)

Hi,

I have been trying to set up Photon Server v5(v5-0-12-24499-rc1) and connecting to it using WebSocket (not secured) from my Unity WebGL game. I used the default PhotonServer config values from SDK initially but kept getting 404 while trying to connect.

With more debugging, it seems the default value "/*" of Route->Url parameter in PhotonServer.config is not working as expected. After I changed it to "/" for Master server (as the full URI is "ws://127.0.0.1:9090/?libversion=..."), it works as expected. And I also need to change the Route->Url of Game server config to "/Game/" in order for my Unity WebGL game to connect to it successfully (as the URI is "ws://127.0.0.1:9091/Game/?libversion=..."). Please see below for more details.

I'm not sure if this is just my own configuration issue, or may happen to other people as well. So just want to point this out.

<HTTPListener
Name="*:[PORT]::Master"
IPAddress="0.0.0.0"
Port="9090"
DisableNagle="true"
InactivityTimeout="10000">
<Routing>
<Route
Url="/"
OverrideApplication="Master"
PeerType="WebSocket"
Counters="false"
/>
</Routing>
</HTTPListener>

<HTTPListener
Name="*:[PORT]::Game"
IPAddress="0.0.0.0"
Port="9091"
DisableNagle="true"
InactivityTimeout="10000"
AppDataInactivityTimeout="15000">
<Routing>
<Route
Url="/Game/"
OverrideApplication="Game"
PingEvery="2000"
PeerType="WebSocket"
Counters="false"
/>
</Routing>
</HTTPListener>

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @zedwei,

    Thanks for this report and sorry for the delay!

    Please replace "/*" with "/+" and try again.
    No need to explicitly set "/Master/" or "/Game/".
  • This post solved our issues upgrading to v5
    This is a server breaker. Very good post