Skip to content

iphostingnetworking

Website Server Location: How to Find Where a Server Is Located

Find a website's server location: the country, city and data center where its server is located. Use an IP lookup, dig and ipinfo, response headers, traceroute or WHOIS, and learn why anycast and CDNs change the answer.
Piotr Kulpinski
13 Apr 2026•8 min read
Website Server Location: How to Find Where a Server Is Located

A website's server location is the country, city and data center where its server is located. This post covers five ways to find it and the cases where the answer misleads. The company that hosts the site is a separate question, covered in where a website is hosted.

Quick Answer: To find a website's server location, enter the domain into an IP lookup tool. It resolves the domain to an IP address and looks that address up in a geolocation database, which returns a country, region and city. If the result says the address is anycast (common for Cloudflare and other content delivery networks, or CDNs), many data centers share the address, and the city is only a label in the database, not the place where the website lives.

Why server location matters

Latency

Distance adds delay. Every round trip between a visitor and the server crosses the same distance, and a page load needs several round trips before the first byte arrives.

The test below ran from Kraków, Poland, on 12 October 2026. The openbsd.org server sits in Calgary, Canada. The hetzner.com server sits in Germany.

ServerLocationPingTCP connectTime to first byte
openbsd.orgCalgary, CA147 ms161 ms610 ms
hetzner.comGunzenhausen, DE29 ms33 ms123 ms

The ping and connect times show the effect of distance alone. Time to first byte (TTFB) also includes the TLS handshake and the time each server takes to build its page, so part of that gap comes from the two sites being different. The commands were ping -c 5 <ip> and curl -s -o /dev/null -w '%{time_connect} %{time_starttransfer}' https://<site>/, five runs each. Ping is the average and the curl columns are the median.

SEO

Google does not use server location as a ranking factor on its own. It does measure page speed as part of Core Web Vitals, and a slow TTFB delays Largest Contentful Paint (LCP). A server far from your audience makes both slower.

Data protection rules

The EU General Data Protection Regulation (GDPR) restricts transfers of personal data outside the European Economic Area. A transfer needs a legal basis such as an adequacy decision or Standard Contractual Clauses. If you process EU visitors' data on a US server, you need one of these. Hosting inside the EU avoids the question: EuroAlternative lists European cloud and hosting providers. Brazil (LGPD) and Canada (PIPEDA) have their own rules.

CDN decisions

If your visitors are spread across continents and your server sits in one region, a CDN can cache your pages on edge servers closer to them. Knowing where the origin server is tells you how far the distant visitors have to go without one.

Method 1: IP lookup tool (fastest)

The quickest way to check a website's server location is an IP lookup:

  1. Enter the domain name, for example openbsd.org.
  2. The tool resolves the domain to its IP address.
  3. It looks the address up in a geolocation database.
  4. It shows the country, region, city, autonomous system number (ASN) and network owner.

Try it yourself

Check any website's hosting

Enter a domain or IP to see hosting provider, DNS records, and more.

Our IP lookup tool shows the location, network, announced route and reverse DNS name for the address. Location and network data come from IPinfo. When IPinfo marks the address as anycast, the result says so, because many data centers share that address and the city shown is only a label. Our hosting check adds DNS records, the SSL certificate, the hosting provider, the CDN and the registrar.

Method 2: dig plus a geolocation API

On the command line, resolve the domain first:

dig +short openbsd.org A
199.185.178.80

Then look up the address with IPinfo:

curl https://ipinfo.io/199.185.178.80
{
  "ip": "199.185.178.80",
  "city": "Calgary",
  "region": "Alberta",
  "country": "CA",
  "loc": "51.0501,-114.0853",
  "org": "AS22512 OpenBSD",
  "postal": "T3S",
  "timezone": "America/Edmonton"
}

The server is in Calgary, Alberta, Canada. The org field names the network that announces the address: AS22512, run by the OpenBSD project itself.

The anycast case: example.com

Run the same two commands for example.com:

dig +short example.com A
104.20.23.154
172.66.147.243
curl https://ipinfo.io/104.20.23.154
{
  "ip": "104.20.23.154",
  "city": "San Francisco",
  "region": "California",
  "country": "US",
  "loc": "37.7621,-122.3971",
  "org": "AS13335 Cloudflare, Inc.",
  "postal": "94107",
  "timezone": "America/Los_Angeles",
  "anycast": true
}

The "anycast": true line changes the meaning of the rest. Cloudflare announces this address from many data centers. Each visitor reaches the nearest one, so "San Francisco" is a label in the database, not the place that answered you. The next method shows which data center did.

Method 3: HTTP response headers

Many CDNs name the data center that served the request in a response header. The name is usually an IATA airport code.

curl -sI https://example.com | grep -iE "server|cf-ray"
server: cloudflare
cf-ray: a4942a1b6de15779-WAW

The -WAW suffix is Warsaw. From Kraków, the request for example.com went to Cloudflare's Warsaw data center, not to San Francisco.

Other CDNs use other headers. These came from requests made from Kraków on the same day:

