<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AnBoVPN</title>
    <description>The latest articles on DEV Community by AnBoVPN (@elena_zitha_anbo).</description>
    <link>https://dev.to/elena_zitha_anbo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4234661%2F35733c82-f623-464b-a221-199766a6fd0f.png</url>
      <title>DEV Community: AnBoVPN</title>
      <link>https://dev.to/elena_zitha_anbo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/elena_zitha_anbo"/>
    <language>en</language>
    <item>
      <title>Your Terminal Isn't Using Your Browser's Network: A Proxy Env Var Primer for curl, Node and Claude Code</title>
      <dc:creator>AnBoVPN</dc:creator>
      <pubDate>Mon, 30 Nov 2026 06:24:23 +0000</pubDate>
      <link>https://dev.to/elena_zitha_anbo/your-terminal-isnt-using-your-browsers-network-a-proxy-env-var-primer-for-curl-node-and-claude-3onm</link>
      <guid>https://dev.to/elena_zitha_anbo/your-terminal-isnt-using-your-browsers-network-a-proxy-env-var-primer-for-curl-node-and-claude-3onm</guid>
      <description>&lt;p&gt;You open a website in your browser and it works. You run a command in the terminal and it times out, or a CLI tool reports "unable to connect", or a login that worked a minute ago in the browser keeps failing in the app.&lt;/p&gt;

&lt;p&gt;Nothing is "broken". Your browser and your terminal are simply &lt;strong&gt;not using the same network path&lt;/strong&gt;, and most of us never check.&lt;/p&gt;

