How to ping a v4 self hosted server from Unity?

edited September 18 in Photon Server


I know that photon server v5 has support for a NameServer and is compatible with how Photon Unity pings all the regions and connects to the best one (for photon cloud and enterprise cloud). I'm trying to stick with v4 self-hosted servers for now and just add my own code to ping all my master servers manually. This is prior to connecting to any of them.

The built-in Unity code does the ping with a web request (new WWW(address);), but I'm not sure how to set up a listener for that request. I guess I need an HTTPListener, but I only see examples of that in v5 configs. Is it possible in v4? Or is there another simple way to allow a Unity client to ping a v4 Master Server?