CocoaAsyncSocket icon indicating copy to clipboard operation
CocoaAsyncSocket copied to clipboard

No route to host error

Open anomaly2104 opened this issue 11 years ago • 4 comments

I am debugging a error in which while connecting socket, I am getting following error: [error = Error Domain=NSPOSIXErrorDomain Code=65 "The operation couldn’t be completed. No route to host"]

One possible problem might be this: http://stackoverflow.com/a/4710512/1541873

As per above SO post, it happens more often in BSD sockets and not in CFStreamSocket. Can somebody please confirm whether CocoaAsyncSocket uses former or later?

anomaly2104 avatar Apr 08 '15 07:04 anomaly2104

I'm having a similar issue. For some reason, it is happy to connect to a TCP Socket (not local) from the iPhone Simulator, but not from an iPhone. Any suggestions on why this might be happening? (I understand that this is very little information to make use of). Thanks in advance.

JJLewis avatar Nov 17 '15 10:11 JJLewis

How to solve this problem At last, I also met the same problem

zjz2020 avatar Apr 11 '17 03:04 zjz2020

Have the same issue. Both - simulator and device.

lexin avatar Nov 11 '19 08:11 lexin

This issue has been marked as stale, it will be closed automatically if there is no further activity.

github-actions[bot] avatar Mar 14 '20 00:03 github-actions[bot]