# Shadowrocket global routing config vs proxy: why does one browser have two exit IPs

> Shadowrocket global routing: config or proxy? We explain why rule-based routing makes the same browser show two exit IPs, how WebRTC and DNS leak your real IP, and how to set things up when you use Claude, ChatGPT or TikTok.

- Source: https://ipnet.coffee/en/news/shadowrocket-global-routing-config-vs-proxy
- Published: 2026-11-21
- Updated: 2026-11-24
- Publisher: ipnet.coffee

Shadowrocket global routing config vs proxy? The short answer: on a device used for accounts like Claude, ChatGPT and TikTok, "Proxy" is the more reliable choice. "Config" routes by rules — only sites that match a rule go through the proxy, and everything else (including WebRTC's UDP and DNS) may leave straight from your real network, so the platform sees two different exit IPs.

A lot of people see "WebRTC leak", "DNS leak" and "timezone mismatch" flagged together in the [Claude environment check](https://ipnet.coffee/claude), and their first instinct is to blame the proxy node. Most of the time the node is fine — the problem is the routing mode.

## Shadowrocket global routing config vs proxy: what the four options actually mean

The "Global Routing" setting on the Shadowrocket home screen decides which path every connection takes:

| Option | What it actually does | Who it suits |
|---|---|---|
| Config | Routes by the rules in your config file: matching traffic goes through the proxy, the rest goes direct | Mixed everyday use, where you don't want domestic apps to take a detour |
| Proxy | All traffic goes through the proxy, i.e. global mode | Devices dedicated to overseas platform accounts |
| Direct | No traffic goes through the proxy | Temporarily turning the proxy off |
| Scene | Automatically switches between the modes above based on the network (Wi-Fi, cellular, etc.) | People who want different modes at home and on the go |

Many IP providers tell customers in their tutorials to switch global routing to "Proxy", and the reason is the rule-based routing problem described below.

## Why does the same browser show two exit IPs?

Because the exit isn't decided by the browser — the proxy app decides it per connection, based on the destination address. The browser only sends requests; Shadowrocket takes over the network at the system level and checks the rules again for every single request:

1. Open a small site that isn't in the rules: no match, direct connection, so the other side sees your real IP
2. Open claude.ai: match, goes through the proxy, so Claude sees the proxy node's IP
3. WebRTC in the page sends UDP packets to a STUN server: the STUN server isn't in the rules, or the node doesn't forward UDP, so it goes direct and exposes your real IP again

We've seen a very typical test result (IPs redacted):

- IP used to reach this site: 198.51.100.23 (domestic home broadband / mobile network)
- Exit seen by Claude: 203.0.113.45 (overseas datacenter, proxy node)
- WebRTC UDP exit: 198.51.100.23 (the real IP again)
- DNS resolution: domestic carrier DNS

Same phone, same browser, same test — two exits. That's normal rule-based routing behaviour in "Config" mode, not a faulty test.

## With the proxy on, why does WebRTC still leak your real IP?

WebRTC is the browser feature behind video calls and P2P transfer. It discovers its own public address through a STUN server, over UDP. JavaScript on a page can trigger this kind of probe without any permission, and the address exposure involved is discussed in [IETF RFC 8828](https://datatracker.ietf.org/doc/html/rfc8828).

So even if claude.ai itself goes through the proxy, the STUN request sent by a script on Claude's page targets the STUN server rather than claude.ai, so the routing rules may not match and your real IP gets carried out with it. You can see exactly which addresses your browser exposes in the [WebRTC leak test](https://ipnet.coffee/webrtc).

## Where do DNS leaks and timezone mismatches come from?

- **DNS leak**: in "Config" mode, domains that don't match a rule use the local carrier's DNS. The platform can also infer your real region from where the DNS resolver sits. The [DNS leak test](https://ipnet.coffee/dns) shows which network the resolver belongs to
- **Timezone mismatch**: a proxy only changes your IP, it doesn't change your phone's timezone or language. Exit in the US, system timezone Shanghai — the platform spots the inconsistency at a glance

None of these three is a big problem on its own, but stacked together they form the classic picture of "account environment doesn't match the IP region". Claude only offers service in [officially supported countries and regions](https://www.anthropic.com/supported-countries), and an inconsistent environment is more likely to trigger extra verification.

## Is "Proxy" mode guaranteed to be safe?

No. "Proxy" solves the rule-leak problem, but there are three more things to check:

1. **UDP forwarding**: the node's protocol and server need to support UDP, and the UDP-related switch for the node in Shadowrocket needs to be on (the names vary slightly between versions). If UDP isn't supported, WebRTC's UDP packets may go straight out over your local network
2. **IPv6**: if your mobile network has IPv6 and the proxy only handles IPv4, IPv6 traffic may go out directly. If you're not sure, turn IPv6 off in Shadowrocket's settings
3. **Timezone and language**: manually set the system timezone and language to match the exit region

After changing things, run the [IP lookup and routing test](https://ipnet.coffee/) and the [Claude environment check](https://ipnet.coffee/claude) once each, and check whether the "browser exit", "platform exit" and "UDP exit" are the same IP, and whether DNS leaks.

## Why do so many people still use "Config" mode?

Because "Proxy" mode makes every app take the overseas node:

- WeChat, Alipay and banking apps get slower, and may trigger remote-login verification on domestic platforms
- Domestic video and downloads eat up proxy bandwidth
- When the node is unstable, every app loses connectivity at the same time

The practical approach is to keep them separate: on the device or during the time window dedicated to signing in to Claude, ChatGPT and TikTok accounts, use "Proxy" mode and sort out UDP, IPv6 and timezone; switch back to "Config" for everyday use. Whichever mode you use, run the [ChatGPT environment check](https://ipnet.coffee/gpt) or the Claude check after changing settings to confirm.

## FAQ

### Should Shadowrocket global routing be set to config or proxy?

Choose "Proxy" when the device is used to sign in to overseas platform accounts: all traffic goes through the proxy, so your real IP can't leak just because a routing rule didn't cover something. For mixed everyday use, "Config" is fine, as long as you accept that WebRTC and DNS may expose your real network.

### Is Shadowrocket's "Proxy" mode the same as global mode?

Yes. Shadowrocket's global routing has no option called "Global" — "Proxy" sends all traffic through the proxy node, which is the same effect as global mode in other apps.

### Why do the test results show two different exit IPs?

Because in "Config" mode the proxy app routes by destination site: sites that match a rule go through the proxy, everything else goes direct. The test page requests several addresses at once, so you see both the proxy exit and the real exit.

### I turned on global proxy and WebRTC still leaks — what should I do?

First confirm that the node and protocol support UDP, and turn on the matching UDP switch in Shadowrocket; then check whether IPv6 is enabled. Run the WebRTC test again afterwards — the UDP exit should match the browser exit.

### Can rule-based routing cause problems for my Claude account?

Routing itself won't directly cause problems, but it often brings WebRTC leaks, DNS leaks and timezone mismatches, which lead the platform to conclude that your network environment doesn't match the IP region and more easily trigger extra verification. Before signing in, use the test pages to confirm that the exits match.
