Connecting a client on the same machine as Photon self-hosted server with Public Static IP

Options
SFBA
SFBA
Hello,

I am running a self-hosted Photon server on a machine with a static public IP.

I can connect with external clients to this server, and everything works fine.

When I try to connect a client on the same server machine it failes, with connection refused error.

I tried to use the public IP, and 127.0.0.1 and both failed.

How can I make this work, or is this not possible?

Thanks.

Comments

  • Hi @SFBA,

    have you already tried using the machine's LAN IP? Do you use the correct port numbers? Besides that I currently don't know why the other IPs are not working.
  • SFBA
    SFBA
    edited April 2018
    Options
    Yes, I tried the LAN IP, and the correct port number is used in all cases. The same exact application runs fine on two other machines using connecting to the public IP.

    It's worth to mention that the local client only fails when I set the Photon Server to the public IP, it works fine when Photon Server is set to the LAN IP (from Photon Control), but then the external clients won't join correctly.