Change UDP ip listener

Options
nOograss
edited August 2012 in Photon Server
Hi everyone,

I'm just starting with Photon and have a server running.
I can access it via my local network but it is not accessible via the outside of my network.
I see that in the log the udp listener ip is set to my local IP .
9564: 23:43:08.105 - Adding UDP listener on :192.168.1.x: 5055 with a listen backlog of: 500
Where can I change that ?

Thanks

Comments

  • Just noticed that this question remained unanswered - sorry! I guess you found a solution by yourself in the meantime, but for the sake of completeness:

    Open your PhotonServer.config and look out for this section:
    <UDPListeners>
     <UDPListener
      IPAddress="0.0.0.0"
      Port="5055">
    </UDPListener>
    </UDPListeners>
    

    If the IPAddress is 0.0.0.0, Photon listens to all IPs that are configured on your server. You can specify a real IP (in case you have more than one IP and don't want Photon to use them all).

    If you don't have a public IP on your server, you need to configure port forwarding on your router. http://www.portforward.com is a great resource in that case.
  • Thank you, it okay now