The simplest way to find a website's IP address
The fastest way is to use a command-line tool called nslookup (on Windows) or dig (on Mac and Linux). Open your terminal or command prompt, type nslookup example.com (replacing example.com with the actual domain), and press Enter. Within seconds, you'll see the IP address listed next to "Address:".
If you don't want to use the command line, you can use a web-based lookup tool instead. Sites like whatismyipaddress.com, mxtoolbox.com, or dnschecker.org have a search box where you type in the domain name and get the IP address when ready. No software to install, no terminal commands to remember.
Both methods do the same thing: they query the Domain Name System (DNS), which is the internet's address book. When you type a domain name into your browser, your computer asks DNS "what IP address goes with this domain?" and DNS answers. These tools let you ask that question directly.
Key Takeaways
- Use nslookup (Windows) or dig (Mac/Linux) in your terminal to find an IP address for free in seconds.
- Web-based lookup tools like whatismyipaddress.com or mxtoolbox.com work in any browser without installing anything.
- A single domain can point to multiple IP addresses, and the IP you see may belong to a hosting provider, not the website owner directly.
- Finding a website's IP address is public information — it's how the internet routes traffic — and there's nothing hidden or private about the lookup itself.
Why you might want to find a website's IP address
The most common reason is troubleshooting. If a website is down or loading slowly, you can ping the IP address directly to see if the server itself is responding. This tells you whether the problem is with the domain name system, the hosting provider, or something else entirely. It's a diagnostic step that helps you narrow down where the issue actually lives.
Another reason is security research. If you're investigating a suspicious website or checking whether two domains are hosted on the same server, the IP address tells you that. Scammers sometimes register many domain names that all point to the same IP address — finding that pattern can help you spot the connection.
You might also want to know which hosting provider runs a website you admire. The IP address often reveals that information, and you can then research whether that provider offers the features you need for your own site.
What you'll see when you look up an IP address
When you run a lookup, you'll typically see one or more IP addresses in the format 192.0.2.1 — four numbers separated by dots, each between 0 and 255. This is called an IPv4 address. Some lookups also show IPv6 addresses, which look like 2001:0db8:85a3:0000:0000:8a2e:0370:7334 — longer and using letters as well as numbers. Both formats serve the same purpose; IPv6 is just the newer standard.
You might also see multiple IP addresses for a single domain. This is normal and intentional. Large websites spread traffic across many servers for speed and reliability, so the domain name points to several IPs at once. Your browser picks one automatically.
The lookup results may also show you the nameserver — the DNS server that holds the records for that domain. This tells you which company manages the domain's DNS settings, which is often (but not always) the same company that hosts the website itself.
The difference between a domain's IP and a hosting provider's IP
When you look up a domain's IP address, you're not necessarily finding the website owner's server. You're finding the server that the domain currently points to. For most websites, that's a hosting provider's server — a company like GoDaddy, Bluehost, or AWS that rents server space to many customers.
A single IP address can host hundreds of websites at once. The hosting provider uses something called virtual hosting to separate them. When your browser connects to that IP address, it also sends the domain name you're trying to reach, and the server figures out which website to show you. So the IP address alone doesn't tell you everything — you need the domain name too.
If you're trying to figure out who actually owns or runs a website, the IP address is only part of the answer. You'd also want to check the domain's WHOIS record, which lists the registrant's contact information (though many owners keep that private). The IP address tells you where the website lives; the WHOIS record tells you who registered the domain.
Using nslookup on Windows
Open the Command Prompt by pressing Windows key + R, typing cmd, and pressing Enter. At the prompt, type nslookup example.com (replacing example.com with the domain you want to look up) and press Enter. Within a second or two, you'll see output that includes the IP address next to "Address:".
If you want more detailed information, you can add a flag to the command. For example, nslookup -type=MX example.com shows you the mail servers for that domain, and nslookup -type=NS example.com shows you the nameservers. These are optional — the basic command gives you the IP address you need.
Using dig on Mac and Linux
Open Terminal (on Mac, press Command + Space, type "terminal", and press Enter; on Linux, right-click the desktop and select "Open Terminal"). Type dig example.com (replacing example.com with your domain) and press Enter. The output is longer than nslookup, but the IP address appears in the section labeled "ANSWER SECTION" next to the domain name.
If you want a cleaner, shorter output, you can use dig example.com +short, which shows just the IP address with no extra information. Both versions work equally well — it's just a matter of preference.
Web-based lookup tools and what they show
Sites like whatismyipaddress.com, mxtoolbox.com, and dnschecker.org all work the same way: you type a domain name into a search box, click a button, and get results in seconds. No account needed, no software to install. These tools are useful if you're on a computer where you can't or don't want to open the command line.
Many of these sites also show extra information beyond just the IP address. They might tell you the hosting provider's name, the geographic location of the server, whether the domain is registered, and sometimes even a screenshot of what the website looks like. This extra context can be helpful for troubleshooting or research, though the core information — the IP address — is the same across all of them.
Be aware that some lookup sites try to sell you services or show ads. The information itself is free and accurate, but you may see promotional content on the page. Stick with well-known sites like the ones mentioned above, and you'll get reliable results without surprises.
Frequently Asked Questions
Can I find someone's home address from their website's IP address?
No. A website's IP address belongs to a hosting provider's server, not to the person who owns the website. The server might be in a data center in California, while the website owner lives in Ohio. The IP address tells you where the server is, not where the person is.
Is it illegal to look up a website's IP address?
No. IP addresses are public information — they have to be, or the internet couldn't route traffic to websites. Looking up an IP address is no different from reading a street address on a storefront. It's completely legal and happens millions of times a day.
Why does a website's IP address sometimes change?
Hosting providers sometimes move websites to different servers for maintenance, upgrades, or load balancing. When that happens, the domain's DNS record gets updated to point to the new IP address. This can take a few hours to propagate across the internet, which is why a website might be unreachable briefly during a server move.
What's the difference between looking up a domain's IP and looking up my own IP?
Your own IP address is assigned to your internet connection by your internet service provider. A domain's IP address is assigned to a server by a hosting provider. Tools like whatismyipaddress.com can show you both — your own IP appears automatically when you visit the site, and you can search for any domain's IP in the search box.
Can I use a website's IP address to visit it instead of typing the domain name?
You can type an IP address directly into your browser's address bar, but it often won't work the way you expect. Because many websites share a single IP address, the server needs to know which domain you're trying to reach. If you just give it the IP address, the server might show you the wrong website or an error page. The domain name is the reliable way to reach a website.