Port other than 9090


I cannot connect my Javascript client to photon server on a port other than 9090. Isn't it possible to use different port?



  • Next to the Photon Server binaries is a PhotonSocketServer.config. This file controls which ports are used. Find the node "LoadBalancing" and in it, edit the 9090 to something you like better. Of course you also need to adjust the port in the client, too.

    Afaik, 9090 is a known port for websockets. If you change it, some clients might not be able to connect due to using another socket. On the other hand, some clients might be able to connect exactly because you picked another port.

    Restart Photon after changing the config.