Fix Copilot "could not connect to server" (ETIMEDOUT)
When Copilot in VS Code fails with "Extension activation failed" and ETIMEDOUT, use curl to split the problem, then check proxy, login and certificates.
GitHub Copilot could not connect to server. Extension activation failed: "connect ETIMEDOUT ...:443"The extension could not open a TCP connection to the Copilot server while starting up. It can appear even though github.com opens fine in a browser, as it did for the author of community discussion #64334. Treat it as a problem with the network path the extension uses (proxy, firewall, certificates), not the extension itself, and narrow it down in this order.
[1] Test the connection outside the editor. The official docs suggest curl; success returns HTTP 200. Copilot Chat uses a different address.
$ curl -s -o /dev/null -w "%{http_code}\n" https://copilot-proxy.githubusercontent.com/_ping200$ curl -s -o /dev/null -w "%{http_code}\n" https://api.githubcopilot.com/_ping200The docs' own command is curl --verbose https://copilot-proxy.githubusercontent.com/_ping; the lines above are the same address trimmed to show only the status code. A 200 means the machine can reach the server, so suspect the editor's proxy settings. A hang or failure points to the network (firewall, corporate network).
[2] If you use a proxy, repeat the test through it. Replace YOUR-PROXY-URL:PORT with your values.
$ curl --verbose -x http://YOUR-PROXY-URL:PORT -i -L https://copilot-proxy.githubusercontent.com/_ping[3] If the proxy URL starts with https://, change it. The docs say: "If your proxy's URL starts https://, it is not currently supported by GitHub Copilot." Use an http:// URL. Check the proxy address in VS Code's proxy settings. In the discussion, a user whose hosts entry did not bring suggestions back fixed it by putting a local proxy address in http.proxy. Another user got connection refused because nothing was listening on a local proxy port such as 127.0.0.1:7890. So set http.proxy only if you already use a proxy (local ones included), with its real address and port; if you use no proxy, leave it empty, because a made-up value breaks the connection. The docs do not name that setting, so this part rests on the discussion.
[4] Check whether the proxy needs authentication. Per the docs, Copilot supports basic authentication and Kerberos. For Kerberos you need a valid ticket for the proxy service and the correct service principal name. The docs also warn that a proxy setup your editor supports may still fail because Copilot uses its own connection code.
[5] On a company or school network, check the allowlist. The page does not list domains; it points to the Copilot allowlist reference. Step 1 tells you whether the two _ping addresses are blocked. If your company uses a proxy, the docs say the company must also configure Copilot proxy settings at its level.
[6] If ECONNRESET or certificate wording shows up, suspect SSL inspection. The docs group certificate signature failure and unable to verify the first certificate under certificate problems. A reply in the discussion also asks whether a firewall, VPN or network device intercepts SSL traffic. Trusting the device's certificate is the proper fix. Turning off Proxy Strict SSL in the editor is discouraged by the docs ("can cause security issues and is not recommended"), so treat it as a temporary test only.
[7] If it still fails, collect the editor's debug logs. The docs point to their "Viewing logs for GitHub Copilot" article.