Photon Server Multiple IPs setup

Hi!
I have a VM with two separate network interfaces. Each network interface has its own IPv4 Public IP address. I have set up asymmetric routing to avoid possible problems.
I can connect to Master with any Public IP via UDP, but via TCP only one Public IP (attached to primary network interface) is available. In PhotonServer.cfg both UDP and TCP listeners are set to 0.0.0.0 with default ports (5055, 4530).
Log shows, that everything is fine with UDP.

2640: 18:42:19.679 - Adding TCP listener on: 0.0.0.0: 4530 with a listen backlog of: 150
2640: 18:42:19.679 - Adding UDP listener on: 172.31.46.103: 5055 with a listen backlog of: 500
2640: 18:42:19.679 - Adding UDP listener on: 172.31.36.145: 5055 with a listen backlog of: 500
2640: 18:42:19.679 - Adding UDP listener on: 127.0.0.1: 5055 with a listen backlog of: 500

Can anyone give me the cue, how to set up 2 static IPs for Client - Master server connection?

Comments

  • Hi, @Tenechek

    logging from TCP is different that is why you do not see that it wass attached to all accessible IP addresses.
    if you do not like how 0.0.0.0 adress works, then you shoull set up two listeners. one per address

    best,
    ilya