Every website you visit lives on a server, and every server has an IP address — a string of numbers like 142.250.190.14 that computers use to find each other. Domain names like google.com are just human-friendly labels; underneath, it's IP addresses doing the real work.
Knowing how to find a website's IP address is useful more often than you'd expect: troubleshooting connection problems, investigating suspicious sites, checking where a site is hosted, or just satisfying curiosity. Here's every method, from the 10-second easy way to the geekier options.
The fastest method requires zero technical skill. Just enter the domain into a domain-to-IP lookup tool and it returns the website's IP address instantly.
This works because the tool queries the domain's DNS records — the internet's phone book — and shows you the address the domain points to. It takes about five seconds and works for any public website. If you only need the IP once in a while, this is all you'll ever need.
If you like doing things yourself, your computer already has the tools built in.
On Windows (Command Prompt or PowerShell):
nslookup example.com
or
ping example.com
The ping command shows the IP in brackets before it starts sending test packets (press Ctrl+C to stop it).
On Mac or Linux (Terminal):
nslookup example.com
or
dig example.com +short
dig with +short gives you just the IP address — clean and scriptable.
These commands query your configured DNS server, so the result reflects what your network sees. That's usually what you want, but keep in mind the caveats below.
An IP address is just one piece of a domain's DNS setup. If you're troubleshooting email delivery, verifying domain ownership, or investigating a site more deeply, you'll want the full picture: A records, MX records, TXT records, name servers, and more.
A DNS records lookup tool shows all of a domain's published DNS records in one view. This is the method system administrators and SEO professionals reach for when the simple IP lookup isn't enough — for example, when checking whether a domain's mail records are configured correctly or spotting suspicious DNS changes.
Here's a trick hiding in your browser:
That remote address is the IP your browser connected to. It's a handy method when you want to confirm which server actually served the page — useful when a site uses multiple servers or a CDN.
If you look up the same site twice and get different addresses — or your friend in another country gets a different result — nothing is broken. Several normal things cause this:
142.250.190.14) and an IPv6 address (a longer hexadecimal string). Different tools may show different versions.So if you're investigating a site behind Cloudflare, know that the IP you find belongs to Cloudflare's network — the origin server's address is deliberately hidden. That's a feature, not a bug.
Why would you actually need a website's IP address? Common reasons include:
Looking up a website's IP address is completely legal — it's public information published in DNS for the explicit purpose of letting people connect. You're not hacking anything; you're reading the internet's phone book.
What you shouldn't do is use the information aggressively: port-scanning, DDoS attempts, or trying to bypass security measures is illegal in most jurisdictions. Lookup is fine; attacking is not. The line is clear and worth respecting.
Enter the domain into a free online domain-to-IP lookup tool — it queries public DNS records and returns the IP in seconds. Alternatively, use nslookup or ping from your computer's command line.
Large websites use CDNs and load balancers that route you to different servers based on your location and current load. The site isn't changing — you're just seeing different doors into the same building.
Generally no, and that's intentional. Cloudflare hides the origin server's IP to protect it from direct attacks. The IP you'll find belongs to Cloudflare's edge network. (Bypassing this protection to attack the origin would be illegal.)
IPv4 addresses are the familiar four-number format (e.g., 192.0.2.1) — but we've nearly run out of them. IPv6 uses a longer hexadecimal format with vastly more addresses. Most modern sites support both.
No. DNS records are public by design. IP lookup is a normal, legitimate network diagnostic activity. It only becomes a problem if you use the information to attack or harass.
Finding a website's IP address takes seconds once you know how — and now you know four ways. For quick one-off lookups, nothing beats an online tool. For deeper investigation, DNS records and command-line utilities give you the full story.
Try it now: enter any domain into Seovaro's free Domain to IP lookup tool and get its IP address instantly.