# grok login redirect loop: check the three entry points separately

> When you hit a grok login redirect loop, don't rush to switch accounts. The grok.com web page, mobile app, and the entry inside X are three different paths. This article breaks down failure points by entry point and ends with a minimal test that doesn't require changing accounts, to narrow the scope to one path.

- Source: https://ipnet.coffee/en/news/grok-login-fail-three-entries
- Published: 2026-11-22
- Updated: 2026-11-24
- Publisher: ipnet.coffee

A grok login redirect loop is almost never caused by the account being gone. More often, you tested only one entry point and then applied the conclusion to the other two.

The grok.com web page, mobile app, and the Grok entry inside X take three not entirely identical paths. The web has to get through browser cache, cookies, and redirects on the login domain; the app has to get through version, system time, and OAuth redirect; the entry inside X doesn't log in separately at all—it uses X's session. Where each of the three paths breaks shows up completely differently.

First do one thing: try each of the three entry points once and write down the results. Below I break it down by entry point.

## What is each of the three entry points doing?

- **grok.com web**: browser → egress IP → edge node → xAI login domain → redirect back to grok.com. If any domain in between doesn't resolve or connect, you see the login page fail to open or hang after submit.
- **Mobile app**: app → system network → during login often uses the system browser to complete OAuth → back to app. It doesn't use the same set of domains as the web, and it may not use the same egress either.
- **Grok entry in X**: X account session → X internal API. There is no 'Grok login' step here, only 'is the X session still valid'.

They share only one thing: in the end they all see an egress IP. So the troubleshooting order is—first locate which path is broken, then look at egress. Do it the other way around and you'll keep switching nodes.

## X entry login failure: what to check first?

The symptom 'Grok login failure from the X entry point' is 80% of the time unrelated to Grok.

Grok inside X doesn't authenticate separately; it inherits X's login state. So when the X session expires, X asks you to verify once, or the X account itself is in a restricted state, the Grok tab just spins, throws an error, or simply doesn't load.

How to tell: go back to the X main screen, post something, see if notifications refresh, see if a verification prompt appears. If X itself is fine and only the Grok tab fails, it's more likely the internal API from X to Grok is flaky and has little to do with your local network. At that point switching nodes or reinstalling the app is wasted effort; check https://ipnet.coffee/status for service status and try again later.

Another easy misdiagnosis: X web works, but Grok in the X app doesn't. This is usually the app session and web session being out of sync; logging out of the X app and back in is faster than anything else.

## grok login redirect loop: three common causes

The grok login redirect loop is the most consistent of the three symptoms. It usually means login actually succeeded, but credentials weren't carried on the redirect, so you get kicked back to the login page. There are three common causes.

**One is half-dead cookies.** The login domain writes a cookie, but the main site domain on redirect can't read it, or reads the old one. Cookie scope rules (Domain / Path / SameSite) are clearly explained in [MDN's Set-Cookie documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie); not being able to read across subdomains is common. Open an incognito window and retry. If incognito works and the normal window doesn't, it's basically a local cookie or extension problem; clear site data related to grok.com.

**Two is login domain not allowlisted.** xAI has adjusted the domains in the login path. If domain allowlists on corporate networks, campus networks, or soft routers haven't been updated accordingly, the symptom is the login page itself won't load, or it keeps spinning after you click submit. At this point 'grok web won't open but app works' is a very typical combo—the app uses another set of domains, so it's fine. When this happens, don't doubt the account; check the allowlist on your router or company network.

**Three is split routing putting the login domain and main site on two egresses.** One browser showing two egress IPs naturally makes login state mismatch. Run https://ipnet.coffee/link once and see whether grok.com and login-related domains actually use the same egress IP. The cause and troubleshooting approach for this kind of issue are the same as in [Shadowrocket global routing: config or proxy](https://ipnet.coffee/news/shadowrocket-global-routing-config-vs-proxy).

## App login failure: which three things to rule out first?

For 'grok app login failure', first rule out three things unrelated to the network.

