iOS 9.1 - HTTP Request timing out on device, fine on simulator

Hi All,


Having a strange issue here having just updated to iOS 9.1...I'm running Xcode 7.1 on El Capitan 10.11.1 and am running my app in the simulator (iOS 9.1) which makes requests over HTTP to a server on my local network. I have my plist updated to Allow Arbitrary Loads and all is working well.


However when I run the app on my iPhone 6 (iOS 9.1) the requests keep timing out:


Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x1004c09b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "The request timed out." UserInfo={NSErrorFailingURLStringKey=http://192.168.1.100:8080/jsonrpc, NSErrorFailingURLKey=http://192.168.1.100:8080/jsonrpc, _kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4, NSLocalizedDescription=The request timed out.}}, NSErrorFailingURLStringKey=http://192.168.1.100:8080/jsonrpc, NSErrorFailingURLKey=http://192.168.1.100:8080/jsonrpc, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.


All other networking on the device seems fine, am connected to WiFi and can browse the internet with no issues, other internet connected apps (twitter for example) are also fine.

You should use the following tools to see what’s happening on the ‘wire’:

AFAICT the -2102 errors means that we sent the request to the server and the server simply didn’t respond, but these logs will let you confirm that.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
iOS 9.1 - HTTP Request timing out on device, fine on simulator
 
 
Q