Networking and developer tooling notes
Troubleshooting
4 min read

How to Check What IP Address and Location a Website Sees

A website sees the public IP that opened the connection and estimates your location from a database. Test from the same program you care about, compare IPv4 and IPv6, and cross-check two lookup sources.

Editorial team

A website sees the source address of the connection that reaches it, and it guesses your location by looking that address up in a database. To check both, request the address from an echo service using the same program and network path as the app you care about, then compare results from IPv4, IPv6 and a second location database. This guide is current as of November 2026.

What does a website actually see?

A server sees the public IP address that opened the connection, plus whatever your client volunteers: headers, language, and for browsers a time zone. It does not see your street, your device name, or the IP address behind a proxy or VPN. Everything it infers about location comes from lookups, not from your hardware.

  • The connection address: the public IP of the last hop before the server, which is your router's address, a proxy's, or a VPN server's.
  • Forwarding headers: servers behind a CDN or load balancer often read the client address from headers such as X-Forwarded-For.
  • Browser-supplied hints: the Accept-Language header, the time zone available to JavaScript, and location data only if you explicitly grant permission.

How do I check my public IP quickly?

Ask a public echo service from the program you want to test. A command-line tool shows what the terminal sees, a browser page shows what the browser sees, and the two can differ. Forcing IPv4 or IPv6 shows each address family separately.

# Public IPv4 address as seen from this terminal
curl -4 https://ifconfig.me

# Public IPv6 address (fails if you have no IPv6 route)
curl -6 https://ifconfig.me

# Address plus country code from Cloudflare's trace endpoint
curl https://www.cloudflare.com/cdn-cgi/trace

In the trace output, ip= is the address Cloudflare saw and loc= is the two-letter country code it derived. To test through a specific proxy, pass it explicitly (see HTTP vs SOCKS5 proxy for the URL schemes):

curl -x socks5h://user:password@proxy.example.com:1080 https://ifconfig.me

In a browser, open the same echo page. If the browser and curl print different addresses, one of them is not using the tunnel; the TUN mode vs system proxy article explains why that happens.

Why does the location look wrong?

The location is a database estimate keyed on the IP, not a measurement of where you sit. Providers update their data at different times, and address blocks that move between regions can be labeled with the old country for a while. Two lookup sites can reasonably disagree about the same address.

  • Different databases: compare at least two lookup services before concluding the address is mislabeled.
  • Stale data: a recently reassigned block may still carry the previous country or city.
  • City-level precision is weak: country is usually reliable; city often is not.
  • Registration versus use: the registered owner may be headquartered in one country while the address is used in another. Run whois on the address to see the registration; residential vs ISP residential vs datacenter IP explains how to read it.

Why do the terminal and the browser show different results?

They are different programs, and each can take a different network path. A browser may follow the system proxy while a terminal tool ignores it, or the other way round. The same applies to IPv6: a site may use your real IPv6 address even when IPv4 goes through the tunnel.

SymptomLikely causeHow to confirm
Browser shows the VPN address, curl shows your originalSystem proxy is set but curl ignores itCheck env | grep -i proxy; try curl -x
IPv4 shows the new address, IPv6 shows the old oneThe IPv6 path is not tunneledCompare curl -4 and curl -6
One app shows the original addressA routing rule excludes that appReview the client's per-app or split-routing rules
Address is right but country is wrongDatabase disagreementCheck a second lookup source and whois

What else can a web page learn about me?

Besides the connection address, a page can read browser-provided data. The time zone is available to scripts, the language preference is sent with each request, and a feature called WebRTC can reveal network addresses during peer-to-peer setup. None of this changes the address the server sees, but it can make the picture inconsistent.

// In the browser console: the time zone your browser reports
Intl.DateTimeFormat().resolvedOptions().timeZone

For troubleshooting, the point is simply to know which signals exist. If a site shows content for the wrong region, compare the IP location against the browser's time zone and language settings before assuming the proxy is at fault.

A short checklist for a reliable check

  1. Note your address and country with the tunnel or proxy turned off. This is your baseline.
  2. Connect, then run curl -4 and curl -6 from the terminal.
  3. Open the same echo page in the browser you actually use.
  4. Compare the country in two different lookup sources.
  5. If any result still shows your baseline address, check proxy settings, per-app rules and IPv6 handling, in that order.

Where AnboVPN fits

When you use an AnboVPN connection, the same checks apply. The official clients support application-level smart routing and TUN mode, so an app excluded by your routing rules will show your original address, which is expected. For the HTTP/SOCKS5 proxy, run the curl -x test above with the proxy details from your plan. The clients are on the AnboVPN download page, and new accounts get 10 GB of data once, valid for one month.

References

IP lookup
Troubleshooting
curl
IP geolocation

FAQ

Why does my IP location show the wrong city?
Location is estimated by looking the IP up in a database, not measured. City-level accuracy is weak, and data lags when address blocks are reassigned. Compare at least two lookup services, and check the registration with whois. Country is usually dependable, while the city often is not, so a wrong city does not mean your setup is broken.
Why does curl show a different IP than my browser?
They are separate programs that can take separate network paths. The browser may follow the system proxy while curl ignores it and reads environment variables instead. Run env | grep -i proxy, try curl with the -x option, or enable a mode that captures all traffic, then compare both results again.
Can a website see my real IP address behind a proxy?
A server sees the address of the last hop that connected to it. Some proxies add headers such as X-Forwarded-For with the original client address, and browser features like WebRTC can expose addresses in some situations. If you need to know what your setup reveals, test it with the same browser and proxy you actually use.
Does a website see my IPv6 address even when IPv4 is tunneled?
It can. If your device has working IPv6 and the tunnel only handles IPv4, a site may connect over IPv6 and see that address. Compare curl -4 and curl -6 to check each family. If the IPv6 result is unexpected, look at how your client handles IPv6 before blaming the IPv4 route.

Related posts

Getting Started

How Much VPN Data Do You Need? A Practical Way to Estimate It

Measure what your devices actually transfer in a normal week, convert video bitrate with GB per hour = Mbps x 0.45, then add a margin of 15 to 20 percent. Only traffic routed through the VPN counts, so routing choices matter as much as habits.

Data plan
Traffic estimate
Bitrate
Troubleshooting

Why Does My VPN Keep Disconnecting? A Troubleshooting Checklist

VPN drops almost always trace back to a short list: the network underneath changing or going idle, a NAT or firewall closing the flow, an MTU mismatch, power saving, conflicting software, or an exhausted account. Test them in that order.

VPN troubleshooting
NAT timeout
MTU
Troubleshooting

How to Read traceroute and mtr Reports: Loss, Latency, Hops

traceroute and mtr list the routers between you and a destination using packets with increasing TTL. Trust only loss that continues to the last hop and latency jumps that stay high from one hop onward. Loss on a single middle hop is usually ICMP rate limiting.

traceroute
mtr
Packet loss
Concepts

Split Tunneling and Smart Routing: Send Only Some Traffic via VPN

Split tunneling sends only selected traffic, by app, address or domain, through the VPN or proxy and lets the rest use your normal connection. It keeps local devices and bulk downloads off the tunnel, but you must verify what each side really does.

Split tunneling
Smart routing
Routing table