&lt;p&gt;This post is a short, practical primer: how to see what each of them is actually doing in about a minute, which tools read proxy environment variables (I tested the two I wasn't sure about), and a few Claude Code specifics from its docs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A browser, a terminal tool and a system-wide tunnel can each leave your machine through a different route.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;curl https://claude.ai/cdn-cgi/trace&lt;/code&gt; shows the address a site sees for that one connection. Run it in the terminal and compare with the same URL in your browser.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;curl&lt;/code&gt; reads &lt;code&gt;HTTPS_PROXY&lt;/code&gt;. &lt;strong&gt;Node's &lt;code&gt;fetch&lt;/code&gt; does not, unless you opt in.&lt;/strong&gt; Claude Code does read it, but &lt;strong&gt;does not support SOCKS&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Only use proxies you are authorized to use, and follow the service's terms and supported regions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  One laptop, three different routes
&lt;/h2&gt;

&lt;p&gt;Think of three separate doors out of your machine:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The browser.&lt;/strong&gt; It usually follows the operating system's proxy settings, a PAC file, or a browser extension. An extension-based proxy affects the browser only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Terminal tools.&lt;/strong&gt; Most of them ignore the OS proxy settings. They follow environment variables (&lt;code&gt;HTTPS_PROXY&lt;/code&gt;, &lt;code&gt;NO_PROXY&lt;/code&gt;…) or their own config keys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A system-wide tunnel&lt;/strong&gt; (a VPN or a TUN-style interface). It sits below both and captures everything, including your terminal.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9s7c149esv254en0e81x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9s7c149esv254en0e81x.png" alt="One laptop, three possible routes" width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you use a system-wide tunnel, the browser and the terminal usually agree. If you rely on a browser extension or a system proxy setting, they can easily disagree. That is where most "works in the browser, fails in the terminal" reports come from.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 60-second check
&lt;/h2&gt;

&lt;p&gt;Cloudflare serves a tiny diagnostic page on every site it fronts: &lt;code&gt;/cdn-cgi/trace&lt;/code&gt;. It returns plain text, including the address that Cloudflare saw for that connection.&lt;/p&gt;

&lt;p&gt;macOS / Linux:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s https://claude.ai/cdn-cgi/trace
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Windows PowerShell (use &lt;code&gt;curl.exe&lt;/code&gt;; plain &lt;code&gt;curl&lt;/code&gt; can be an alias for &lt;code&gt;Invoke-WebRequest&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;curl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exe&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;claude&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ai&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;cdn&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;cgi&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;trace&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You get something like this (values below are illustrative, trimmed):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;h=claude.ai
ip=203.0.113.25
colo=NRT
http=http/2
loc=JP
tls=TLSv1.3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The lines worth reading: &lt;code&gt;ip=&lt;/code&gt; is the address the site saw, &lt;code&gt;loc=&lt;/code&gt; is the country code, &lt;code&gt;colo=&lt;/code&gt; is the Cloudflare data center that answered.&lt;/p&gt;

&lt;p&gt;Now open the same URL in your browser and compare. Same &lt;code&gt;ip=&lt;/code&gt; and &lt;code&gt;loc=&lt;/code&gt;? Then both use the same route. Different? Then you have two routes, and any service that sees both (for example, you sign in with the browser and then call an API from the terminal) sees two different origins for one account.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi776b6ejrq8nggbrecml.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi776b6ejrq8nggbrecml.png" alt="Compare browser and terminal" width="800" height="496"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two caveats: the trace only tells you what one connection looked like at that moment, and it says nothing about whether a service will accept it. It is a diagnostic, not a verdict.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting a proxy for the terminal
&lt;/h2&gt;

&lt;p&gt;If your environment requires a proxy (a company network, a locked-down server, a test setup), terminal tools mostly look at these variables:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# macOS / Linux (bash, zsh)&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;HTTPS_PROXY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http://127.0.0.1:8080"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;HTTP_PROXY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http://127.0.0.1:8080"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;NO_PROXY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"localhost,127.0.0.1"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Windows PowerShell&lt;/span&gt;
&lt;span class="nv"&gt;$env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;HTTPS_PROXY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"http://127.0.0.1:8080"&lt;/span&gt;
&lt;span class="nv"&gt;$env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;NO_PROXY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"localhost,127.0.0.1"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="o"&gt;::&lt;/span&gt; &lt;span class="nc"&gt;Windows&lt;/span&gt; &lt;span class="n"&gt;cmd&lt;/span&gt;
&lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="no"&gt;HTTPS_PROXY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="mf"&gt;127.0&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;0.1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;8080&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few details that cause most of the confusion:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Write a full URL&lt;/strong&gt;, including &lt;code&gt;http://&lt;/code&gt;. A bare &lt;code&gt;host:port&lt;/code&gt; works in some tools and fails in others.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Variables are read at startup.&lt;/strong&gt; Changing them in a running shell does nothing for a process that is already running.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lowercase and uppercase both exist&lt;/strong&gt; (&lt;code&gt;https_proxy&lt;/code&gt; and &lt;code&gt;HTTPS_PROXY&lt;/code&gt;). Tools differ in which one wins, so set one style consistently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It only applies to that shell.&lt;/strong&gt; A tool launched from an IDE, a desktop shortcut or a service manager does not inherit what you exported in another terminal window.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NO_PROXY&lt;/code&gt; lists hosts that should skip the proxy. Forgetting it is how people end up proxying &lt;code&gt;localhost&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Who actually reads these variables?
&lt;/h2&gt;

&lt;p&gt;I assumed everything did. So I checked the two I wasn't sure about. The test: start a tiny local proxy that only counts &lt;code&gt;CONNECT&lt;/code&gt; requests, run each client against &lt;code&gt;https://claude.ai/cdn-cgi/trace&lt;/code&gt; with &lt;code&gt;HTTPS_PROXY&lt;/code&gt; pointing at it, and see how many connections the proxy receives.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// minimal CONNECT counter (full script: see the end of the post)&lt;/span&gt;
&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'connect'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;connects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                       &lt;span class="c1"&gt;// just count&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;':'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;up&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;net&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'HTTP/1.1 200 Connection Established\r\n\r\n'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;up&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;up&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pipe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pipe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;up&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Results on Node 22.23.1 and curl 8.17.0 (Windows):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Client&lt;/th&gt;
&lt;th&gt;Setup&lt;/th&gt;
&lt;th&gt;Connections seen by the proxy&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;curl&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;HTTPS_PROXY&lt;/code&gt; set&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;curl&lt;/td&gt;
&lt;td&gt;nothing set&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Node &lt;code&gt;fetch&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;HTTPS_PROXY&lt;/code&gt; set&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;0&lt;/strong&gt; (ignored)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Node &lt;code&gt;fetch&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;HTTPS_PROXY&lt;/code&gt; + &lt;code&gt;NODE_USE_ENV_PROXY=1&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxwduzjaumhbazj7lqf1z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxwduzjaumhbazj7lqf1z.png" alt="Which clients honor HTTPS_PROXY?" width="800" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So a script that works through your proxy with &lt;code&gt;curl&lt;/code&gt; can silently bypass it when the same request is made with Node's built-in &lt;code&gt;fetch&lt;/code&gt;. The Node docs say &lt;code&gt;NODE_USE_ENV_PROXY=1&lt;/code&gt; was added in v24.0.0 and &lt;code&gt;--use-env-proxy&lt;/code&gt; in v24.5.0; it also worked on my 22.x build, with an "experimental" warning. Both are marked as under active development, so check your version.&lt;/p&gt;

&lt;p&gt;The Node docs add a sentence I think is worth repeating: this is meant for reaching external networks through &lt;em&gt;authorized&lt;/em&gt; proxies, for example when a firewall requires one. It is not for hiding traffic or evading network policy.&lt;/p&gt;

&lt;p&gt;For other tools (git, pip, npm and so on), the usual pattern is "reads the standard variables or has its own config key", but the details differ by tool and version, so check each tool's documentation rather than assuming.&lt;/p&gt;

&lt;h2&gt;
  
  
  Claude Code specifics
&lt;/h2&gt;

&lt;p&gt;Per Claude Code's &lt;a href="https://code.claude.com/docs/en/network-config" rel="noopener noreferrer"&gt;network configuration docs&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It respects the standard variables &lt;code&gt;HTTPS_PROXY&lt;/code&gt;, &lt;code&gt;HTTP_PROXY&lt;/code&gt; and &lt;code&gt;NO_PROXY&lt;/code&gt;. Lowercase variants work too, and it uses the first one set in this order: &lt;code&gt;https_proxy&lt;/code&gt;, &lt;code&gt;HTTPS_PROXY&lt;/code&gt;, &lt;code&gt;http_proxy&lt;/code&gt;, &lt;code&gt;HTTP_PROXY&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not support SOCKS proxies.&lt;/strong&gt; If your proxy offers both HTTP and SOCKS5 ports, use the HTTP one.&lt;/li&gt;
&lt;li&gt;Variables exported in your shell are read once at startup.&lt;/li&gt;
&lt;li&gt;To check what it loaded, run &lt;code&gt;/status&lt;/code&gt; in an interactive session and look at the &lt;strong&gt;Proxy&lt;/strong&gt; row, or start it with &lt;code&gt;claude --debug&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If you run background agents, they are hosted by a shared supervisor process that inherits whichever shell started it first. Put the variables in the &lt;code&gt;env&lt;/code&gt; block of &lt;code&gt;~/.claude/settings.json&lt;/code&gt; instead of exporting them in one shell.&lt;/li&gt;
&lt;li&gt;If your proxy requires credentials, they can go in the URL, but avoid hardcoding passwords in scripts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fukmtn9f83845443xxxf3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fukmtn9f83845443xxxf3.png" alt="Claude Code and proxies" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also relevant: if your company proxy inspects TLS, you may need &lt;code&gt;NODE_EXTRA_CA_CERTS&lt;/code&gt; pointing at the corporate root certificate.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short debugging checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Run the trace in the browser and in the terminal. Same &lt;code&gt;ip=&lt;/code&gt;/&lt;code&gt;loc=&lt;/code&gt;?&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;env | grep -i proxy&lt;/code&gt; (or &lt;code&gt;Get-ChildItem Env: | Where-Object Name -match proxy&lt;/code&gt; in PowerShell). What is actually set?&lt;/li&gt;
&lt;li&gt;Is the proxy URL complete, with scheme and port?&lt;/li&gt;
&lt;li&gt;Does the tool support the proxy type? (SOCKS5 vs HTTP.)&lt;/li&gt;
&lt;li&gt;Was the tool started &lt;em&gt;after&lt;/em&gt; you set the variables, from the same shell?&lt;/li&gt;
&lt;li&gt;Is it a Node &lt;code&gt;fetch&lt;/code&gt; script on an older Node? Try &lt;code&gt;NODE_USE_ENV_PROXY=1&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Still odd? Compare time zone, language and DNS resolver location with the address you expect. A mismatch there is a separate kind of inconsistency.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk0ecaaw43p79adbrltuf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk0ecaaw43p79adbrltuf.png" alt="Debugging checklist" width="800" height="588"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Be careful with what a proxy is for
&lt;/h2&gt;

&lt;p&gt;Use proxies and networks you are authorized to use. A proxy does not change which countries a service supports, and each service sets its own terms. If a region is not supported, the fix is to read the terms, not to hunt for another route.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The full experiment script&lt;/strong&gt; (Node 22+; it starts a local counter, so it needs no external proxy):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Which clients honor HTTPS_PROXY? Start a local CONNECT counter, run each client against it, count connections.&lt;/span&gt;
&lt;span class="c1"&gt;// Usage: node proxy-experiment.mjs   (Node 22+; no external proxy needed; the counter only logs "host:port", never content)&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'node:http'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;net&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'node:net'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;spawn&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'node:child_process'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Must be async: the proxy runs inside this process, so a blocking spawnSync would freeze it too.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;spawn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stdio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'ignore'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ignore'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'pipe'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stderr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'data'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;kill&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'close'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nf"&gt;clearTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stderr&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;connects&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;proxy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createServer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeHead&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;405&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;end&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'connect'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;connects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// just count&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;':'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;up&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;net&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'HTTP/1.1 200 Connection Established\r\n\r\n'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;up&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;up&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pipe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pipe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;up&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;up&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'error'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;destroy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'error'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;up&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;destroy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;listen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'127.0.0.1'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`http://127.0.0.1:${proxy.address().port}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;TARGET&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'https://claude.ai/cdn-cgi/trace'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;isWin&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;platform&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'win32'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;curl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;isWin&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s1"&gt;'curl.exe'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'curl'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sink&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;isWin&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s1"&gt;'NUL'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'/dev/null'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;nodeFetch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`fetch('${TARGET}').then(r=&amp;gt;r.text()).then(()=&amp;gt;process.exit(0)).catch(e=&amp;gt;{console.error(e.cause?.code||e.message);process.exit(1)})`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cases&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'curl, HTTPS_PROXY set'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;curl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'-s'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'-m'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'20'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'-o'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sink&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;TARGET&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="no"&gt;HTTPS_PROXY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'curl, nothing set'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;curl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'-s'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'-m'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'20'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'-o'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sink&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;TARGET&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'Node fetch, HTTPS_PROXY set'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;execPath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'-e'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nodeFetch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="no"&gt;HTTPS_PROXY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'Node fetch, HTTPS_PROXY + NODE_USE_ENV_PROXY=1'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;execPath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'-e'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nodeFetch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="no"&gt;HTTPS_PROXY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;NODE_USE_ENV_PROXY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'1'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`node ${process.version}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;cases&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;connects&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;clean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="no"&gt;HTTP_PROXY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;http_proxy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;HTTPS_PROXY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;https_proxy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;ALL_PROXY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;all_proxy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;clean&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${name.padEnd(48)} connections seen by proxy: ${connects.length}  exit: ${r.status}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;em&gt;This article was created with the help of AI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>What a Website Really Knows About Your IP Address (And How to Check It Yourself)</title>
      <dc:creator>AnBoVPN</dc:creator>
      <pubDate>Thu, 26 Nov 2026 00:58:42 +0000</pubDate>
      <link>https://dev.to/elena_zitha_anbo/what-a-website-really-knows-about-your-ip-address-and-how-to-check-it-yourself-47if</link>
      <guid>https://dev.to/elena_zitha_anbo/what-a-website-really-knows-about-your-ip-address-and-how-to-check-it-yourself-47if</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An IP address is a &lt;strong&gt;network-layer label&lt;/strong&gt;, not an identity. Almost everything a website "knows" about you from it is &lt;em&gt;inference&lt;/em&gt;: which organization announces the address (the ASN), a rough location from a geolocation database, and a guessed "type" (residential, mobile, datacenter…).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Registry country ≠ where packets enter ≠ where the user sits.&lt;/strong&gt; &lt;code&gt;1.1.1.1&lt;/code&gt; is registered to an Australian lab, announced by an American company, and served from whichever edge is closest to you. We'll prove that with two &lt;code&gt;curl&lt;/code&gt; commands.&lt;/li&gt;
&lt;li&gt;Browsers and terminals frequently reach the internet &lt;strong&gt;through different paths&lt;/strong&gt;. "My &lt;code&gt;curl&lt;/code&gt; says one thing and my browser says another" is usually a proxy-variable or routing issue, not a bug.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WebRTC&lt;/strong&gt; and &lt;strong&gt;DNS&lt;/strong&gt; are the two classic side channels that can show a path different from the one your HTTP traffic takes. They are easy to inspect yourself, and we'll do it with ~20 lines of code.&lt;/li&gt;
&lt;li&gt;No client-side checker can see a service's server-side risk model. Treat any "score" as a &lt;em&gt;diagnostic hint&lt;/em&gt;, not a verdict.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This post is a practical tour, aimed at developers who have ever asked "why does this site think I'm somewhere else?", "why was my CI runner challenged with a CAPTCHA?", or "why do two lookup services disagree about the same IP?". Everything below can be reproduced with &lt;code&gt;curl&lt;/code&gt;, &lt;code&gt;nslookup&lt;/code&gt;/&lt;code&gt;dig&lt;/code&gt;, a browser console and a short Python script.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Why a developer should care about this
&lt;/h2&gt;

&lt;p&gt;You don't need to build anti-abuse systems to run into IP reputation. Typical symptoms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sign-up or login works from your laptop but is challenged from a cloud VM or a CI runner.&lt;/li&gt;
&lt;li&gt;A documentation page, a download or an API returns a region-specific response, and the region is &lt;em&gt;wrong&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;You test a geo-aware feature, and three different "IP lookup" websites give you three different cities.&lt;/li&gt;
&lt;li&gt;A request from your terminal and the same request from your browser are seen as different clients, with different IPs and even different countries.&lt;/li&gt;
&lt;li&gt;A mobile user's IP is "in another state", and your analytics say the audience is in the wrong place.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of these come from the same fact: &lt;strong&gt;the IP address is the only identifying value the server is guaranteed to receive, but it says very little by itself&lt;/strong&gt;. Everything else is derived by lookups, heuristics and cross-checks. Understanding those derivations makes debugging far less mysterious.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. What the server literally sees
&lt;/h2&gt;

&lt;p&gt;At the transport layer, a server sees:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;client 198.51.100.23:51514  ──TCP + TLS──▶  server 203.0.113.10:443
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;strong&gt;source IP address&lt;/strong&gt; (and port) of the connection is the one property the client cannot simply claim. Everything else, including HTTP headers like &lt;code&gt;User-Agent&lt;/code&gt;, &lt;code&gt;Accept-Language&lt;/code&gt; or &lt;code&gt;Referer&lt;/code&gt;, is &lt;em&gt;asserted by the client&lt;/em&gt; and can be set to anything.&lt;/p&gt;

&lt;p&gt;Two practical consequences:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Behind a CDN or reverse proxy, the "source IP" your application sees is the proxy's.&lt;/strong&gt; The real client address arrives in a header such as &lt;code&gt;X-Forwarded-For&lt;/code&gt;, &lt;code&gt;Forwarded&lt;/code&gt;, or a provider-specific header. These headers are only trustworthy if your edge sets or overwrites them and your application ignores any value that arrives from outside. If you read &lt;code&gt;X-Forwarded-For&lt;/code&gt; from an unauthenticated request without that guarantee, anyone can spoof the "client IP" in your rate limiter and logs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One IP is not one person.&lt;/strong&gt; Three common reasons:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NAT&lt;/strong&gt;: your home router shares one public IPv4 address among every device in the house.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Carrier-grade NAT (CGNAT)&lt;/strong&gt;: ISPs, especially mobile carriers, put &lt;em&gt;many subscribers&lt;/em&gt; behind one public address. The shared address space &lt;code&gt;100.64.0.0/10&lt;/code&gt; (RFC 6598) exists for exactly this. If the WAN address shown in your router's admin page is in that range (or in a private range like &lt;code&gt;10.0.0.0/8&lt;/code&gt;), your ISP is NAT-ing you and the public IP isn't "yours".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IPv6 prefixes&lt;/strong&gt;: a subscriber typically receives a whole prefix (commonly a &lt;code&gt;/56&lt;/code&gt; or &lt;code&gt;/64&lt;/code&gt;), not a single address. Per-address reputation for IPv6 is meaningless, so systems usually aggregate at the prefix level.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;IPv4 has only about 4.3 billion addresses, which is why NAT is everywhere and why the same address often serves very different people over a day or a year. Keep this in mind whenever somebody treats an IP as a stable identity.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. From an IP to an organization: BGP, ASNs and RDAP
&lt;/h2&gt;

&lt;p&gt;The first useful question you can ask about an IP is &lt;strong&gt;"who announces it?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The internet is a network of networks. Each one is an &lt;strong&gt;Autonomous System (AS)&lt;/strong&gt; with a number, an &lt;strong&gt;ASN&lt;/strong&gt;, such as &lt;code&gt;AS13335&lt;/code&gt;. ASes use &lt;strong&gt;BGP&lt;/strong&gt; (RFC 4271) to announce which IP prefixes they can deliver traffic to. If you look up an address in the global routing table, you find the prefix that covers it and the &lt;strong&gt;origin AS&lt;/strong&gt; that announces it.&lt;/p&gt;

&lt;p&gt;Separately, IP address blocks are &lt;em&gt;allocated and registered&lt;/em&gt; through five &lt;strong&gt;Regional Internet Registries&lt;/strong&gt;: AFRINIC, APNIC, ARIN, LACNIC and RIPE NCC. The registry keeps a record: who holds the block, a country code, contact details, and so on. Modern registries expose this over &lt;strong&gt;RDAP&lt;/strong&gt; (RFC 9082, RFC 9083), a JSON-over-HTTPS successor to the old &lt;code&gt;whois&lt;/code&gt; protocol.&lt;/p&gt;

&lt;p&gt;So there are two independent sources of truth:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who &lt;em&gt;registered&lt;/em&gt; this block, and in which country?&lt;/td&gt;
&lt;td&gt;RIR registry&lt;/td&gt;
&lt;td&gt;RDAP / &lt;code&gt;whois&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who &lt;em&gt;announces&lt;/em&gt; it on the internet right now?&lt;/td&gt;
&lt;td&gt;BGP routing table&lt;/td&gt;
&lt;td&gt;RIPEstat, &lt;code&gt;bgp.tools&lt;/code&gt;, looking glasses&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Hands-on: &lt;code&gt;1.1.1.1&lt;/code&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Registry view (rdap.org redirects to the right registry; send a User-Agent)&lt;/span&gt;
curl -sL -A &lt;span class="s2"&gt;"Mozilla/5.0"&lt;/span&gt; https://rdap.org/ip/1.1.1.1

&lt;span class="c"&gt;# Routing view (RIPEstat)&lt;/span&gt;
curl -s &lt;span class="s2"&gt;"https://stat.ripe.net/data/prefix-overview/data.json?resource=1.1.1.0/24"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The RDAP response is a big JSON document. The interesting fields, abbreviated:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"APNIC-LABS"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"handle"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1.1.1.0 - 1.1.1.255"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ASSIGNED PORTABLE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"startAddress"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1.1.1.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"endAddress"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1.1.1.255"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"country"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"AU"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the routing view (abbreviated) says the prefix is announced by:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"asn"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;13335&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"holder"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"CLOUDFLARENET - Cloudflare, Inc."&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So &lt;code&gt;1.1.1.1&lt;/code&gt; is &lt;strong&gt;registered to APNIC Labs, country &lt;code&gt;AU&lt;/code&gt;&lt;/strong&gt;, but &lt;strong&gt;announced by Cloudflare (AS13335)&lt;/strong&gt;, and, because it is &lt;strong&gt;anycast&lt;/strong&gt;, the packets actually terminate at whichever Cloudflare location is closest to &lt;em&gt;you&lt;/em&gt; on the network. Three different "locations" for one address, all of them correct answers to different questions. (Output captured on 2026-11-25; registry data changes over time.)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx60ppdb54htx97eyob2l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx60ppdb54htx97eyob2l.png" alt="Figure 1: One address, three different answers: who holds it on paper, who announces it, and where packets actually land." width="800" height="362"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 1: One address, three different answers: who holds it on paper, who announces it, and where packets actually land.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That distinction is the key to understanding most "wrong location" reports: &lt;strong&gt;a registry's country code is a statement about paperwork, not about where the machine is.&lt;/strong&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  4. How geolocation databases guess a location
&lt;/h2&gt;

&lt;p&gt;Commercial and free "IP geolocation" databases don't read GPS coordinates off your router. They build a model from multiple weak signals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Registry data&lt;/strong&gt; (RDAP/whois records), including country and organization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operator-published feeds.&lt;/strong&gt; RFC 8805 defines a simple CSV format ("geofeed") that an ISP can publish to say which prefixes are in which country, region and city. Whether a given database consumes a given feed varies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network measurements&lt;/strong&gt;: round-trip times from probes at known locations, traceroute hints, and router hostnames that embed airport or city codes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Partner and user-contributed data&lt;/strong&gt;, such as locations observed alongside logins, apps or Wi-Fi data. The details are vendor-specific and rarely documented.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Routing and topology&lt;/strong&gt; (which AS, which upstream, which internet exchange).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The output is a &lt;em&gt;probabilistic&lt;/em&gt; answer. In practice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Country-level&lt;/strong&gt; answers are usually reliable for ordinary consumer IPs, and noticeably less so for anycast, global backbones and corporate networks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;City-level&lt;/strong&gt; answers vary a lot. Mobile networks (traffic exits at a regional gateway, often far from the user), small ISPs and recently reassigned blocks are all prone to errors.&lt;/li&gt;
&lt;li&gt;Databases &lt;strong&gt;lag&lt;/strong&gt;. When a block is reassigned or an ISP re-homes users, it can take days or weeks for the change to propagate across vendors, and different vendors update at different times. That's why two lookup sites can disagree about the same address.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you build a geo-aware feature, design it so a wrong guess is cheap: let the user correct the region, never hard-block purely on a city-level lookup, and prefer signals the user controls (account country, billing address, an explicit language/region picker) over inferred ones.&lt;/p&gt;


&lt;h2&gt;
  
  
  5. How an IP gets labelled "residential", "mobile" or "datacenter"
&lt;/h2&gt;

&lt;p&gt;Many services want to know not just &lt;em&gt;where&lt;/em&gt; an address is but &lt;em&gt;what kind of network&lt;/em&gt; it belongs to. This is the same pattern across vendors: combine several signals into a type label and sometimes a risk score.&lt;/p&gt;

&lt;p&gt;Commonly used signals:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;What it tells you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;ASN and organization name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;An AS owned by a consumer ISP vs. a hosting company vs. a university. The single strongest signal.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Published cloud ranges&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Major cloud providers publish their address ranges (for example, AWS ships a public &lt;code&gt;ip-ranges.json&lt;/code&gt;), so classifying those as "datacenter" is trivial.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Reverse DNS (PTR) patterns&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Hostnames such as &lt;code&gt;203-0-113-7.dyn.example-isp.net&lt;/code&gt; look like dynamic consumer pools, while &lt;code&gt;vps-12345.compute.example.net&lt;/code&gt; looks like hosting. &lt;em&gt;(Illustrative hostnames.)&lt;/em&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Prefix size and allocation type&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A /24 assigned to a hosting company vs. a large block split across households.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Observed behavior&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Abuse reports, blocklist listings, open-port scans (open proxies), and traffic patterns over time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Network type hints&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Carrier ASNs → "mobile"; university/government ASNs → "education"/"government".&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The usual output categories look like:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Label&lt;/th&gt;
&lt;th&gt;Typical meaning&lt;/th&gt;
&lt;th&gt;Why it matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;ISP / residential&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Consumer broadband&lt;/td&gt;
&lt;td&gt;Treated as "ordinary users" by most systems&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mobile&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Cellular carrier, usually CGNAT&lt;/td&gt;
&lt;td&gt;Many users share one address; reputation is noisy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Hosting / datacenter&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Cloud and VPS providers&lt;/td&gt;
&lt;td&gt;Heavily used by automation, so often subject to stricter checks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Business&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Corporate egress&lt;/td&gt;
&lt;td&gt;Shared by many employees&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Education / government&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Campus and institutional networks&lt;/td&gt;
&lt;td&gt;Large shared pools&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpo43aqtjx5xdc3dxrlp9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpo43aqtjx5xdc3dxrlp9.png" alt="Figure 2: How several weak signals become a “type” label, and why a label is a prior rather than a verdict." width="800" height="448"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 2: How several weak signals become a “type” label, and why a label is a prior rather than a verdict.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Three honest caveats if you consume or build such data:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;It's a heuristic.&lt;/strong&gt; The same IP can be labelled differently by different vendors, and a block can change type when it's resold or re-assigned.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shared addresses punish innocent users.&lt;/strong&gt; CGNAT, offices, universities, hotels and coffee shops all concentrate many people behind one IP. Anything that treats "IP reputation" as a per-person verdict will have false positives.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A label is a prior, not a decision.&lt;/strong&gt; Sensible systems use it to decide &lt;em&gt;how much additional verification&lt;/em&gt; to ask for (a challenge, a second factor, rate limits), not to make a final accept/reject call on its own.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you run a service, this is also a design hint: don't make irreversible decisions on an IP-derived label alone, and give legitimate users on "bad neighborhoods" a path to prove they're fine.&lt;/p&gt;


&lt;h2&gt;
  
  
  6. Beyond the IP: consistency is what stands out
&lt;/h2&gt;

&lt;p&gt;An IP is just one input. Browsers hand over many other values, and what often looks unusual is not any single value but &lt;strong&gt;inconsistency&lt;/strong&gt; between them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Intl.DateTimeFormat().resolvedOptions().timeZone&lt;/code&gt; (the browser's time zone) vs. the time zone of the IP's location.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;navigator.languages&lt;/code&gt; vs. the country of the IP.&lt;/li&gt;
&lt;li&gt;The set of IP addresses revealed through &lt;strong&gt;WebRTC&lt;/strong&gt; vs. the address of the HTTP connection.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;DNS resolver&lt;/strong&gt; that handled your lookups vs. the network you appear to be on.&lt;/li&gt;
&lt;li&gt;Transport-level fingerprints (TLS and HTTP/2 characteristics) vs. the claimed &lt;code&gt;User-Agent&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most users have &lt;em&gt;some&lt;/em&gt; mismatch for innocent reasons: a traveler with a home-country browser language, a developer testing from a cloud VM, a remote worker on a corporate tunnel. That's why robust systems treat mismatches as weak evidence that raises the level of scrutiny, rather than a conviction.&lt;/p&gt;

&lt;p&gt;For you as a developer, the takeaway is practical: &lt;strong&gt;when two environments behave differently, diff &lt;em&gt;all&lt;/em&gt; these dimensions&lt;/strong&gt;, not just the IP. The next two sections cover the two that people most often overlook.&lt;/p&gt;


&lt;h2&gt;
  
  
  7. WebRTC: the other way a browser can reveal an address
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;WebRTC&lt;/strong&gt; lets browsers establish peer-to-peer media and data connections. To do that, each side needs to learn the addresses where it can be reached, a process called &lt;strong&gt;ICE&lt;/strong&gt; (RFC 8445). The browser gathers &lt;strong&gt;candidates&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Candidate type&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;host&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;An address on a local interface (your LAN address)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;srflx&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;"Server reflexive": your public address as seen by a &lt;strong&gt;STUN&lt;/strong&gt; server (RFC 8489)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;relay&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;An address allocated on a &lt;strong&gt;TURN&lt;/strong&gt; relay&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The part that matters here is &lt;code&gt;srflx&lt;/code&gt;: the browser sends a UDP packet to a STUN server, and the server answers with the source address it observed. That bypasses the &lt;em&gt;HTTP&lt;/em&gt; layer completely, so it can differ from what a website sees for your regular page loads.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnh6wlftuo5ti43sx5jwr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnh6wlftuo5ti43sx5jwr.png" alt="Figure 3: HTTP and WebRTC can take different paths, so the address a website sees and the address a STUN server sees may differ." width="800" height="416"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 3: HTTP and WebRTC can take different paths, so the address a website sees and the address a STUN server sees may differ.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Two things reduce what is exposed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Most major browsers now &lt;strong&gt;hide local &lt;code&gt;host&lt;/code&gt; addresses behind mDNS names&lt;/strong&gt; (random &lt;code&gt;*.local&lt;/code&gt; hostnames) unless the page has been granted camera/microphone permission. This protects your LAN address, not your public one.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;public&lt;/strong&gt; &lt;code&gt;srflx&lt;/code&gt; address is still discoverable by any page that creates a &lt;code&gt;RTCPeerConnection&lt;/code&gt; and points it at a STUN server. No permission prompt is required.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  See it yourself
&lt;/h3&gt;

&lt;p&gt;Paste this in your browser's developer console:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;gatherCandidates&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timeoutMs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;4000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;RTCPeerConnection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;iceServers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"stun:stun.l.google.com:19302"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;done&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;pc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;pc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createDataChannel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"probe"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;pc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onicecandidate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="c1"&gt;// "candidate:&amp;lt;foundation&amp;gt; &amp;lt;component&amp;gt; &amp;lt;protocol&amp;gt; &amp;lt;priority&amp;gt; &amp;lt;address&amp;gt; &amp;lt;port&amp;gt; typ &amp;lt;type&amp;gt; ..."&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;protocol&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;pc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onicegatheringstatechange&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iceGatheringState&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"complete"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;done&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;pc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createOffer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;pc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setLocalDescription&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;done&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeoutMs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;gatherCandidates&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll typically see one or more &lt;code&gt;.local&lt;/code&gt; host candidates and one &lt;code&gt;srflx&lt;/code&gt; row with your public address. Now compare that &lt;code&gt;srflx&lt;/code&gt; address with what the HTTP side shows, for example by opening &lt;code&gt;https://www.cloudflare.com/cdn-cgi/trace&lt;/code&gt; in a tab.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Same address&lt;/strong&gt;: your UDP and HTTP traffic leave through the same path. Expected for a plain connection or for a VPN that tunnels everything at the network layer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Different address&lt;/strong&gt;: the two protocols take different routes. A frequent cause is an &lt;strong&gt;HTTP/SOCKS proxy configured in the browser (or a browser extension)&lt;/strong&gt;. Proxies carry the browser's TCP/HTTP requests, but WebRTC's UDP traffic can go out directly unless the browser is told otherwise.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If WebRTC exposing a different address is a problem for your use case, the knobs are browser-specific. Chrome has an enterprise policy, &lt;code&gt;WebRtcIPHandling&lt;/code&gt;, with values such as &lt;code&gt;default_public_interface_only&lt;/code&gt; and &lt;code&gt;disable_non_proxied_udp&lt;/code&gt;; Firefox exposes preferences such as &lt;code&gt;media.peerconnection.ice.default_address_only&lt;/code&gt; under &lt;code&gt;about:config&lt;/code&gt;. Check the current documentation for your browser version, and be aware that disabling WebRTC entirely breaks video calls and some web apps.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. DNS: who is resolving your names?
&lt;/h2&gt;

&lt;p&gt;Before any HTTP request, the browser (or your OS) has to turn a hostname into an IP address, and &lt;strong&gt;the resolver that does it learns which names you look up&lt;/strong&gt;. A "DNS leak" is the situation where lookups go to a resolver &lt;em&gt;other than the one you intended&lt;/em&gt;, typically your ISP's, while your web traffic goes elsewhere.&lt;/p&gt;

&lt;p&gt;Common reasons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A VPN or proxy that carries your TCP/UDP flows but leaves the system resolver configuration untouched.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Split tunneling&lt;/strong&gt; that routes only some apps or domains through the tunnel.&lt;/li&gt;
&lt;li&gt;Browsers using &lt;strong&gt;DNS over HTTPS (DoH, RFC 8484)&lt;/strong&gt; to a provider of &lt;em&gt;their&lt;/em&gt; choosing, independent of the OS resolver.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IPv6&lt;/strong&gt; resolver addresses advertised by the router that the tunnel doesn't cover.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcrcw547mp2gy98nqeswj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcrcw547mp2gy98nqeswj.png" alt="Figure 4: Three places your DNS queries can end up, and two commands that reveal which resolver actually reaches the internet." width="800" height="445"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 4: Three places your DNS queries can end up, and two commands that reveal which resolver actually reaches the internet.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Find out which resolver reaches the internet for you
&lt;/h3&gt;

&lt;p&gt;Authoritative servers can report back the address of whoever queried them. A few well-known names do exactly that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Akamai: returns the address of the recursive resolver that asked&lt;/span&gt;
nslookup whoami.akamai.net
dig +short whoami.akamai.net

&lt;span class="c"&gt;# Google: returns the resolver address, and (if the resolver sends it) the client-subnet hint&lt;/span&gt;
nslookup -type=TXT o-o.myaddr.l.google.com ns1.google.com
dig +short TXT o-o.myaddr.l.google.com @ns1.google.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In my run of the Google query, the answer contained two TXT strings: one with the resolver's address, and a second beginning with &lt;code&gt;edns0-client-subnet&lt;/code&gt; followed by a network prefix. That second line is &lt;strong&gt;EDNS Client Subnet (ECS, RFC 7871)&lt;/strong&gt;: some resolvers forward a truncated version of the client's network (for example, a &lt;code&gt;/24&lt;/code&gt;) to authoritative servers so CDNs can pick a nearby edge. It's a feature with a privacy trade-off, and a good reminder that &lt;em&gt;"which resolver"&lt;/em&gt; is not the only thing DNS reveals.&lt;/p&gt;

&lt;p&gt;How to read the result:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The address belongs to your ISP, and you expected a VPN or corporate resolver → queries are bypassing it.&lt;/li&gt;
&lt;li&gt;The address belongs to a public resolver such as Cloudflare or Google → not automatically a problem; it only matters if your threat model or policy says it should be a specific resolver.&lt;/li&gt;
&lt;li&gt;Results differ between the terminal and the browser → the browser is using its own DoH settings, or the two sit on different routes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Be precise about what you're testing: a "leak" is relative to &lt;strong&gt;what you intended&lt;/strong&gt;. There is nothing inherently wrong with using a public resolver, but it's worth knowing which one you're using.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. "My terminal and my browser disagree"
&lt;/h2&gt;

&lt;p&gt;A very common developer experience: the browser says you're in country A and &lt;code&gt;curl&lt;/code&gt; says country B. Several unrelated mechanisms can cause this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mechanism&lt;/th&gt;
&lt;th&gt;Browser&lt;/th&gt;
&lt;th&gt;CLI tools&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OS-level / system proxy setting or PAC file&lt;/td&gt;
&lt;td&gt;Usually honored&lt;/td&gt;
&lt;td&gt;Often ignored&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;HTTP_PROXY&lt;/code&gt;, &lt;code&gt;HTTPS_PROXY&lt;/code&gt;, &lt;code&gt;ALL_PROXY&lt;/code&gt;, &lt;code&gt;NO_PROXY&lt;/code&gt; env vars&lt;/td&gt;
&lt;td&gt;Ignored&lt;/td&gt;
&lt;td&gt;Honored by many tools (&lt;code&gt;curl&lt;/code&gt;, Python &lt;code&gt;urllib&lt;/code&gt;/&lt;code&gt;requests&lt;/code&gt;, Go's default transport, …)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network-level tunnel (TUN/VPN adapter)&lt;/td&gt;
&lt;td&gt;Affected&lt;/td&gt;
&lt;td&gt;Affected, since it sits below both&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Per-app routing / split tunneling&lt;/td&gt;
&lt;td&gt;Depends on the app&lt;/td&gt;
&lt;td&gt;Depends on the app&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Browser extensions that proxy traffic&lt;/td&gt;
&lt;td&gt;Affected&lt;/td&gt;
&lt;td&gt;Not affected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Containers / WSL2 / VMs&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;Often sit behind their own NAT, and whether they follow the host's VPN depends on the networking mode and the VPN client&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Notes worth remembering:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;curl&lt;/code&gt; reads proxy environment variables and, on most platforms, does &lt;strong&gt;not&lt;/strong&gt; use the OS-level proxy setting. Python's &lt;code&gt;urllib&lt;/code&gt; additionally reads system proxy settings on Windows and macOS. Node.js's built-in &lt;code&gt;fetch&lt;/code&gt; has historically ignored proxy variables (newer releases added opt-in support), so check your runtime version.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;network-level&lt;/strong&gt; tunnel affects everything on the machine; a &lt;strong&gt;proxy&lt;/strong&gt; only affects programs that choose to use it.&lt;/li&gt;
&lt;li&gt;Tools that don't cooperate with your proxy can reveal your "real" route. That's useful for diagnosis, and it explains why a CI job and a browser session on the same machine can look like two different clients.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Funhjhmah97m9xfgwbkew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Funhjhmah97m9xfgwbkew.png" alt="Figure 5: A browser, a terminal and a container on the same machine can leave through different routes." width="800" height="416"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 5: A browser, a terminal and a container on the same machine can leave through different routes.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  A tiny script to compare paths
&lt;/h3&gt;

&lt;p&gt;Cloudflare serves a plain-text diagnostic at &lt;code&gt;/cdn-cgi/trace&lt;/code&gt;. It includes the address and country it sees, plus the data center that served you:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s https://www.cloudflare.com/cdn-cgi/trace
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Abbreviated output (values redacted):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="na"&gt;ip&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="no"&gt;IP&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;visit_scheme&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;
&lt;span class="na"&gt;colo&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;LAX&lt;/span&gt;
&lt;span class="na"&gt;http&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mf"&gt;1.1&lt;/span&gt;
&lt;span class="na"&gt;loc&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;US&lt;/span&gt;
&lt;span class="na"&gt;tls&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;TLSv1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;
&lt;span class="na"&gt;warp&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;off&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(PowerShell: &lt;code&gt;irm https://www.cloudflare.com/cdn-cgi/trace&lt;/code&gt;.) &lt;code&gt;colo&lt;/code&gt; is the three-letter code of the serving location, and &lt;code&gt;loc&lt;/code&gt; is the country Cloudflare associates with the address. Here's a small Python script that prints the interesting parts, so you can run it from any environment (laptop, container, CI runner, remote shell) and compare:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;#!/usr/bin/env python3&lt;/span&gt;
&lt;span class="s2"&gt;"""Print the public IP, country and edge location as Cloudflare sees them."""&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;trace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://www.cloudflare.com/cdn-cgi/trace"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"User-Agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ip-diagnostics/1.0"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;urlopen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4096&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"replace"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"="&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;splitlines&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="s2"&gt;"="&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;info&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;trace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;exc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="c1"&gt;# network errors, proxy errors, timeouts...&lt;/span&gt;
        &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"request failed: {exc}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"ip={info.get('ip')}  loc={info.get('loc')}  colo={info.get('colo')}  warp={info.get('warp')}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it in each place you care about, and compare with what your browser sees at the same URL. If the three outputs differ, you've located your routing difference without guessing.&lt;/p&gt;

&lt;p&gt;Two flags that are easy to forget:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -4 -s https://www.cloudflare.com/cdn-cgi/trace   &lt;span class="c"&gt;# force IPv4&lt;/span&gt;
curl -6 -s https://www.cloudflare.com/cdn-cgi/trace   &lt;span class="c"&gt;# force IPv6&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A tunnel that only handles IPv4 can leave IPv6 traffic on the direct path (an "IPv6 leak"). Checking both families is a cheap way to catch it.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. A practical debugging checklist
&lt;/h2&gt;

&lt;p&gt;When two environments disagree about "where you are" or "what you are":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Capture the HTTP view&lt;/strong&gt; from each environment (&lt;code&gt;/cdn-cgi/trace&lt;/code&gt; or an IP echo service). Compare &lt;code&gt;ip&lt;/code&gt;, &lt;code&gt;loc&lt;/code&gt; and &lt;code&gt;colo&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Force each address family&lt;/strong&gt; (&lt;code&gt;curl -4&lt;/code&gt; / &lt;code&gt;curl -6&lt;/code&gt;) and compare. Different results mean one of them isn't covered by your tunnel/proxy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Identify the owner&lt;/strong&gt; of the address with RDAP and the routing view (section 3). Is it an ISP, a hosting provider, a cloud?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look at the reverse DNS&lt;/strong&gt; (&lt;code&gt;nslookup &amp;lt;ip&amp;gt;&lt;/code&gt; / &lt;code&gt;dig -x &amp;lt;ip&amp;gt;&lt;/code&gt;) for hints such as "dyn", "pool", "static", "cloud".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check WebRTC candidates&lt;/strong&gt; in the browser (section 7) and compare the &lt;code&gt;srflx&lt;/code&gt; address with the HTTP-side address.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check which DNS resolver is used&lt;/strong&gt; by the terminal and by the browser (section 8). Look at the browser's DoH setting too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compare time zone and language&lt;/strong&gt;: &lt;code&gt;Intl.DateTimeFormat().resolvedOptions().timeZone&lt;/code&gt; and &lt;code&gt;navigator.languages&lt;/code&gt; against the location of the IP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-test after changes, and wait out caches.&lt;/strong&gt; Geolocation databases and reputation lists lag, so a fix may not be visible everywhere immediately. Different vendors update at different speeds.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Write the result of each step next to the environment it came from. The pattern usually jumps out within five minutes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuffldioaab8vupuro4mq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuffldioaab8vupuro4mq.png" alt="Figure 6: The eight-step checklist as a one-page reference." width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 6: The eight-step checklist as a one-page reference.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  11. What none of this can tell you
&lt;/h2&gt;

&lt;p&gt;It's worth being explicit about the limits of any browser-side checker, including the ones I mention below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You can't see a service's server-side decision.&lt;/strong&gt; Whether a particular service accepts a sign-up, flags a login or restricts a feature depends on internal models, account history, payment details, device signals and policy that no external tool can observe. A "score" from a checker is an estimate built from public data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Terms of service and regional availability are the service's call.&lt;/strong&gt; If a service isn't offered in a region, a clean-looking IP doesn't change that, and this article is about &lt;em&gt;understanding and debugging&lt;/em&gt; network signals, not about getting around anyone's rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Results are a snapshot.&lt;/strong&gt; Your address, resolver and routes can change between sessions (DHCP leases, CGNAT re-assignment, tunnel reconnects).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Databases disagree.&lt;/strong&gt; When two sources conflict, treat both as hints and reason from first principles (registry, routing, reverse DNS) as in section 3.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  12. Tools for quick checks
&lt;/h2&gt;

&lt;p&gt;For quick checks, the tools in this post cover a lot with no dependencies: &lt;code&gt;curl&lt;/code&gt;, &lt;code&gt;nslookup&lt;/code&gt;/&lt;code&gt;dig&lt;/code&gt;, the RDAP and RIPEstat APIs, and a browser console. For a one-page summary, hosted IP lookup and DNS leak test pages exist too; the Cloudflare trace shown above is a neutral one.&lt;/p&gt;

&lt;p&gt;Like any lookup, they combine third-party databases and make estimates, so the caveats in sections 4, 5 and 11 apply to them as well. If you find a case where a result is wrong, I'd like to hear about it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Further reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;RFC 4271, &lt;em&gt;A Border Gateway Protocol 4 (BGP-4)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;RFC 6598, &lt;em&gt;IANA-Reserved IPv4 Prefix for Shared Address Space&lt;/em&gt; (&lt;code&gt;100.64.0.0/10&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;RFC 7871, &lt;em&gt;Client Subnet in DNS Queries&lt;/em&gt; (ECS)&lt;/li&gt;
&lt;li&gt;RFC 8445, &lt;em&gt;Interactive Connectivity Establishment (ICE)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;RFC 8484, &lt;em&gt;DNS Queries over HTTPS (DoH)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;RFC 8489, &lt;em&gt;Session Traversal Utilities for NAT (STUN)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;RFC 8805, &lt;em&gt;A Format for Self-Published IP Geolocation Feeds&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;RFC 9082 and RFC 9083, &lt;em&gt;Registration Data Access Protocol (RDAP)&lt;/em&gt;: query format and JSON responses&lt;/li&gt;
&lt;li&gt;RIPEstat data API: &lt;a href="https://stat.ripe.net/docs/data_api" rel="noopener noreferrer"&gt;https://stat.ripe.net/docs/data_api&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Questions or corrections?&lt;/strong&gt; Drop them in the comments. In particular: what's the strangest "my IP is in the wrong place" bug you've run into, and what turned out to be the cause?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This article was created with the help of AI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>webdev</category>
      <category>security</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Residential IP, ISP IP, Home Broadband IP, Native IP: What the Terms Actually Mean</title>
      <dc:creator>AnBoVPN</dc:creator>
      <pubDate>Fri, 20 Nov 2026 09:43:49 +0000</pubDate>
      <link>https://dev.to/elena_zitha_anbo/residential-ip-isp-ip-home-broadband-ip-native-ip-what-the-terms-actually-mean-567o</link>
      <guid>https://dev.to/elena_zitha_anbo/residential-ip-isp-ip-home-broadband-ip-native-ip-what-the-terms-actually-mean-567o</guid>
      <description>&lt;p&gt;"Residential IP", "ISP IP", "home broadband IP", "native IP". If you have shopped for proxies, read a VPN comparison, or tried to understand why a website treats your connection differently, you have seen all of them, often as if they meant the same thing. They do not, and the confusion costs people time and money.&lt;/p&gt;

&lt;p&gt;Here is a plain-language map of what each term usually means, how to check an address yourself, and where the labels stop being reliable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two different questions
&lt;/h2&gt;

&lt;p&gt;Most of the confusion comes from mixing up two questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Who is the address assigned to?&lt;/strong&gt; (the &lt;em&gt;type&lt;/em&gt; of network)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does it behave like a normal user's connection?&lt;/strong&gt; (the &lt;em&gt;state&lt;/em&gt; of the address)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;"Residential", "datacenter" and "mobile" answer the first question. "Native" and "clean" are loose attempts at the second.&lt;/p&gt;

&lt;h2&gt;
  
  
  The type: who owns the address
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Term&lt;/th&gt;
&lt;th&gt;What it usually means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Datacenter IP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Registered to a hosting or cloud company. Servers live here.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Residential IP / home broadband IP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Assigned by an internet service provider (ISP) to a household connection. These are the same thing under two names.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mobile IP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Assigned by a mobile carrier. Many users often share one address.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;ISP IP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Ambiguous. It can mean "an address that belongs to an ISP" (so, residential), or an address registered to an ISP but hosted in a datacenter, which some vendors sell as "static residential" or "ISP proxies".&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;"Residential" and "home broadband" are the same idea. One is the term you will see in English-language provider pages, the other is a literal translation of what many Asian markets say. If a seller treats them as two products, ask what exactly differs.&lt;/p&gt;

&lt;p&gt;The last row is where it gets slippery. An address can be registered to a consumer ISP while physically sitting in a rack. Whether you call that residential depends on the vendor, so look at what the provider actually says about the origin of the address.&lt;/p&gt;

&lt;h2&gt;
  
  
  The state: "native"
&lt;/h2&gt;

&lt;p&gt;"Native IP" has no formal definition. The common meaning is that the address is used in the place it is registered to, is not obviously relayed through another network, and is not flagged as a proxy or VPN by lookup databases. Different tools apply different rules, so treat it as a rough label rather than a measurement.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check an address yourself
&lt;/h2&gt;

&lt;p&gt;You do not need a paid tool for a first pass. Look at three things in a lookup result:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Organization / ASN&lt;/strong&gt;: is it a cloud company or a consumer ISP?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hostname (reverse DNS)&lt;/strong&gt;: words like &lt;code&gt;server&lt;/code&gt;, &lt;code&gt;vps&lt;/code&gt;, &lt;code&gt;cloud&lt;/code&gt; point to hosting. Words like &lt;code&gt;dsl&lt;/code&gt;, &lt;code&gt;cable&lt;/code&gt;, &lt;code&gt;dyn&lt;/code&gt;, &lt;code&gt;pool&lt;/code&gt; point to access networks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flags&lt;/strong&gt;: whether the address is marked as VPN, proxy, Tor or datacenter.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr16taohz4xhe798ll9po.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr16taohz4xhe798ll9po.png" alt="Clues that an address looks like a datacenter or a residential connection" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A real-world lookup example
&lt;/h2&gt;

&lt;p&gt;Here is the same kind of network-type information shown in an IP check page. The first screenshot shows the full page, and the second is a closer view of the score card. The score is the checker's own estimate based on public IP data, not an official Anthropic score.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvnrltv56o0qn7pn6kqj5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvnrltv56o0qn7pn6kqj5.png" alt="Full English Claude IP check page with the IP address hidden" width="800" height="1133"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftyw43mibzunkt9p2xl33.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftyw43mibzunkt9p2xl33.png" alt="Close-up of the Claude IP score card showing 99 out of 100" width="800" height="697"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What these labels cannot tell you
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Databases disagree.&lt;/strong&gt; One provider may label an address residential while another says business. Check two sources if it matters.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A label is not a promise.&lt;/strong&gt; No lookup can tell you how a particular website will treat an address. Each service decides that on its own, and it can change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Geolocation is approximate.&lt;/strong&gt; It is an estimate, and it can be far off for mobile and cloud addresses.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it on your own connection
&lt;/h2&gt;

&lt;p&gt;If you want to see these fields for your own address, any IP lookup that shows ASN, ISP and network type will do, and nothing needs to be installed or signed up for. From a terminal, &lt;code&gt;curl https://ipinfo.io/json&lt;/code&gt; prints the organization and country.&lt;/p&gt;

&lt;p&gt;Corrections are welcome. If your experience with how providers use these terms differs from the table above, I would like to hear it in the comments.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This article was created with the help of AI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>beginners</category>
      <category>security</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Check What Kind of IP Address You Actually Have (ASN, ISP, Datacenter vs Residential)</title>
      <dc:creator>AnBoVPN</dc:creator>
      <pubDate>Mon, 16 Nov 2026 01:20:54 +0000</pubDate>
      <link>https://dev.to/elena_zitha_anbo/how-to-check-what-kind-of-ip-address-you-actually-have-asn-isp-datacenter-vs-residential-163o</link>
      <guid>https://dev.to/elena_zitha_anbo/how-to-check-what-kind-of-ip-address-you-actually-have-asn-isp-datacenter-vs-residential-163o</guid>
      <description>&lt;p&gt;If you've ever wondered why a website treats your connection differently from someone else's, the answer often starts with a few facts about the IP address you appear from: who owns it, what kind of network it sits on, and what the databases say about it.&lt;/p&gt;

&lt;p&gt;You can look all of this up yourself in about two minutes. This post shows how, and what the results do and don't tell you.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four things worth checking
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;What it tells you&lt;/th&gt;
&lt;th&gt;Where to find it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;ASN&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The network (autonomous system) that announces the address&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;org&lt;/code&gt; field, e.g. &lt;code&gt;AS15169&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Organization / ISP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The company behind that network&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;org&lt;/code&gt; field, e.g. &lt;code&gt;Google LLC&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Reverse DNS (hostname)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A name the owner may have set for the address&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;hostname&lt;/code&gt; field or a PTR lookup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Network type&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Datacenter, residential, mobile or business&lt;/td&gt;
&lt;td&gt;Inferred, and sometimes wrong&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first three are facts you can read directly. The fourth is a judgment, and that is where people get misled, so we'll come back to it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: find the address websites see
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s https://api.ipify.org
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you use a VPN or proxy, this prints the address of that service, not your own. That is what you want to check.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: look up who owns it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s https://ipinfo.io/8.8.8.8/json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;8.8.8.8&lt;/code&gt; with your own address. A trimmed example of the response:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"ip"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"8.8.8.8"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"hostname"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"dns.google"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"city"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Mountain View"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"country"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"US"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"org"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"AS15169 Google LLC"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"anycast"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reading it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;org&lt;/code&gt;&lt;/strong&gt; is the most useful field. It combines the ASN (&lt;code&gt;AS15169&lt;/code&gt;) and the organization name (&lt;code&gt;Google LLC&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;hostname&lt;/code&gt;&lt;/strong&gt; is the reverse DNS entry. Owners often put clues here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;city&lt;/code&gt;&lt;/strong&gt; is an estimate. IP geolocation is approximate and can be off by a lot, especially for mobile and cloud addresses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;anycast: true&lt;/code&gt;&lt;/strong&gt; means the same address is announced from many places at once, so the "location" is not a single spot.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fof8vkqufl0e3qkty0mv1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fof8vkqufl0e3qkty0mv1.png" alt="Annotated IP lookup result: org, hostname, city and anycast fields explained" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Just want the hostname? Use a PTR lookup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nslookup 8.8.8.8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3: read the clues
&lt;/h2&gt;

&lt;p&gt;You are basically answering one question: &lt;strong&gt;is this a company that sells hosting, or a company that sells internet access to homes?&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;Points towards&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Organization is a cloud or hosting company&lt;/td&gt;
&lt;td&gt;Datacenter&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Organization is a consumer ISP or telecom&lt;/td&gt;
&lt;td&gt;Residential or mobile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hostname contains words like &lt;code&gt;server&lt;/code&gt;, &lt;code&gt;vps&lt;/code&gt;, &lt;code&gt;cloud&lt;/code&gt;, &lt;code&gt;compute&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Datacenter&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hostname contains words like &lt;code&gt;dsl&lt;/code&gt;, &lt;code&gt;cable&lt;/code&gt;, &lt;code&gt;dyn&lt;/code&gt;, &lt;code&gt;pool&lt;/code&gt; or your customer ID&lt;/td&gt;
&lt;td&gt;Residential&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Organization is a university, company or government body&lt;/td&gt;
&lt;td&gt;Business or institutional&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are hints, not proof. Plenty of hosting companies use neutral hostnames, and some ISPs reuse the same range for different kinds of customers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr16taohz4xhe798ll9po.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr16taohz4xhe798ll9po.png" alt="Two columns of clues: looks like datacenter versus looks like residential" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Datacenter, residential and ISP residential
&lt;/h2&gt;

&lt;p&gt;These are the three labels you will meet most often.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Datacenter:&lt;/strong&gt; the address belongs to a hosting provider's network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Residential:&lt;/strong&gt; the address belongs to a residential network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ISP residential:&lt;/strong&gt; the address comes from an ISP's home broadband network.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whether an address is shared or dedicated is a separate question. You can have a dedicated datacenter address or a shared residential one. If you want the longer version of that distinction, I covered it in &lt;a href="https://dev.to/elena_zitha_anbo/dedicated-ip-vs-shared-ip-whats-the-difference-387b"&gt;my previous post on dedicated vs shared IPs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why different tools disagree
&lt;/h2&gt;

&lt;p&gt;If two lookup tools label the same address differently, nothing is broken. Each service builds its own database from routing data, registry records, reverse DNS and its own scans, then decides how to classify each range. Ranges get re-assigned, reclassified and re-sold, and the databases update at different speeds.&lt;/p&gt;

&lt;p&gt;So treat any single label as a strong hint. When it matters, check two sources and look at the organization name yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  A reusable script
&lt;/h2&gt;

&lt;p&gt;Here is a small shell function that prints just the useful parts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ipcheck&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;ip&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"${1:-$(curl -s https://api.ipify.org)}"&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"IP:        $ip"&lt;/span&gt;
  curl -s &lt;span class="s2"&gt;"https://ipinfo.io/$ip/json"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s1"&gt;'"(hostname|org|country)"'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sed &lt;span class="s1"&gt;'s/^ *//'&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;# Your current address&lt;/span&gt;
ipcheck

&lt;span class="c"&gt;# Any other address&lt;/span&gt;
ipcheck 1.1.1.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you would rather not use the terminal, any web-based IP lookup tool shows the same fields.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you can and can't conclude
&lt;/h2&gt;

&lt;p&gt;You &lt;strong&gt;can&lt;/strong&gt; tell which company runs the network, whether it looks like a hosting provider or an access provider, and roughly which country it is registered in.&lt;/p&gt;

&lt;p&gt;You &lt;strong&gt;can't&lt;/strong&gt; tell, from a lookup alone:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;how many people share the address,&lt;/li&gt;
&lt;li&gt;how a particular website will treat it, since every service makes its own decisions,&lt;/li&gt;
&lt;li&gt;exactly where the user is physically located.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Find the address with &lt;code&gt;api.ipify.org&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Look up &lt;code&gt;org&lt;/code&gt; and &lt;code&gt;hostname&lt;/code&gt; with &lt;code&gt;ipinfo.io&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Decide whether the owner sells hosting or access.&lt;/li&gt;
&lt;li&gt;Cross-check with a second source if the answer matters.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The labels are hints, but the habit of looking at the organization name is what makes them useful.&lt;/p&gt;

&lt;p&gt;How do you check what kind of address you're on? I'd like to hear which tools you use.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This article was created with the help of AI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>security</category>
    </item>
    <item>
      <title>Dedicated IP vs shared IP: what’s the difference?</title>
      <dc:creator>AnBoVPN</dc:creator>
      <pubDate>Mon, 09 Nov 2026 08:11:27 +0000</pubDate>
      <link>https://dev.to/elena_zitha_anbo/dedicated-ip-vs-shared-ip-whats-the-difference-387b</link>
      <guid>https://dev.to/elena_zitha_anbo/dedicated-ip-vs-shared-ip-whats-the-difference-387b</guid>
      <description>&lt;p&gt;When you connect through a VPN, a proxy or a hosting provider, the websites you visit don't see &lt;em&gt;your&lt;/em&gt; address. They see the provider's. So the useful question isn't "do I have an IP?", it's &lt;strong&gt;"how many other people appear behind the same IP?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That is the whole difference between a shared IP and a dedicated IP. This post walks through what each one means, the trade-offs, a few common myths, and a quick way to decide.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Shared IP&lt;/th&gt;
&lt;th&gt;Dedicated IP&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who uses the address&lt;/td&gt;
&lt;td&gt;Many customers&lt;/td&gt;
&lt;td&gt;One customer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Does it stay the same?&lt;/td&gt;
&lt;td&gt;May change between sessions or servers&lt;/td&gt;
&lt;td&gt;Stays the same while your plan is valid&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reputation&lt;/td&gt;
&lt;td&gt;Affected by everyone on it&lt;/td&gt;
&lt;td&gt;Mostly yours alone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Allowlisting&lt;/td&gt;
&lt;td&gt;Hard, the address isn't yours&lt;/td&gt;
&lt;td&gt;Easy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Typical cost&lt;/td&gt;
&lt;td&gt;Lower&lt;/td&gt;
&lt;td&gt;Higher&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Privacy&lt;/td&gt;
&lt;td&gt;You blend in with others&lt;/td&gt;
&lt;td&gt;A stable identifier that is easier to link to you&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What is a shared IP?
&lt;/h2&gt;

&lt;p&gt;A provider runs servers with a limited pool of addresses and a lot of customers. At any moment, many of them leave through the same address. To a website, all of that traffic comes from one place.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa47r87a4jdrkqpvj5055.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa47r87a4jdrkqpvj5055.png" alt="Shared IP vs dedicated IP: many users behind one address, versus one user behind one address" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why people like it&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It's cheaper, because the cost of the address is split across many people.&lt;/li&gt;
&lt;li&gt;Switching regions is easy: you just pick another server.&lt;/li&gt;
&lt;li&gt;You blend into a crowd, so no single person stands out.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Where it hurts&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Neighbors affect you.&lt;/strong&gt; If someone else on the same address triggers a spam filter or a login check, your traffic can be treated with suspicion too. You'll notice it as more captchas or the occasional blocked page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can't allowlist it.&lt;/strong&gt; If a server or partner only accepts specific source addresses, a shared address is a poor fit, because it can be used by others and may not be the same next time.&lt;/li&gt;
&lt;li&gt;Some services keep lists of well-known shared VPN ranges and treat them more strictly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is a dedicated IP?
&lt;/h2&gt;

&lt;p&gt;A dedicated IP is assigned to a single customer. For as long as your plan is valid, the address stays the same, and nobody else is behind it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why people like it&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Allowlists just work.&lt;/strong&gt; You give a server, cloud console or partner one address, once, and it keeps working.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A consistent identity.&lt;/strong&gt; Sign-in checks that compare where you connect from see the same source every time, which makes your own access easier to reason about and audit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reputation is yours.&lt;/strong&gt; There are no neighbors, so what happens on that address is down to you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Easier troubleshooting.&lt;/strong&gt; When you integrate with a third-party API that restricts source addresses, a predictable address is much easier to debug.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The trade-offs&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It usually costs more, because you're paying for an address that is reserved for you.&lt;/li&gt;
&lt;li&gt;A stable address is also a &lt;strong&gt;stable identifier&lt;/strong&gt;. If you're after privacy through blending in, a dedicated IP does the opposite.&lt;/li&gt;
&lt;li&gt;It tends to be tied to one region. If you want to hop between countries all day, a shared pool is more convenient.&lt;/li&gt;
&lt;li&gt;If it ever gets flagged, there's no crowd to hide in. The reputation is entirely yours.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  "Dedicated" and "residential" are different questions
&lt;/h2&gt;

&lt;p&gt;This is where people mix things up. &lt;em&gt;Who shares the address&lt;/em&gt; and &lt;em&gt;what kind of network it comes from&lt;/em&gt; are two separate choices.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fde9uo6tpkpumc79h4vlo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fde9uo6tpkpumc79h4vlo.png" alt="Two independent questions: shared or dedicated, and datacenter, residential or ISP residential" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Datacenter&lt;/strong&gt;: an address from a hosting provider's network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Residential&lt;/strong&gt;: an address from a residential network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ISP residential&lt;/strong&gt;: an address from an ISP's home broadband network.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can have a dedicated datacenter IP, a shared residential IP, and so on. Some services do treat these network types differently, but every platform sets its own access policy, so no address type is a guarantee that something will or won't work.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should you pick which?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A shared IP is usually enough when you:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;browse, stream or work on everyday tasks and don't care which address you get;&lt;/li&gt;
&lt;li&gt;want to switch regions freely;&lt;/li&gt;
&lt;li&gt;are on a budget or only need it for a short while.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;A dedicated IP is worth it when you:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;need to &lt;strong&gt;allowlist&lt;/strong&gt; your own address on servers, cloud consoles, firewalls or a partner's system;&lt;/li&gt;
&lt;li&gt;connect to a company back end or remote desktop that only trusts specific source addresses;&lt;/li&gt;
&lt;li&gt;integrate with APIs that restrict source IPs;&lt;/li&gt;
&lt;li&gt;manage accounts or tools where a constantly changing sign-in location is a hassle;&lt;/li&gt;
&lt;li&gt;want one consistent address to show up in your access logs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Four common myths
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;"A dedicated IP is faster."&lt;/strong&gt; Not by itself. Speed depends on the route, the distance, and how busy the server is. A dedicated address makes things &lt;em&gt;stable&lt;/em&gt;, not fast.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"A dedicated IP is more anonymous."&lt;/strong&gt; Usually the opposite. One address that only you use is a very consistent fingerprint. Dedicated is about control and stability, not hiding.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"A dedicated IP means I won't get blocked."&lt;/strong&gt; No. An address's reputation is only one signal among many, and each platform decides for itself what it accepts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"It's the same as my home static IP."&lt;/strong&gt; Related, but not the same. A static IP at home belongs to your own internet line. A dedicated IP from a VPN or proxy provider is reserved for you but sits on the provider's network, in whichever region you chose.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check what you actually have
&lt;/h2&gt;

&lt;p&gt;From a terminal, two commands tell you a lot:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# The address websites see&lt;/span&gt;
curl -s https://api.ipify.org

&lt;span class="c"&gt;# Who owns it: look at the "org" field (the ASN and organization)&lt;/span&gt;
curl -s https://ipinfo.io/json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few things to look at:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;org&lt;/code&gt; field&lt;/strong&gt; tells you which network it belongs to. A hosting company suggests a datacenter address; a consumer ISP name suggests a residential or ISP residential one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run it on different days.&lt;/strong&gt; If the address never changes, it's effectively static for you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can't tell from your side alone whether others share it.&lt;/strong&gt; If that matters, ask your provider directly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Shared&lt;/strong&gt; = many people, one address. Cheap and flexible, but you inherit your neighbors' reputation and can't rely on the address.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dedicated&lt;/strong&gt; = one customer, one address. Stable and allowlist-friendly, but pricier and easier to link to you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Datacenter vs residential vs ISP residential&lt;/strong&gt; is a separate choice. Decide each question on its own.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pick the one that matches the job: flexible and cheap for everyday use, dedicated when the address itself has to stay put.&lt;/p&gt;

&lt;p&gt;What do you use a dedicated IP for? I'd love to hear which cases I missed in the comments.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This article was created with the help of AI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>privacy</category>
      <category>security</category>
    </item>
  </channel>
</rss>
