I am trying to have multiple applications listen to the same port but from different local IP addresses but it looks like it doesn't work.
Here is my code:
localEndPoint = nw_endpoint_create_host(ip1, port1234)
nw_parameters_set_local_endpoint(params, localEndPoint);
...
nw_listener_create(params)
...
So application 1 will use ip1 and application 2 a different local address (ip2) to listen from.
When I do that, the second app launched always fails to start the listener with an "address already in use" error.
I thought it was possible, but I am obviously wrong...
Any insight anyone ?
Thanks !
Daniel
7
0
1.3k