@Bnjbel97
I too am having a similar issue (https://developer.apple.com/forums/thread/664545)
My program binds correctly but no data is ever received, even though I can see the packets being sent over the local network. It worked fine in iOS 13, but since moving the app to iOS 14, it has decided to stop working.
In your previous message you said that you resolved the issue but I fail to see how you resolved it?
Post
Replies
Boosts
Views
Activity
Bnjbel97
Could you provide example code of how to trigger the Local Network Privacy dialog using the CocoaAsyncSocket library?
You don’t need a third-party library for this. Rather, check out FAQ-8 in the Local Network Privacy FAQ. I copied the code exactly as it appeared in Triggering the Local Network Privacy Alert and added a print statement for each address just to see it something was being sent. The triggerLocalNetworkPrivacyAlert() looped over 4 addresses and still no privacy dialog was produced.