- **Version too old.** An old version may still be requesting APIs that have been taken offline; the symptom is that pressing the login button does nothing.
- **Large system time offset.** Inaccurate time makes TLS handshakes and token validation fail outright; the error text is often vague.
- **Multiple accounts on the device.** App login often uses the system browser to complete OAuth. If several Google or X accounts are signed in in the system browser at the same time, it easily redirects to the wrong one, and then the app decides login failed. For the OAuth authorization code redirect mechanism, see [RFC 6749](https://www.rfc-editor.org/rfc/rfc6749).

None of these three involve the egress IP. So when the app alone fails and the web works, don't touch network configuration first.

## 'Grok no network connection'—whose problem is it?

This error has nothing to do with the account; it means the connection from the device to grok.com wasn't established. Three common cases:

1. **The proxy only proxies HTTP, not WebSocket.** Grok sessions rely heavily on long connections; HTTP works but the long connection is interrupted, and the page shows 'no network connection'. For the WebSocket handshake and upgrade process, see [RFC 6455](https://www.rfc-editor.org/rfc/rfc6455).
2. **TUN mode and system proxy are both on.** Two paths compete for traffic; neither completes.
3. **DNS resolves to an address it shouldn't.** Use https://ipnet.coffee/dns to see where the recursive resolver actually doing the lookup for you is (mechanism see [Cloudflare's DNS explainer](https://www.cloudflare.com/learning/dns/what-is-dns/)), and whether it matches the egress IP region.

To confirm whether it's a latency problem or a reachability problem, use https://ipnet.coffee/ping to see both server-side and browser round trips; jitter and packet loss say more than average latency.

## How to do the minimal test without changing accounts?

No reinstall and no account switch; four steps narrow the scope to one path:

1. Open grok.com in an incognito window and complete a full login.
2. Turn off Wi-Fi on your phone, use cellular data only, open the app and log in.
3. Open Grok in the X app.
4. Write down the three results.

Compare them:

| Result | Where the problem is |
|---|---|
| Only the web fails | Browser data, login domain allowlist, split routing rules |
| Only the app fails | Version, system time, accounts on the device |
| Only the X entry fails | X session or X-side API; unrelated to Grok |
| All three fail | Only then is it the egress IP and the account itself |

When all three fail, then go to https://ipnet.coffee/grok to check regional availability, Tor and proxy flags, and the stability of the X login path. One clarification: the platform hasn't publicly disclosed exactly how it judges; we can only see the signals it exposes externally, not its internal rules. So the check page gives 'what signals the current environment has', not 'whether you can pass'.

The point that browser, terminal, and mobile app need separate tests was expanded in [AI exit IP check: browser, terminal, and mobile app need separate tests](https://ipnet.coffee/news/ai-exit-ip-check-three-layers); if your problem ends up being 'region unavailable' rather than login failure, the distinction method in [Claude extension region unavailable](https://ipnet.coffee/news/claude-extension-grok-region-unavailable) also applies.

## When should you suspect the egress IP?

All three entry points fail and switching to another network recovers—that's when it points to egress. Repeated login page redirects, frequent re-verification requests, and sessions dropping after a few minutes usually relate to the egress IP jumping around in a short time—the platform sees the same account logging in from different regions.

If you need a long-term fixed, clean egress IP, SneakProxy provides static residential (ISP) IPs, suitable for this 'one account maps to one stable egress' scenario. If you don't need it, the test method above already solves most problems.

## Common questions

### Is repeated redirect back to the login page an account ban?

Mostly no. More often login succeeded but credentials weren't carried on the redirect: half-dead cookies, login domain not allowlisted, or split routing putting the login domain and main site on two egresses.

### Web won't open but app works—what's the reason?

Typically the login domain isn't allowlisted. The app uses another set of domains, so it's fine. Check whether the domain allowlist on your router or company network has been updated along with xAI's changes.

### Grok in X won't open—is it a Grok problem?

80% no. Grok inside X doesn't authenticate separately; it inherits X's login state. First go back to the X main screen and see whether you can post, refresh notifications, and whether a verification prompt appears.

### What to check first when app login fails?

First rule out three things unrelated to the network: version too old, large system time offset, and multiple accounts in the system browser causing OAuth to redirect to the wrong one.

### How to quickly tell which path the problem is on?

Try each of the three entry points once: open the web in an incognito window, turn off Wi-Fi on your phone and use cellular data to open the app, and open Grok in the X app. If only one fails, the problem is on that path; if all three fail, only then is it the egress IP and the account.