HeaderCDNReal exampleMeaning
cf-rayCloudflarea4942a1b6de15779-WAWWarsaw edge
x-amz-cf-popAmazon CloudFrontWAW51-P4 (aws.amazon.com)Warsaw edge
x-served-byFastlycache-fra-etou8220104-FRA (pypi.org, last entry)Frankfurt edge
serverAnyOpenBSD httpd (openbsd.org)No CDN: the origin answered directly

These headers show the CDN edge you reached, not the origin server.

Method 4: Traceroute

Traceroute lists the routers between you and the server. Router names often contain city or airport codes, which shows the path the traffic takes.

traceroute -q 1 openbsd.org
 3  ip-111-249.ip4.balmont.pl (194.42.111.249)  4.527 ms
 4  hurricane-electric.tpix.pl (195.149.232.133)  13.999 ms
 5  be1.core4.lon2.he.net (184.104.189.170)  150.183 ms
 6  *
 7  *
 8  100ge0-0-0-21.core1.tor1.he.net (184.105.80.10)  150.126 ms
 9  *
10  100ge0-0-0-8.core2.yyc1.he.net (184.105.222.98)  149.503 ms
11  204.209.252.4 (204.209.252.4)  146.727 ms
12  *
13  199.185.178.80 (199.185.178.80)  665.287 ms

The first two hops (the local network) are cut. The path leaves Poland, crosses Hurricane Electric's network through London (lon2) and Toronto (tor1), and reaches Calgary (yyc1, the code for Calgary airport). That matches what IPinfo said.

Do not trust the times on single hops. Routers answer traceroute at low priority, so a hop can look slower than the hops after it, as the last line shows. Hops that show * did not answer at all.

Method 5: WHOIS on the IP address

A WHOIS lookup on an IP address shows who holds the address block and the address they registered. You can run it in the terminal or with our WHOIS lookup tool.

whois 199.185.178.80
NetRange:       199.185.178.0 - 199.185.178.255
CIDR:           199.185.178.0/24
NetName:        RASSELAS-NET2
OrgName:        Rasselas
City:           Calgary
StateProv:      AB
Country:        CA

The block holder is in Calgary, which agrees with the geolocation. That is not always the case. The registered address is an office, and a company can register its addresses in one country and use them in data centers in another. Treat WHOIS as a cross-check, not as proof of where the server stands.

How accurate is IP geolocation?

Geolocation databases are built from registry records, network measurements and data that providers submit. They are estimates. MaxMind publishes its own accuracy figures as the share of addresses placed within 50 km of the true location. The rates vary widely by country (60% for the US at the time of writing), and they are measured on home broadband and mobile addresses, not on servers.

For servers, keep these limits in mind:

  • Country is more reliable than city. Treat the city as "near here", and the coordinates as the middle of a region, not a building.
  • Anycast addresses have no single location. Cloudflare, Google and other large networks announce the same address from many places. The database picks one label, and the IP lookup marks the address as anycast.
  • CDNs hide the origin. For a site behind a CDN, every method above finds the CDN edge. How to find what CDN a website uses shows how to spot one.
  • Address blocks move. When a block changes owner or data center, databases can take weeks to catch up.

When several methods agree, as IPinfo, traceroute and WHOIS did for openbsd.org, you can trust the answer.

Frequently Asked Questions

How do I find where a website's server is located?

Enter the domain into an IP lookup tool. It resolves the domain to an IP address and returns the country, region and city of that address. If the address is anycast or belongs to a CDN, the location describes the CDN, not the origin server.

Can I find the server location of a website behind Cloudflare?

Not from public DNS. A site behind Cloudflare resolves to Cloudflare's anycast addresses, so every lookup shows a Cloudflare data center. The origin location is visible in the hosting account, and sometimes in old DNS records from before the site moved behind Cloudflare.

Does server location affect SEO rankings?

Not directly. A distant server makes Time to First Byte slower, which delays Largest Contentful Paint, one of Google's Core Web Vitals. A CDN or a server in your audience's region keeps those numbers low.

What is the difference between the server location and the CDN edge location?

The server location (the origin) is where the website's files and database live. The CDN edge is a cache server close to visitors. When a site uses a CDN, a lookup shows the edge, because that is where visitors connect.

What does anycast mean in an IP lookup?

Anycast means many data centers announce the same IP address, and the network sends each visitor to the nearest one. The city in the lookup result is one label for the whole group. To see which data center answered you, check a header such as Cloudflare's cf-ray.

Wrapping up

Start with the IP lookup tool. If the address is not anycast, the country and city are a good answer. If it is anycast, check the response headers to see which edge you reached, and accept that the origin stays hidden. To see the company behind the server as well, run our hosting check or read how to find out who hosts a website.

Piotr Kulpinski

Written by

Founder of HostingChecker.online and a web developer with over a decade of experience in DNS, hosting infrastructure, and domain management. Piotr builds tools that help developers and site owners understand their web stack. Other products: Highseat, OpenAlternative, EuroAlternative, Revinel and Dirstarter.

Free lookup tool

Check any website's hosting

Enter a domain or IP to uncover hosting details, DNS records, and server location.