← IPLocatorBlog

Networking · 5 min read · May 25, 2026

How to Find the IP Address of Any Website

Every website has an IP address behind its domain name. Here's how to find it using built-in tools on Windows, Mac, and Linux — no software needed.

Article Top Ad · 728×90 · AdSense Slot Ready

Every domain name like google.com or github.com is actually a human-readable alias for an IP address. When you type a URL into your browser, your computer silently translates it to an IP address using DNS (Domain Name System) before making the connection. This translation is called a DNS lookup.

Here's how to see the IP address behind any website, using tools already on your computer.

Method 1: Using Ping (Windows, Mac, Linux)

The ping command sends a test packet to a server and shows you its IP address in the process. Read our full ping guide →

On Windows:

  1. Press Win + R, type cmd, press Enter
  2. Type: ping google.com
  3. The IP address appears in brackets in the first line

On Mac or Linux:

  1. Open Terminal
  2. Type: ping -c 1 google.com

Example output:

PING google.com (142.250.80.46): 56 data bytes

The number in brackets — 142.250.80.46 — is the IP address.

Method 2: Using nslookup (Most Detailed)

nslookup is a DNS lookup tool built into Windows, Mac, and Linux. It's more informative than ping.

On Windows (Command Prompt):

nslookup google.com

On Mac/Linux (Terminal):

nslookup google.com

Example output:

Server:  8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
Name:    google.com
Address: 142.250.80.46

You'll see both the DNS server used for the lookup and the resolved IP address.

Looking Up Specific Record Types

DNS has different record types. You can query them directly:

nslookup -type=A google.com      # IPv4 address
nslookup -type=AAAA google.com   # IPv6 address
nslookup -type=MX google.com     # Mail server
nslookup -type=NS google.com     # Name servers

Method 3: Using dig (Mac and Linux)

dig is more powerful than nslookup and preferred by network professionals.

dig google.com

The IP appears in the ANSWER SECTION:

;; ANSWER SECTION:
google.com.     300     IN      A       142.250.80.46

For a cleaner output showing just the IP:

dig +short google.com

Method 4: Online Lookup Tools

If you prefer not to use the command line, you can enter any domain into IPLocator to look up its IP address and see detailed location, ISP, and network information.

Why Do Large Sites Have Multiple IP Addresses?

If you run ping google.com multiple times, you might get a different IP each time. This is normal — large websites use multiple servers and load balancers spread across data centres worldwide. DNS returns different IPs to distribute traffic across them.

This is called DNS round-robin or Anycast routing. It's how Google, Cloudflare, and other high-traffic sites stay fast and available globally. Read more about how DNS works →

What Can You Do With a Website's IP Address?

Once you have a website's IP, you can:

Reverse Lookup — Finding the Domain from an IP

You can also go the other direction — from IP to domain:

nslookup 142.250.80.46

Or with dig:

dig -x 142.250.80.46

This performs a reverse DNS lookup. It doesn't always return a clean domain name — many IPs resolve to generic server hostnames — but it's useful for identifying who owns an IP address.

CDN and Cloudflare IPs

Many websites sit behind a CDN (Content Delivery Network) like Cloudflare. In these cases, the IP you find will belong to Cloudflare's infrastructure, not the actual origin server. The real server IP is hidden intentionally for security and performance.

You can identify Cloudflare IPs by looking them up at IPLocator — the ISP field will show "Cloudflare" or similar.

Article Bottom Ad · 300×250 · AdSense Slot Ready

CHECK YOUR IP NOW

See What Your IP Reveals →

Related Articles

Static vs Dynamic IP Address — What's the Difference?
4 min read · June 1, 2026
What is DNS and How Does It Work?
6 min read · May 18, 2026
IPv4 vs IPv6 — What's the Difference?
4 min read · May 12, 2026
← All articles