Cursor Connection Failed: 5-Step Network and Proxy Fix
When Cursor shows "Connection failed. Please check your internet connection or VPN," your network is not necessarily down. That one message covers a lot of cases: a Cursor server-side outage, a proxy that breaks long-lived HTTP/2 connections, a session that has grown too long or made too many tool calls, or an expired login. The fastest way to troubleshoot a Cursor connection failed error is to first confirm Cursor itself is healthy, then use Cursor's built-in network diagnostic to find the failing layer, and finally rule out the remaining causes one symptom at a time.
Step 1: Is Cursor itself having problems?
Before you touch any local setting, spend half a minute checking server status. cdnping syncs Cursor's official status page every 15 minutes, and you can see the result on the API status page. The Is Cursor down? page also puts the official status next to one-click reports from other users, which helps you tell whether everyone is having trouble connecting.
Outages are not rare. According to the Cursor official status page records synced by cdnping, there were 25 incidents between 2026-09-17 and 2026-10-17: 5 major and 20 minor. The most recent ones:
| Start time (UTC) | Incident title | Severity | Duration |
|---|---|---|---|
| 2026-10-15 22:25 | Elevated errors affecting Grok models | minor | about 415 min |
| 2026-10-14 15:46 | Investigating service degradation — Grok Bot | minor | about 318 min |
| 2026-10-13 20:29 | Grok Bot routines not triggering | major | not given on the status page |
| 2026-10-13 00:22 | Degraded performance and errors across Cursor services | minor | about 165 min |
| 2026-10-09 22:37 | Investigating service degradation — Cloud Agents and Grok Bot | minor | about 31 min |
Two things to note. First, many incidents affect only one class of models or one feature. The October 15 incident, for example, involved only the Grok models. If you only see errors with one model, switch to another; that quickly tells you whether the problem is that model family or your connection overall. Second, a "minor" label does not mean minor impact. For how to read severity levels, see How to read the OpenAI and Claude status pages; the approach applies to Cursor as well.
If the status page shows an active incident, stop fiddling with your local setup. Wait for recovery or switch models. If the status page is clean, keep going.
Step 2: How do you use Cursor's built-in network diagnostic?
Cursor's settings include a network diagnostic (Cursor Settings → Network, then click Run Diagnostic; the name may differ slightly between versions). It tests DNS, SSL, API, chat streaming, and Agent streaming separately, and marks the failing ones in red.
| Diagnostic result | Most likely cause | Next step |
|---|---|---|
| DNS fails | Local DNS cannot resolve Cursor's domains, or the answers are tampered with | Switch DNS, or check your proxy's DNS settings; see DNS pollution vs. DNS hijacking: how to tell |
| SSL fails | A corporate network or security software is decrypting HTTPS and its certificate is not trusted | Ask your network admin, or compare on a trusted network |
| API works, streaming fails | A proxy or gateway does not support long-lived HTTP/2 connections, or buffers streamed responses | See the next section; disable HTTP/2 first |
| Everything passes but errors persist | A problem with the session itself, or a server-side error on one model | Start a new chat, switch models |
Keep a screenshot of the diagnostic result. If you later ask on the official forum, attaching it is far more useful than describing the symptoms.
Step 3: What does it mean if disabling HTTP/2 fixes it?
Cursor chat and Agent rely on long-lived connections and streamed responses over HTTP/2. Many proxy tools, corporate gateways, and security products only partly support HTTP/2: short requests succeed, but a long stream is cut off midway or buffered until the very end. The typical symptom is that a chat works for a few messages and then fails with Connection failed.
To verify:
- Open Cursor Settings and search for
HTTP/2. Find Disable HTTP/2 (some versions call it HTTP Compatibility Mode, with an HTTP/1.1 option). - Turn it on, fully quit Cursor, and reopen it.
- Run the network diagnostic again, then retry the scenario that failed.
If things become stable, the problem is almost certainly in how an intermediate hop handles HTTP/2 or streamed responses. HTTP/1.1 is a bit slower; you can keep using it long term, or go back and fix the proxy. The mechanics of streams being cut by middleboxes are covered in more detail in LLM streaming output disconnects midway: troubleshooting SSE drops. If requests always hang in a "sent but no response" state, also rule out an MTU/MSS black hole; disabling HTTP/2 will not fix that.
Step 4: Is your proxy or VPN actually working?
The error message names VPN because a misconfigured proxy really is a common cause. There are three main cases.
- The system proxy is on, but Cursor does not use it. Cursor is built on VS Code and reads the
http.proxysetting and the system proxy, but not every process honors them. Behavior is usually more consistent when your proxy tool runs in TUN mode. - Your routing rules miss Cursor's domains. For example, the rules cover only common websites, so Cursor's API domains go direct, or the reverse: domestic mirrors in China are wrongly sent through the proxy. For the basic concept of routing, see Split tunneling explained.
- The IPv4 and IPv6 exits differ. The proxy takes over only IPv4 while IPv6 requests leave directly, so results come and go. For the cause and how to check, see IPv6 proxy not taking effect: mismatched exits on dual-stack networks.
A self-check you can run (using api2.cursor.sh as the example domain; check Cursor's official documentation for the domains it actually requests):
# 1. Check whether Cursor's API domain is reachable and which address you connect to
curl -sv -o /dev/null https://api2.cursor.sh 2>&1 | grep -E "Connected to|HTTP/|SSL connection"
# 2. Force IPv4 and IPv6 separately and see whether the results match
curl -4 -s -o /dev/null -w "v4: %{http_code} %{time_total}s\n" https://api2.cursor.sh
curl -6 -s -o /dev/null -w "v6: %{http_code} %{time_total}s\n" https://api2.cursor.sh
# 3. Show the proxy variables in the current terminal
env | grep -i _proxy
If you get any HTTP status code back (even 404), TCP and TLS are working. A timeout or Could not resolve host is what indicates a network-layer problem.
Then open IP and environment check in your browser and look at your exit IP, whether IPv4 and IPv6 agree, and whether the mainland China split-routing check reports "mainland split routing," "global proxy," or "direct domestic connection." What each of these means is explained in How Chinese websites see your real IP. The browser result does not necessarily equal what the Cursor process sees, but if the browser side is already a mess, Cursor is probably not in good shape either.
Cursor and some of the model services it calls have their own regional policies. The goal of network troubleshooting is to make legitimate connections stable. Follow each service's terms and local regulations, and do not use a proxy to get around regional restrictions a service explicitly does not support.
Step 5: The network is fine, so why does it still fail?
If the diagnostic is all green and your browser works, but one particular chat keeps failing with Connection failed, the problem is often the session itself. These cases come up repeatedly on the forum:
The conversation is too long, or tool calls hit a limit
After an Agent session runs many consecutive rounds of tool calls and the context keeps growing, requests can fail while the UI still shows this same connection error. Verification is simple: start a new chat and ask the same question. If the new chat works, the old session was the problem; copy the key conclusions over and continue there.
Too many MCP tools configured
Every enabled MCP server adds its tool definitions to the request. With many tools the request body grows, and an MCP server that fails to start can also stall the whole request. On the MCP page in Settings, turn them all off first, confirm chat works, then enable them one at a time to find the culprit.
Expired login
After a long sleep, a network change, or activity on another device, the local token may have expired. Signing out and back in works better than retrying over and over.
Problems with a custom API key or Base URL
If you entered your own OpenAI key or changed the Base URL in Cursor, the failing piece may be that endpoint rather than Cursor itself. For which features use a custom endpoint and which do not, see Cursor custom API key and Override OpenAI Base URL. When troubleshooting, turn off the custom key first and test with Cursor's built-in models.
Quick reference: troubleshooting order
| Order | What to check | How to verify | Approx. time |
|---|---|---|---|
| 1 | Cursor official outage | Check /en/down/cursor and /en/status, try another model | 1 min |
| 2 | Network diagnostic | Settings → Network → Run Diagnostic | 1 min |
| 3 | HTTP/2 being interfered with | Tick Disable HTTP/2, restart and retry | 2 min |
| 4 | Proxy and routing | Test the domain with curl; check exit and routing at /en/ip | 5 min |
| 5 | Session and MCP | Start a new chat; turn off all MCP servers, then enable one by one | 5 min |
| 6 | Login and custom key | Sign in again, turn off the custom key | 2 min |
If you have gone through all of this and it still fails, post on the official forum or contact official support, and include the network diagnostic screenshot, your Cursor version, the time of the error, and the model you were using. The timestamp matters: the Cursor team can match it against server logs, and you can compare it with incident times on the status page yourself.
Do other AI coding tools behave the same way?
Yes. Tools like Claude Code and Codex hit problems of the same shape: server-side outages, a proxy that is not taking effect, streaming connections being cut, and replaced certificates. The difference is that command-line tools read environment variables, while Cursor reads editor settings and the system proxy. If you use several tools, the layered approach in Claude Code connection timeouts and errors: a four-layer network checklist applies directly: check DNS first, then TCP and TLS, then the HTTP layer, and only last the application itself.
The data above comes from Cursor official status page records synced by cdnping (window 2026-09-17 to 2026-10-17). cdnping's own probing only began on 2026-10-17, so its history is still short; for incident statistics, rely on the official status page.