I don’t think there’s a way to make this work with Network framework. Okay, I already feared it :-)
Host A can’t set up an NWListener to accept new connections from host B2 because the fixed port is already in use. Yepp ... that exactly right.
My current workaround is to setup a connection (NWConnection) on an ephemeral system port (and tell this port to the other side).
And setup an additional NWListener on a fixed port (e.g. 40.000). So it's possible to receive data from B1 and B2.
But I think it's not really nice, it would be gracefully if I could solve this with one socket connection.
But many thanks for your feedback and help.
Topic:
App & System Services
SubTopic:
Networking
Tags: