Hello,
We provide a cross-platform network communication library to our customers, implementing secure application level tunnelling (and more) for use primarily in IoT scenarios. The library is implemented in C++. For discovering local devices, we have used a custom mDNS implementation based on raw BSD sockets - with the iOS 14.5 restrictions this is apparently no longer possible and we are looking for alternative options.
However, we cannot find a non-deprecated way to obtain the local UDP IP address and port number of discovered services. The NSNetService API is deprecated and the NWBrowser API only gives you the service names for use with NWConnection (the latter is not applicable due to the cross-platform implementation of our proprietary protocol).
Are there any (clean) way to obtain a local service's IP address and port number for use with lower level implementations like ours? Or do we have to resort to a hack where we stuff the normal A and AAAA record contents + port number into TXT records that apparently are ok to retrieve with NWBrowser?
Thanks for clarifying!
Ulrik, Nabto