SSDPClient icon indicating copy to clipboard operation
SSDPClient copied to clipboard

SSDP Discovery Not Working after Update to IOS 16.0

Open vunk93 opened this issue 1 year ago • 4 comments

This does not work anymore on iOS16 devices (but works on simulator). Got this error : Encountered socket error: The operation couldn’t be completed.

[2023-05-31T14:45:42.421+07:00] [ERROR] [SSDPDiscovery.swift:132 discoverService(forDuration:searchTarget:port:)] Socket error: Error code: -9980(0x-26FC), No route to host ----> Error code: -9980(0x-26FC), No route to host [2023-05-31T14:45:42.421+07:00] [ERROR] [SSDPDiscovery.swift:75 readResponses()] Socket error: Error code: -9982(0x-26FE), Bad file descriptor ----> Error code: -9982(0x-26FE), Bad file descriptor

Any ideas

vunk93 avatar May 31 '23 07:05 vunk93

I'm also facing the same issue. Have you found any fix for this?

Chappi001 avatar Jun 08 '23 18:06 Chappi001

It's probably not a bug. See issue #13.

pierrickrouxel avatar Jun 08 '23 18:06 pierrickrouxel

Oh, thanks @pierrickrouxel. Seems like I have to raise a request to apple support.

Chappi001 avatar Jun 08 '23 19:06 Chappi001

This looks like resolved in following thread: https://developer.apple.com/forums/thread/715002

TL;DR iOS 15 wasn’t requiring the local network privacy entitlement when it should have been, with iOS 16 this has been fixed by Apple. So keep in mind to implement Multicast Entitlement.

nonegu avatar Sep 21 '23 13:09 nonegu