127.0.0.0/8 block is reserved for this, but 127.0.0.1 is the address everyone actually uses.localhost is just a hostname your computer resolves to 127.0.0.1 on its own, no network lookup involved.127.0.0.1 never leaves the device at all, not even as far as the router.
This is why a local web server (VS Code's Live Server, or anything running at http://localhost:3000) is only reachable from the same machine it runs on. Nobody else on your network, or the internet, can reach it at that address.
192.168.1.14 to somebody.| Range | Common use |
|---|---|
| 10.0.0.0 – 10.255.255.255 | larger networks, offices |
| 172.16.0.0 – 172.31.255.255 | mid-size networks |
| 192.168.0.0 – 192.168.255.255 | home routers, most common |
NAT is the trick that lets many private addresses share one public address.
| Without a VPN | With a VPN |
|---|---|
| Laptop → router (NAT) → ISP → destination site | Laptop → router (NAT, unchanged) → ISP → encrypted tunnel → VPN server → destination site |
| The destination site sees your router's public IP, which points back to your ISP and rough location. | The destination site sees the VPN server's public IP instead of yours. |
| Your ISP can see every site you connect to. | Your ISP can see that you are talking to a VPN server, but not what is inside the tunnel or which sites you actually reach. |
Pinging www.sfc.keio.ac.jp (Keio University, Japan) from a laptop in the US:
PING dh9uikqsvnji3.cloudfront.net (18.172.170.14): 56 data bytes 64 bytes from 18.172.170.14: icmp_seq=0 ttl=245 time=5.661 ms 64 bytes from 18.172.170.14: icmp_seq=1 ttl=245 time=4.509 ms 64 bytes from 18.172.170.14: icmp_seq=2 ttl=245 time=4.166 ms 64 bytes from 18.172.170.14: icmp_seq=3 ttl=245 time=4.407 ms 64 bytes from 18.172.170.14: icmp_seq=4 ttl=245 time=4.191 ms --- dh9uikqsvnji3.cloudfront.net ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 4.166/4.587/5.661/0.552 ms
www.sfc.keio.ac.jp is a CNAME alias pointing at dh9uikqsvnji3.cloudfront.net, Amazon's auto-generated hostname for their CloudFront distribution.ping follows that chain and reports the CloudFront hostname it lands on, then the edge server's IP, not a machine physically on Keio's campus.ping only measures the path to that nearby edge server. It says nothing about whether Keio's actual origin server is up, or how the site performs once the edge has to fetch uncached content all the way from Japan.
To see the DNS chain directly: dig www.sfc.keio.ac.jp. To see CDN headers on the real HTTP response: curl -I https://www.sfc.keio.ac.jp.
% dig www.sfc.keio.ac.jp ... ;; QUESTION SECTION: ;www.sfc.keio.ac.jp. IN A ;; ANSWER SECTION: www.sfc.keio.ac.jp. 10800 IN CNAME dh9uikqsvnji3.cloudfront.net. dh9uikqsvnji3.cloudfront.net. 60 IN A 3.163.24.7 dh9uikqsvnji3.cloudfront.net. 60 IN A 3.163.24.126 dh9uikqsvnji3.cloudfront.net. 60 IN A 3.163.24.49 dh9uikqsvnji3.cloudfront.net. 60 IN A 3.163.24.107 ;; Query time: 168 msec ;; SERVER: 8.8.8.8#53(8.8.8.8)
A cached edge response can look perfectly healthy even if the real origin server is completely offline. ping alone cannot tell the difference.
curl -I https://www.sfc.keio.ac.jp and look for x-cache: Hit from cloudfront (served from cache, tells you nothing about origin) versus x-cache: Miss from cloudfront (the edge just contacted origin and got an answer).?nocache=12345, to force a request the edge is unlikely to have cached, so it has to check the origin.5xx response (502, 503, 504) from the CDN generally means the edge tried to reach the origin and failed.%curl -I https://www.sfc.keio.ac.jp ... HTTP/2 301 server: CloudFront content-length: 0 location: https://www.keio.ac.jp/ja/sfc/ x-cache: Hit from cloudfront via: 1.1 ac695892d6ed07904483819bdb88134e.cloudfront.net (CloudFront) x-amz-cf-pop: HIO52-P2 x-amz-cf-id: J_1ub4-jF8LdPNN16ptRAnb813nqBCojomRayElIFFdTxJ0wh4unMg== age: 17 ...
www.sfc.keio.ac.jp to www.keio.ac.jp/ja/sfc/. content-length: 0 follows: a redirect carries no body.x-cache: Hit from cloudfront means this exact redirect response was already sitting in the edge's cache. CloudFront did not need to ask Keio's origin anything to answer this request, so this response says nothing about whether the origin is currently up.age: 17 is how many seconds this response has been cached since it was last fetched or generated. Small means recently cached; a large number would mean it has sat there unrefreshed for a while.x-amz-cf-pop: HIO52-P2 is the edge location's Point-of-Presence code. HIO is the airport code for Hillsboro/Portland, most likely what the earlier ~4–5 ms ping time implied: the reply came from an edge node near Portland, not from Japan.curl -I against the redirect target with a cache-busting query string and look for x-cache: Miss from cloudfront instead.
Keio is not unusual. MIT and most universities with a global audience sit behind a CDN too.
The internet has 13 lettered root servers, A through M. Every one of them is a real example of anycast running today.
| Letter | IP address | Operator |
|---|---|---|
| A | 198.41.0.4 | Verisign |
| B | 170.247.170.2 | USC-ISI |
| C | 192.33.4.12 | Cogent Communications |
| D | 199.7.91.13 | University of Maryland |
| E | 192.203.230.10 | NASA Ames Research Center |
| F | 192.5.5.241 | Internet Systems Consortium |
| G | 192.112.36.4 | Defense Information Systems Agency |
| H | 198.97.190.53 | U.S. Army Research Lab |
| I | 192.36.148.17 | Netnod |
| J | 192.58.128.30 | Verisign |
| K | 193.0.14.129 | RIPE NCC |
| L | 199.7.83.42 | ICANN |
| M | 202.12.27.33 | WIDE Project |
Long before anycast routing existed, artists were already drawing what it feels like: the same identity, held open in more than one place at once, folding a part that contains into a part that is contained.