{"id":164,"date":"2026-11-12T09:20:00","date_gmt":"2026-11-12T09:20:00","guid":{"rendered":"https:\/\/www.whatismyipaddressinquire.com\/blog\/?p=164"},"modified":"2026-11-11T03:39:45","modified_gmt":"2026-11-11T03:39:45","slug":"cdn-edge-ips-vs-true-client-egress","status":"publish","type":"post","link":"https:\/\/www.whatismyipaddressinquire.com\/blog\/cdn-edge-ips-vs-true-client-egress\/","title":{"rendered":"CDN Edge IPs vs True Client Egress"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/images.unsplash.com\/photo-1451187580459-43490279c0fa?auto=format&amp;fit=crop&amp;w=1200&amp;q=80\" alt=\"Globe network visualization over a city skyline\" \/><\/p>\n<p><strong>TL;DR:<\/strong> Logs that show a CDN or reverse-proxy address are not the visitor\u2019s home IP. Read forwarded client headers carefully, and verify what <em>your<\/em> browser egress looks like with a direct <a href=\"https:\/\/www.whatismyipaddressinquire.com\/\">IP address inquiry<\/a> when debugging allowlists.<\/p>\n<h2>Why edge addresses dominate modern logs<\/h2>\n<p>Sites fronted by Cloudflare, Fastly, CloudFront, or similar terminate TLS at the edge. Origin servers then see TCP connections from the CDN, not from end users. Access logs that only print the socket peer will list PoP addresses in CDN ASNs\u2014useless for per-customer allowlisting if taken literally.<\/p>\n<p>Mobile apps and APIs behind API gateways show the same pattern: the gateway IP repeats thousands of times while real clients hide in headers.<\/p>\n<h2>Headers that carry the client\u2014when you can trust them<\/h2>\n<p>Common fields include <code>X-Forwarded-For<\/code>, <code>X-Real-IP<\/code>, and vendor-specific headers such as <code>CF-Connecting-IP<\/code>. Trust rules matter:<\/p>\n<ul>\n<li>Only honor forwarded headers from IP ranges you control or contractually trust.<\/li>\n<li>Prefer the rightmost or leftmost entry according to your proxy chain documentation\u2014guessing causes off-by-one identity bugs.<\/li>\n<li>Attackers can inject <code>X-Forwarded-For<\/code> on direct-to-origin paths if the origin is exposed; keep origin dark.<\/li>\n<\/ul>\n<p>Misconfigured trusts produce \u201cclients\u201d in impossible countries or private RFC1918 addresses that never touched your network.<\/p>\n<h3>Allowlists at the wrong layer<\/h3>\n<p>If a partner asks you to allowlist \u201ctheir IP\u201d and they sit behind a CDN, they may accidentally give you the edge address that rotates. Ask for the egress that originates from their office firewall or NAT, confirmed on a non-CDN tool page from the same network path as the integration.<\/p>\n<h2>How to verify your own egress during integration tests<\/h2>\n<p>From the machine that will call the API:<\/p>\n<ul>\n<li>Disable extra browser extensions that force proxies.<\/li>\n<li>Open an IP inquiry page and record the address plus ASN.<\/li>\n<li>Compare with what the partner\u2019s logs show for your test requests.<\/li>\n<li>If they see a CDN and you see a residential ISP, you are not on the same path\u2014perhaps they logged the wrong header.<\/li>\n<\/ul>\n<p>Corporate SWG products may make your inquiry page show a datacenter ASN even at home. Call that out in the ticket so nobody \u201cfixes\u201d the wrong network.<\/p>\n<h2>Sticky sessions and anycast confusion<\/h2>\n<p>Anycast CDN IPs are shared; geographic POPs answer the same address from different cities. Do not geolocate a CDN anycast address and assume the user is in that city. For user geo, use the connecting-IP header after trust validation, then apply GeoIP with the usual uncertainty.<\/p>\n<h2>Writing runbooks that survive shift changes<\/h2>\n<p>Document: where client IP is extracted, which header is authoritative, how to dump a sample request, and how engineers should capture their egress when updating firewall rules. Include a note that localhost tests and CI runners have different egress than laptops.<\/p>\n<p>When you need a clean reading of the path your browser actually takes, use <a href=\"https:\/\/www.whatismyipaddressinquire.com\/\">www.whatismyipaddressinquire.com<\/a> from that same browser profile. Compare that value to origin logs after header parsing\u2014not to the raw socket peer behind a CDN.<\/p>\n<p>Edge IPs explain infrastructure. Client egress explains people. Label them separately and half of your allowlist outages disappear.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TL;DR: Logs that show a CDN or reverse-proxy address are not the visitor\u2019s home IP. Read forwarded client headers carefully, and verify what your browser egress looks like with a direct IP address inquiry when debugging allowlists. Why edge addresses dominate modern logs Sites fronted by Cloudflare, Fastly, CloudFront, or similar terminate TLS at the&hellip;&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":36,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[12],"tags":[],"class_list":["post-164","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ip-lookups"],"_links":{"self":[{"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/comments?post=164"}],"version-history":[{"count":2,"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"predecessor-version":[{"id":218,"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/posts\/164\/revisions\/218"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/media\/36"}],"wp:attachment":[{"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whatismyipaddressinquire.com\/blog\/wp-json\/wp\/v2\/tags?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}