# EgressLens (出口照妖镜) **English** · [简体中文](README.zh-CN.md) Which IP addresses does the internet see you as? Rule-based proxies and VPNs pick a route per website, so one "what is my IP" check only sees its own route. [EgressLens](https://egress.1ms.dog) asks 51 probes at once and groups what they see into exits: **D** for your own line (direct), **P** for a proxy, numbered D1, D2, P1, P2… when there is more than one. **Live:** https://egress.1ms.dog > **More from [1ms.dog](https://1ms.dog)**, all free and open source (hover a name to see what it answers) > > **IP & privacy**: [IP Quality Test](https://github.com/yt1988/ip-quality-test "How clean your IP is, scored 0–100 from a dozen sources") · [Who Are You](https://github.com/yt1988/who-are-you "What any website can tell about you without asking") · [ASN Lookup](https://github.com/yt1988/asn-lookup "Who owns an IP, and the prefixes and peers of every AS") · [Streaming & AI Unlock Check](https://github.com/yt1988/unlock-check "Which streaming and AI services work on your IP") > > **Speed & connectivity**: [1ms.dog](https://github.com/yt1988/1ms.dog "Where your traffic exits, and how far the services you use are") · [Network X-Ray](https://github.com/yt1988/connection-checkup "Eight of these tests in one run, one grade") · [Speed Test](https://github.com/yt1988/speed-test "Download, upload, ping and bufferbloat") · [DNS Test](https://github.com/yt1988/dns-test "Which public DNS is fastest from your network") · [Domain X-Ray](https://github.com/yt1988/dns-records "Every DNS record, the resolver answers and the registration behind a domain") · [IPv6 Test](https://github.com/yt1988/ipv6-test "Whether your network really supports IPv6, scored out of 10") · [CDN Radar](https://github.com/yt1988/cdn-radar "Which location of each big CDN serves you, and how far it is") · [Reach Check](https://github.com/yt1988/reach-check "Whether others can reach your website, NAS or game server, from 18 regions") · [Network Diagnosis](https://github.com/yt1988/net-diagnosis "When the internet lags, which part of the path is at fault: Wi-Fi, ISP, long-haul route, proxy or one service") · [Route Trace](https://github.com/yt1988/route-trace "Every hop from a network like yours to anywhere, on a map: the lines it takes, where it crosses borders, which stretch is slow") · [Global Ping](https://github.com/yt1988/global-ping "Ping a domain or IP from 18 locations: all 16 packets drawn, packet loss where it happened") > > **Cloud & costs**: [Me2Cloud](https://github.com/yt1988/me2cloud "Latency, jitter and timeouts to every region of the big clouds") · [Lightsail Cost Saver](https://github.com/yt1988/lightsail-cost-saver "Forecast Lightsail transfer overage, and the cheapest way to add more") · [Cloud Cost Planner](https://github.com/yt1988/cloud-cost-planner "The cheapest VPS, storage and CDN setup for your traffic") > > **Command line**: [`httpslatency`](https://github.com/yt1988/https-latency-test-cli "1ms.dog's latency test, run from a server or router") · [`vps2cloud`](https://github.com/yt1988/vps2cloud "Me2Cloud from a server: latency to every region of the big clouds") · [`dnstest`](https://github.com/yt1988/dns-test-cli "DNS Test from a server, over UDP, TCP, DoT, DoH and DoQ") ## Probes | Group | What it shows | |---|---| | Sites in mainland China | IPIP.NET, iQIYI, ipify.cn, DNSPod (IPv4 and IPv6): the route rules usually send direct | | IP lookup services | this site (the 1ms.dog shell's `/_ms/me`, Cloudflare's view of the connection; `/cdn-cgi/trace` when self-hosted), IP.SB, ipinfo.io, ipapi.co, ipwho.is, GeoJS, ipleak.net, ident.me, ip.guide, icanhazip, BigDataCloud | | AI services | ChatGPT, OpenAI, Sora, Claude, Anthropic, Grok, Perplexity, Copilot, Mistral, Poe, Character.AI, DeepL | | Popular sites | Cloudflare, 1.1.1.1, GitLab, npm, Notion, Linear, Zoom, Medium, Coinbase, Crunchyroll, Patreon, Shopify | | IPv4 only / IPv6 only | IP.SB, Cloudflare Radar, ipify, icanhazip on single-stack hosts | | WebRTC (UDP) | STUN servers of Cloudflare, Google, Twilio, Xiaomi, Bilibili and Mango TV | | 1ms.dog's Tokyo server | one destination over TCP 443 (who.1ms.dog's `probe.1ms.dog/conn`, which also reads the MSS), 4433, 8080, 8443, 9443, 10443 (HTTPS echo, `echo.1ms.dog`) and UDP 3478, 19302, 51820, 40000 (STUN, `stun.1ms.dog`): an exit that changes with the port or protocol alone comes from the proxy's rules. The server is [`server/`](server/) | AI services and popular sites are read through Cloudflare's `/cdn-cgi/trace` on each site's own domain: it returns the address that connected, with `Access-Control-Allow-Origin: *`. So the page sees exactly which exit chatgpt.com or claude.ai gets under your rules. From the answers the page reports split routing (mainland sites vs. abroad), services that take their own route, WebRTC leaks (UDP leaves through your own line while websites see a proxy), the NAT type (cone or symmetric, from one connection that asks every STUN server), rules by port or protocol (TCP proxied, UDP direct), a tunnel hint from a small MSS, IPv6 leaks, a time zone that doesn't match the exit country, and Cloudflare WARP. **Private by design:** the site is static files. Your browser talks to each probe directly; no result is sent to the site. The site's own probes (`/_ms/me` and the Tokyo server) send back the address they see and keep no record. "Hide IPs" masks addresses for screenshots. ## Self-hosting `public/` is committed, so nothing needs building unless you change the code. ```bash git clone https://github.com/yt1988/egresslens cd egresslens npx wrangler login npx wrangler deploy # a static-assets Worker: no script, free and unmetered ``` `wrangler.toml` turns off `*.workers.dev` and preview URLs; bind your own domain under **Workers & Pages → egress → Settings → Domains & Routes**, or set `workers_dev = true` for a quick test. Any static host works; `public/_headers` holds the security headers in Cloudflare's format. The WARP check reads `/cdn-cgi/trace` on the page's own host, so it only works behind Cloudflare. On 1ms.dog the page can also run inside the connection checkup (check.1ms.dog): opened with `?embed=checkup` from the origin the host names in ``, it shows only the exits and the findings (not the link to the checkup that the intro carries once the host announces it), starts at once and posts its progress and result to that origin. Without that meta, as when self-hosted, `?embed` is ignored. To put your own domain into canonical links and the sitemap: ```bash npm install SITE_URL=https://egress.example.com npm run build ``` ## Development ```bash npm install npm run dev # http://localhost:8787, with the production headers npm run build # regenerate public/ after changing src/ (commit public/) npm test # public/ up to date, page contract, and the logic tests npm run verify # check every HTTPS probe: no redirect, CORS, readable answer npm run og # redraw the link-preview images in public/og/ after changing a headline (commit them) ``` ``` src/probes.mjs the probes: group, URL and how to read each answer src/lib.mjs pure logic (readers, exit grouping and D/P labels, findings), unit-tested src/app.js browser code: runs the probes, renders exits, findings and rows src/page.html page template; src/i18n/*.mjs strings for 10 languages (en is the reference) scripts/build.mjs builds public/: pages per language, hashed assets, sitemap, robots, llms.txt, _headers ``` A new probe must answer one GET with no redirect, allow CORS for any origin, and return the client address in a form a reader in `src/lib.mjs` understands. Run `npm run verify` from a dual-stack network. ## License MIT