GrepBoard/Manuals
605 manuals ·

Fix Cursor "Connection failed ... check your VPN"

·Tested on Cursor official docs and forum replies · 2026-10·Test scope ↓·7 steps

When Cursor says "Connection failed ... check your internet connection or VPN", run Network Diagnostics, then check HTTP/2, VPN and the domains it needs.

text
Connection failed. If the problem persists, please check your internet connection or VPN.

This is Cursor's generic failure notice when it cannot reach its AI servers. The text does not name a cause. Forum threads for this message include several user reports that it appeared with long conversations or large files rather than network trouble, fixed by starting a new chat, and some say it was not a network problem. So first open a new chat and see if the error repeats; if it does, narrow down the network path below one piece at a time (the new-chat fix is a user report, not official).

[1] Run Network Diagnostics first. Per the official docs: open Cursor Settings, go to the Network section and click Run Diagnostics. It tests your connection to Cursor's servers and flags problems affecting AI features or updates. Keep the result in case you need to ask for help.

[2] Turn off HTTP/2. The docs explain that Cursor uses HTTP/2 for streaming responses and that some corporate proxies, such as Zscaler, block it. The fix is to set HTTP Compatibility Mode to HTTP/1.1 under Cursor Settings > Network and restart Cursor. A forum reply says to search "HTTP/2" in App Settings (Ctrl+,) and turn on "Disable HTTP/2", noting it can help on corporate networks, VPNs or proxies. The option names differ between the two sources, probably a version difference, but that was not confirmed. Follow the name you see on screen.

[3] Turn off the VPN and proxy temporarily and try again. The forum reply recommends this as a test. If it works, the VPN is the cause: keep it off for Cursor, or ask your administrator to open the domains below.

[4] If a firewall blocks outbound traffic, allow the patterns from the official docs.

PatternNote
*.cursor.sh
*.cursor-cdn.com
*.cursorapi.com
*.cursorvm.com and *.*.cursorvm.comboth required for Grok Bot

Sign-in needs additional hosts, and the page lists no port requirements.

[5] If you used a VPN earlier, quit Cursor completely and reopen it; closing the window is not enough. The docs say Cursor can inherit DNS settings from a previously active VPN and cause DNS errors. If it continues, check that system DNS has returned to your normal resolver.

[6] Try a different network. The forum reply suggests another region or a mobile hotspot. If it works there but not on your usual network, that network's proxy or filter is the cause.

[7] If every diagnostic passes and the error continues, report it the way that reply asks: the model in use, OS and Cursor version (Help > About), whether you use a VPN, proxy or corporate network, and two or three request IDs from different attempts. Request details are limited when Privacy Mode is on. Turning Privacy Mode off is optional, and it can let your prompts and code be stored by Cursor. If you work on company code, check your company policy first, and if you cannot turn it off, send the IDs with it on (you just get less detail). The reply also asks you to toggle the HTTP/2 option and restart Cursor even when diagnostics pass.

Over remote SSH, the docs say AI features run on your local machine, so check your local internet connection first. If SSH sessions drop often, set keep-alive values in your SSH config and restart Cursor after reconnecting.

The forum threads also list other user suggestions: end the session from your account profile and log in again, clear the cache or reinstall. Nobody official confirmed these, so treat them as candidates for when the steps above fail.

#cursor#network#troubleshooting