I have an app that searches for SSDP services on a local network and sends commands over http using URLSession. I know i need the new privacy entitlement to discover devices on the network so for now i have manually entered the device IP address that i want to send commands to but I'm getting the following time out error in the debug log when i send a request using URLSession dataTaskWithRequest
Task <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x283983240 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={kCFStreamErrorCodeKey=-2102, kCFStreamErrorDomainKey=4}}, NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1>, NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=MANUALCONNECTIONIPADDRESS, NSErrorFailingURLKey=MANUALCONNECTIONIPADDRESS, kCFStreamErrorDomainKey=4}
Task <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1> HTTP load failed, 0/0 bytes (error code: -999 [1:89])
This works on previous version of iOS i'm just wondering if it could just be a bug or is there something I'm missing that's stopping me sending requests to the device on the local network. I've got the new Privacy Local Network Usage Description Key added to the info.Plist
Task <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x283983240 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={kCFStreamErrorCodeKey=-2102, kCFStreamErrorDomainKey=4}}, NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1>, NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=MANUALCONNECTIONIPADDRESS, NSErrorFailingURLKey=MANUALCONNECTIONIPADDRESS, kCFStreamErrorDomainKey=4}
Task <529A4D4D-2249-4B51-9FF2-92207C5F5CDC>.<1> HTTP load failed, 0/0 bytes (error code: -999 [1:89])
This works on previous version of iOS i'm just wondering if it could just be a bug or is there something I'm missing that's stopping me sending requests to the device on the local network. I've got the new Privacy Local Network Usage Description Key added to the info.Plist