What you need to know about finding a website's IP address
A website's IP address is the numerical identifier that points your browser to the server where that website lives. Every domain name — like google.com or amazon.com — maps to at least one IP address behind the scenes. You can find this number using free tools built into your operating system or through online lookup services. The process takes less than a minute and requires no special software or account.
Why would you want to know this? You might be troubleshooting a connection problem, checking whether two websites run on the same server, verifying that a domain points where it should, or investigating a suspicious site. The IP address is public information — it has to be, or your browser couldn't find the website in the first place.
Key Takeaways
- The nslookup command (Windows) or dig command (Mac and Linux) shows a website's IP address directly from your computer without needing a third-party tool.
- Online lookup tools like MXToolbox, WHOIS lookup services, and DNS checkers work from any browser and show additional details like server location and hosting provider.
- A single domain can have multiple IP addresses, and a single IP address can host many different websites, so the IP alone does not tell you everything.
- The IP address you find is the current one — it can change if the website moves to a different server or hosting provider.
Using the command line on Windows
The fastest method on Windows is the nslookup command, which queries your computer's DNS resolver without opening a web browser. Press the Windows key, type "cmd", and press Enter to open Command Prompt. Type nslookup example.com (replacing example.com with the domain you want to check) and press Enter.
The output shows the domain name and its corresponding IP address. You will see a line that says "Address:" followed by a string of numbers separated by periods — that is the IPv4 address. If the domain has an IPv6 address as well, it will appear on a separate line. The command also shows which DNS server answered the query, though that is usually not relevant for your purposes.
Using the command line on Mac and Linux
Mac and Linux systems use the dig command instead of nslookup, though nslookup works on both. Open Terminal (on Mac, search for Terminal in Spotlight; on Linux, open your terminal application). Type dig example.com and press Enter.
The output is longer than nslookup and includes more technical detail. Look for the "ANSWER SECTION" — the IP address appears after the domain name and the letters "A" (for IPv4) or "AAAA" (for IPv6). If you prefer output closer to Windows nslookup, type nslookup example.com instead, which works the same way on Mac and Linux.
Using online lookup tools
If you do not want to use the command line, several free websites let you enter a domain and see its IP address instantly. MXToolbox (mxtoolbox.com) has a DNS lookup tool that shows the IP address plus the hosting provider and server location. WHOIS lookup services like whois.com or domaintools.com show IP address information along with domain registration details. Google DNS (dns.google) also has a lookup tool built in.
These tools work from any browser on any device. Type the domain name, click the lookup button, and the IP address appears within seconds. Most also show whether the domain has multiple IP addresses (common for large websites that distribute traffic across many servers) and whether the IP address is associated with a content delivery network like Cloudflare or Akamai.
Understanding what the IP address tells you
An IP address is a single point of information — it tells you where the website's server is located geographically and which company owns that server, but not much else. Many websites share a single IP address through a technology called shared hosting, so the same IP might serve dozens of unrelated domains. Conversely, large websites often use multiple IP addresses spread across different servers in different countries.
If you are checking whether two websites are related, the IP address alone is not proof either way. Two unrelated sites might share an IP (if they use the same hosting company), or one company might run two sites on completely different IPs. The IP address is useful for troubleshooting connection issues or checking that a domain points to the right server, but it does not reveal ownership or purpose.
What happens when an IP address changes
Websites move servers regularly — when a company switches hosting providers, upgrades to a larger server, or migrates to a new data center. When that happens, the domain's IP address changes. If you checked a website's IP address six months ago and check it again today, it might be completely different.
This is normal and expected. DNS (the system that translates domain names to IP addresses) propagates the change within hours or days. If you are troubleshooting a connection problem and suspect the IP address changed, checking it again will show you the current address. If a website is unreachable and you know its old IP address, that is a sign the domain may have moved or the hosting account may have been suspended.
Checking IP addresses for security reasons
If you receive a suspicious email with a link or are unsure whether a website is legitimate, looking up its IP address can provide context. An IP address registered to a major company's data center (like Amazon Web Services or Google Cloud) suggests the site is hosted professionally. An IP address from an unusual location or registered to an individual rather than a company might warrant extra caution, though this is not a definitive security check.
Never rely on IP address alone to determine if a site is safe. Legitimate websites can be hosted anywhere, and attackers can rent servers from reputable providers. Use the IP address as one piece of information alongside other checks: does the domain name match what you expect, does the website have a valid SSL certificate (the lock icon in your browser), and does the site look professionally maintained.
Frequently Asked Questions
Can I find the IP address of a website that is down or not loading?
Yes. The IP address is stored in DNS records, which exist independently of whether the website is currently online. You can look it up using nslookup, dig, or an online tool even if the website itself is not responding. This is actually useful for troubleshooting — if you can look up the IP but the website will not load, the problem might be with the server itself rather than DNS.
What is the difference between IPv4 and IPv6?
IPv4 addresses look like four numbers separated by periods (192.168.1.1), while IPv6 addresses are longer and use colons and letters (2001:0db8:85a3::8a2e:0370:7334). IPv6 is the newer standard with many more possible addresses. Most websites have both, though IPv4 is still more common. Your lookup tool will show both if they exist.
If a website has multiple IP addresses, which one should I use?
You do not need to use any of them — your browser handles the IP address automatically when you type the domain name. Multiple IPs usually mean the website distributes traffic across several servers for speed and reliability. If you are troubleshooting a specific connection problem, your internet service provider or the website's support team can tell you which IP is relevant.
Is it illegal to look up a website's IP address?
No. IP addresses are public information that your browser requests every time you visit a website. Looking up an IP address is no different from checking a business's street address — it is public data. You are not accessing anything private or restricted.
Can I find the IP address of a website behind a proxy or CDN?
You will find the IP address of the proxy or CDN service, not the original server. Services like Cloudflare sit between the website and your browser, so the IP you look up belongs to Cloudflare, not the actual website owner. This is intentional — it protects the real server's location and adds security. The website owner can still be contacted through the domain name regardless.