UDP Bind Problem on Linux Headless Server

hi, all.

when linux Headless server is running. the process bind IPADDR_ANY by default.
ex:
2183891--144753--upload_2015-7-1_12-16-13.png

But, there are multiple IP addresses on my server, the IPADDR_ANY will cause server fail to reply.
when server send replies to client, it cant specifying the source ip address.
so, Is there any way to tell server bind specify the IP address before start?

I don’t think so, the nic with the lowest number will use when you will call send. And Yes You can specify ip in AddHost function (if you use transport interface)

thanks your reply.
I mean UNET not Low level API.
on server with multiple IP address, IPADDR_ANY will cause server’s reply lost, client can’t receive it.

Hm, it is strange a little bit. It doesn;t matter if it is UNET or not, setting ip in INADDR_ANY will use for sending network interface with lower number which has assigned ip and which is UP. Peer won’t receive udp packet iff the peer network is not reachable from this interface (for example if1 belongs private netwrok, while iff2 belongs DMZ in this case any external client won’t be reachable)

Anyway, when you call NetworkingTransport.AddHost() function you can specify ip address:
NetworkingTransport.AddHost( topology, 5555, “15.15.15.15” );

After I made a udp proxy (bind all of the IP address) to receive data from each IP address and forwarding packets to Linux headless server which is bind IPADDR_ANY. Then game can work properly.

let’s imagine this situation:
2187648--145108--upload_2015-7-3_20-16-28.png
but, If Unity can provide an API to bind address for setting the UDP . It would be great

2187664--145109--upload_2015-7-3_20-31-0.png
only two parameters?
!(http://forum.unity3d.com/C:\Users\stanleyluo\Documents\RTXC File List\Accounts\stanleyluo\RTXDownload\imageCache\5EA4D306-CA3C-4125-BA57-E564BAC68724.jpeg)

Yes. I found this overloaded API with three parameters and can specify the IP string .
After call AddHost with our IP address, it can bind the IP address and listening like this:

2187774--145115--upload_2015-7-3_21-47-9.png

but, it looks like for custom data communications, and nor for game state synchronization.
The headless server still use IPADDR_ANY for client cmd/rpc I think.
after headless server process started. client still cant get reply and show some error below: