# Antigravity Won't Connect, antigravity network error: A Four-Step Client Connectivity Check

> Your browser opens Google fine, but Antigravity throws a network error or hangs at sign-in? The problem is usually not the network itself, but that the client doesn't read the system proxy. This article walks through four checks — DNS, proxy channel, TLS, exit IP — with Windows and macOS methods, an error-message reference and a FAQ.

- Source: https://ipnet.coffee/en/news/antigravity-client-connectivity-four-steps
- Published: 2026-11-24
- Updated: 2026-11-24
- Publisher: ipnet.coffee

The typical "antigravity network error" comes in two flavors. In one, the window opens normally, you click Sign in with Google, the browser says authorization succeeded, and back in the app it just spins or pops `There was an unexpected issue setting up your account`. In the other, you get signed in but the conversation hangs on sending, or generation cuts off halfway.

These are not the same problem. Debug them mixed together and you'll only make a bigger mess.

Antigravity is a desktop client installed on your computer, not a web page. Its window is Electron (a shell for building desktop apps with web technology), while the processes that actually do the work in the background, `language_server` and `agy`, are standalone programs written in Go. The shell reads the system proxy; the Go processes usually only honor environment variables. When those two aren't aligned, you get "the browser can obviously open Google, yet the client reports a network error." Someone on the Google AI developer forum has taken this relationship apart: [discuss.ai.google.dev](https://discuss.ai.google.dev/t/antigravity-stuck-on-loading-screen-local-https-server-tls-renegotiation-loop/198305) covers being stuck on the loading screen and local HTTPS server renegotiation loops, while the community's troubleshooting path is more direct: first find which layer you're stuck at, then change settings ([antigravitylab.net](https://antigravitylab.net/en/articles/antigravity/antigravity-behind-proxy-connection-design)).

## Is antigravity network error an account problem or a network problem?

One curl tells you which. Before touching any setting, check whether requests can reach Google — hit the endpoint the app uses at sign-in with a request that carries no credentials:

```
curl -sS -m 15 -X POST https://daily-cloudcode-pa.googleapis.com/v1internal:loadCodeAssist \
  -o /dev/null -w 'HTTP %{http_code} %{time_total}s\n'
```

A `HTTP 401` back in about a second means the request reached Google, just without credentials: the network layer is fine and the problem is the account. Go check account eligibility — see [Antigravity sign-in fails: beyond region, account type and age are two more gates](https://ipnet.coffee/en/news/antigravity-not-eligible-account-type-age).

Timeouts, `EOF`, or `x509: certificate signed by unknown authority` mean the request never arrived, or something swapped the certificate along the way. Keep reading.

Now clear the proxy variables and run it again, simulating the environment the app sees when launched from the Dock or the Start menu (in Windows PowerShell, write `curl` as `curl.exe` and `/dev/null` as `NUL`):

```
env -u HTTPS_PROXY -u https_proxy -u HTTP_PROXY -u http_proxy -u ALL_PROXY -u all_proxy \
  curl -sS -m 15 -X POST https://daily-cloudcode-pa.googleapis.com/v1internal:loadCodeAssist \
  -o /dev/null -w 'HTTP %{http_code} %{time_total}s\n'
```

If the two results differ, the problem is basically pinned down: the variables exist in your terminal, but the app can't see them.

## Step 1: How do you check DNS and TCP 443?

The answer is to check these four domains, and don't skip it just because the browser works. The browser goes through the system proxy or an extension; the app's background processes take another path, and the two can resolve differently. What to look at:

- `oauth2.googleapis.com`: used for token exchange
- `daily-cloudcode-pa.googleapis.com`: the endpoint the app uses to decide whether your account is usable
- `cloudcode-pa.googleapis.com`: shows up in the sign-in chain
- `generativelanguage.googleapis.com`: the Gemini model API

The most common trap is the hosts file. Third-party "reverse proxy" tools point those domains at `127.0.0.1` in hosts; the moment the tool stops, the app connects to a local port nobody is listening on and reports `dial tcp 127.0.0.1:443 ... refused`. Open hosts and take a look (macOS: `/etc/hosts`, Windows: `C:\Windows\System32\drivers\etc\hosts`), delete any such lines, then on macOS run `sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder` and on Windows run `ipconfig /flushdns`.

As for "is the resolved IP taking the path you expect" — the terminal can't tell you that; use a browser. Open [https://ipnet.coffee/dns](https://ipnet.coffee/en/dns) and it compares the recursive resolver actually querying on your behalf with the region of your exit IP. If the two don't match, DNS is going another way.

## Step 2: Does the client read the system proxy?

The answer depends on the component — each one honors different settings. This is Antigravity's own trap, and the most common reason for "browser works, app doesn't":

| Component | Which proxy settings it honors | Typical result |
| --- | --- | --- |
| Electron shell (window, built-in browser) | The OS "system proxy" | The auth page opens, making you think the whole chain works |
| The Go `language_server` | Only the `HTTP_PROXY` / `HTTPS_PROXY` environment variables | Connects directly even with the system proxy on; timeout or `EOF` |
| The `agy` command line | Same as above, environment variables only | Works in the terminal, fails when launched from the icon |
| System-level TUN | Ignores settings, takes over NIC traffic directly | Only then do both paths truly agree |

This difference has been documented against source and real testing in the community: [github.com](https://github.com/Ikaros-521/antigravity-launcher) lays out fairly clearly what the Electron, Go and Node layers each read; on [linux.do](https://linux.do/t/topic/2967484) someone reproduced the same symptom — browser authorization succeeds, but the client fails at the `oauth2.googleapis.com/token` exchange.

**macOS**: write the environment into launchd, then Cmd+Q to fully quit the app and reopen it from the Dock. Use the HTTP port your proxy software shows:

```
launchctl setenv HTTPS_PROXY http://127.0.0.1:<端口>
launchctl setenv HTTP_PROXY http://127.0.0.1:<端口>
```

This is lost after a reboot; when you no longer need it, remove it with `launchctl unsetenv HTTPS_PROXY`.

**Windows**: set the variables in a command prompt first, then launch the app from that same window:

```
set HTTP_PROXY=http://127.0.0.1:<端口>
set HTTPS_PROXY=http://127.0.0.1:<端口>
start Antigravity.exe
```

If you'd rather not set variables, use TUN mode so traffic is taken over at the NIC layer — that's the principle a forum admin gave too: when the network must go through a proxy to reach Google, either TUN applies globally, or the background processes and the browser must take the same path.

If setting the variables instead gives you `proxyconnect tcp: ... connection refused`, nothing is listening on that port — double-check the port, or clear both variables and start again.

## Step 3: What if you get certificate errors or the time is off?

Check TLS and the system clock first. `x509: certificate signed by unknown authority` means something is swapping out Google's certificate in the middle. Three sources: antivirus HTTPS scanning, a corporate proxy doing HTTPS inspection, or `SSL_CERT_FILE` having been changed by another tool. On Windows, `Get-ChildItem Env:SSL_CERT*` shows it. Go programs use that variable to **completely replace** the system certificate store; clearing it, or whitelisting Antigravity in your antivirus, is far safer than "turning off certificate verification" — the latter lets any intermediary read your login token. Don't do it.

A large system clock skew fails the same way: certificate validity checks during the handshake simply won't pass. Sync the time before anything else.

Still getting `EOF` with TUN on? Look at your proxy software's own connection log. In fake-IP mode, when the proxy can't reach upstream, the app only sees the connection closed, not "domain doesn't exist." Changing anything in Antigravity won't help here.

## Step 4: What if your exit IP is flagged?

Local settings really won't help. If the first three steps pass and you still get repeated verification, dropped logins or interrupted conversations, it's time to look at the exit side. The reason is simple: however clean your local config, the other side still sees that IP, and the IP's type, ownership and the signals around it are judged separately.

What to look at: whether the exit IP is residential or datacenter, which ASN it belongs to, whether its region matches the country tied to your account, and whether the DNS resolver's location conflicts with the exit. There are ready-made checks on the site — open https://ipnet.coffee/antigravity and run it; it lists these signals together so you can see whether they contradict each other. Finer-grained judgment is in [Antigravity proxy IP flagged: datacenter or residential, a three-item self-check](https://ipnet.coffee/en/news/antigravity-network-check-exit-region-ip-type-dns).

When switching exits, don't just ask "is it residential?" Stability matters more than type — the same IP for days versus three swaps a day are two completely different signal states.

## FAQ

**Why can the browser open Google but Antigravity still fails to sign in?**

Because the browser and the app's background processes don't take the same path. The browser only needs the system proxy or an extension; the Go background processes only honor environment variables, or rely on TUN taking over. Set `HTTPS_PROXY` or turn on TUN, then try again.

**The system proxy is clearly on, so why doesn't it work?**

The system proxy lives in the registry or system settings; Go's `net/http` reads environment variables. The two don't talk. This isn't a bug, it's a design difference. Fill the gap with the launchctl / set method above, or just use TUN.

**I set the environment variables on macOS, but they're gone after a restart?**

`launchctl setenv` only applies to the current login session and is lost on reboot. Either set it again after each restart, or switch to TUN mode and skip this step.

**On Windows I set them and still get `proxyconnect ... connection refused`?**

Wrong port, or the proxy software isn't running at all. Check the HTTP port shown in the software and make sure you launch the app from the same window. It could also be leftover variables from last time still pointing at the old port — clear them before setting again.

**What does `context deadline exceeded` mean?**

The request went out and no response came back within the time limit. It only says "no response," not why: the proxy node may be down, upstream unreachable, or a firewall dropping packets. Use the step-one curl with and without the variables to see where the difference is.

**What do I do about `dial tcp 127.0.0.1:443 ... refused`?**

The hosts file was modified and Google domains point at your own machine. Delete those lines, flush the DNS cache, restart the app.

**TUN is on and I still get `EOF`?**

Check the proxy software's log. Usually upstream is unreachable, or a node rule sends `*.googleapis.com` to direct. It could also be a local firewall dropping TLS connections — verify these two separately.

**How do I tell whether it's an account problem or a network problem?**

Just run the curl from step one. 401 means the network is fine and it's an account issue; a timeout or certificate error means a network issue. This one step cuts the rest of the troubleshooting in half.

**Can I turn off certificate verification by editing app files?**

Not recommended, and it shouldn't be taught in an article. That amounts to handing your login token to any intermediary, and the official FAQ states that using third-party software to access the service through Antigravity's login violates the terms and may get your account suspended or terminated.
