iOS Error Code -1005
The connection was established but then dropped.
The connection was established but then dropped.
| Code | -1005 |
| Product | iOS |
| Company / origin | Apple · United States |
| Category | Mobile Platforms |
| Platform / versions | iOS 15 and later · NSURLErrorDomain |
| Severity | warning |
| Official source | Apple Developer: NSURLErrorDomain ↗ |
| Last verified | 2026-11-08 |
What does iOS error -1005 mean?
NSURLErrorNetworkConnectionLost (-1005) means the request started but the connection closed before the response completed. On iOS, switching from Wi-Fi to cellular, VPN reconnects, and background suspension can trigger it.
Common causes
- Wi-Fi or cellular handover during the request.
- VPN or proxy reset the connection.
- The app went to the background and the connection was suspended.
How to fix it
- Step 1
Retry on a stable network and avoid switching networks mid-request.
- Step 2
Check whether the app handles background/foreground transitions.
- Step 3
Inspect server and proxy logs for connection resets.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
-1004 | Cannot Connect to Host | The host was found, but the connection could not be established. |
-1001 | The Request Timed Out | The request did not complete before the timeout. |
-1003 | Cannot Find Host | The hostname could not be resolved. |
-1006 | Cannot Find Host | The DNS lookup for the host failed. |
-1009 | The Internet Connection Appears to Be Offline | The device is not connected to the internet. |
Source & verification
This page was checked against Apple Developer: NSURLErrorDomain on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with Apple. Always confirm destructive or security-sensitive steps with the official documentation.