How to Find Out the IP Address of a Website

Every website on the internet lives at a numerical address — an IP address — even if you only ever see it as something like example.com. Knowing how to look up that address is a genuinely useful skill, whether you're troubleshooting a connection problem, investigating a slow-loading site, or just curious about where a domain actually points.

What Is a Website's IP Address?

An IP address (Internet Protocol address) is the actual numeric label assigned to a server hosting a website. When you type a domain name into your browser, a system called DNS (Domain Name System) translates that human-readable name into a machine-readable IP address behind the scenes — instantly and automatically.

There are two formats in use today:

  • IPv4 — the traditional format, written as four sets of numbers separated by dots (e.g., 93.184.216.34)
  • IPv6 — the newer, longer format designed to handle the internet's growth (e.g., 2606:2800:220:1:248:1893:25c8:1946)

Most websites still return an IPv4 address when looked up, though many servers support both.

Method 1: Use the ping Command 🖥️

The fastest way on any major operating system:

On Windows:

  1. Open Command Prompt (search for cmd)
  2. Type ping example.com and press Enter
  3. The IP address appears in brackets next to the first reply line

On macOS or Linux:

  1. Open Terminal
  2. Type ping example.com and press Enter
  3. The IP address appears immediately in the output

This works for the vast majority of standard websites. Keep in mind that some servers are configured to block ping requests (ICMP packets), so you might get no response even though the site loads fine in a browser — the IP address will still appear in the output header.

Method 2: Use nslookup or dig

These are DNS lookup tools built into most operating systems, and they give you more detail than ping.

nslookup (Windows, macOS, Linux):

nslookup example.com 

This returns the IP address the domain resolves to, plus the DNS server that answered the query.

dig (macOS, Linux — and Windows via third-party install):

dig example.com 

The dig command provides richer DNS output, including TTL values (how long the DNS record is cached) and the full answer chain. It's preferred by network professionals for deeper troubleshooting.

Method 3: Use an Online DNS Lookup Tool 🔍

If you'd rather not use the command line, several free web-based tools do the same job:

  • Search for "DNS lookup tool" or "IP lookup" in your browser
  • Enter the domain name and run the query
  • Results typically show the A record (IPv4) and AAAA record (IPv6)

These tools are particularly useful when you want to check what a domain resolves to from a different geographic location — helpful if you suspect regional DNS differences or CDN routing.

Method 4: Check the Browser's Developer Tools

Modern browsers let you inspect network activity directly:

  1. Open your browser and visit the website
  2. Press F12 (or right-click → Inspect) to open Developer Tools
  3. Go to the Network tab
  4. Reload the page
  5. Click on the first request (usually the domain itself)
  6. Look for the Remote Address field in the headers panel

This shows the exact IP address your browser connected to for that specific page load — useful when a domain uses load balancing and rotates between multiple server IPs.

Why You Might Get Multiple IP Addresses

A single domain name can resolve to several different IP addresses. This is common with:

  • CDNs (Content Delivery Networks): Services like Cloudflare or Akamai route users to the nearest server, so the IP you see may reflect your location, not the origin server's true address
  • Load balancers: High-traffic sites distribute requests across many servers
  • Round-robin DNS: Some domains cycle through a pool of IPs on each query

This means the IP address you find might be a proxy or edge node, not the physical server where the website's files actually live. That's by design — it improves speed and protects the origin server.

Variables That Affect What IP Address You'll Find

FactorEffect on Results
Your locationCDN-based sites may return a geographically local IP
DNS cache stateCached records may return an outdated IP temporarily
IPv4 vs IPv6 supportYour network and the server must both support IPv6 to resolve AAAA records
Cloudflare / proxy servicesThe returned IP belongs to the proxy, not the origin host
Time of lookupRound-robin DNS rotates IPs between queries

When the IP Address Isn't Straightforward

Some websites intentionally obscure their origin IP through reverse proxies or DDoS protection services. In those cases, any lookup method will return the proxy's IP — which is the intended behavior. Bypassing that isn't always possible through standard means, and attempting to do so raises legitimate ethical and legal questions depending on the context.

For routine purposes — troubleshooting DNS issues, checking propagation after a domain transfer, or understanding your network routing — the methods above cover most real-world needs.

What you find ultimately depends on how the website's hosting is structured, which DNS resolver your network uses, and where you're located when you run the query.