The quickest way to find a website's IP address
You can find a website's IP address using your computer's built-in command line tools — no special software needed. On Windows, open Command Prompt and type nslookup example.com (replace example.com with the actual domain). On Mac or Linux, open Terminal and type dig example.com or host example.com. The IP address appears in the results within seconds.
If you prefer not to use the command line, several free websites do this lookup for you. Sites like whatismyipaddress.com, mxtoolbox.com, and dnschecker.org have search boxes where you paste the domain name and get the IP address instantly. These tools show the same information as the command line method but in a simpler format.
Key Takeaways
- Windows users can find an IP address by opening Command Prompt and typing nslookup followed by the domain name.
- Mac and Linux users can use Terminal with the dig or host command to retrieve the same information.
- Free online lookup tools like whatismyipaddress.com and mxtoolbox.com show IP addresses without requiring any technical knowledge.
- A website may have multiple IP addresses if it uses a content delivery network or load balancing across servers.
- The IP address you find is the address of the web server hosting the site, not the location of the website's owner.
Using Command Prompt on Windows
Open the Start menu and search for "Command Prompt" or "cmd". Click to open it. At the prompt, type nslookup google.com (or any domain you want to look up) and press Enter. The tool returns the IP address under "Address:" in the results.
You may see multiple addresses if the domain uses multiple servers. The first address listed is usually the primary one. If you want more detailed information, you can type nslookup -type=A example.com to see only the main IP address, or nslookup -type=MX example.com to see mail server addresses instead.
Using Terminal on Mac or Linux
Open Terminal (on Mac, search for it in Spotlight; on Linux, right-click the desktop or use your application menu). Type dig example.com and press Enter. The IP address appears in the "ANSWER SECTION" next to the domain name. The format shows the domain, then a number (the time-to-live value), then "IN A" (meaning internet address), then the IP address itself.
If dig is not installed on your Linux system, use host example.com instead — it produces simpler output. Type the command and press Enter; the IP address appears on the first line of results. Both commands work the same way and retrieve information from your system's DNS resolver.
Using free online lookup tools
Open a web browser and go to whatismyipaddress.com, mxtoolbox.com, or dnschecker.org. Each site has a search box on the homepage. Type the domain name (for example, wikipedia.org) and click the search button. The IP address displays within a few seconds, usually at the top of the results page.
These tools often show additional information alongside the IP address — the hosting company, the country where the server is located, and sometimes whether the IP is flagged as suspicious. This extra context can be useful if you are checking whether a website is hosted where you expect it to be. The lookup is instant and requires no account or registration.
What the IP address tells you and what it does not
The IP address you find is the location of the web server that hosts the website's files. It tells you where the server physically sits and which company operates it. You can use this information to check if a website is hosted in a particular country, or to see if multiple domains share the same server.
The IP address does not tell you who owns the website or where the website's owner lives. A person in New York can host their website on a server in Germany. A large company may host the same website across dozens of servers in different countries, and you may get a different IP address each time you look it up depending on which server responds. This is normal and does not indicate a problem.
Why a website might have multiple IP addresses
Large websites often use content delivery networks (CDNs) or load balancing, which means the domain points to different IP addresses depending on where you are located or when you check. This spreads traffic across multiple servers so the site loads faster and stays online if one server fails. When you look up the IP address, you may get a different result than someone else looking up the same domain at the same time.
Some websites also use services like Cloudflare or Akamai, which sit between the visitor and the actual web server. When you look up the IP address, you get the address of Cloudflare's or Akamai's server, not the original hosting company's server. This is intentional — these services protect websites from attacks and improve performance. The actual origin server's IP address is hidden from public view.
Checking if a domain points to the right server
If you own a website or manage one for a business, you may need to check that the domain points to the correct IP address after moving hosts or updating DNS records. Look up the domain using one of the methods above and compare the IP address to what your hosting company told you it should be. If they do not match, the DNS change has not finished spreading across the internet yet — this can take up to 48 hours.
If the IP address is still wrong after 48 hours, log into your domain registrar (the company where you bought the domain name) and check the DNS settings. Make sure the A record points to the IP address your hosting company provided. If you are unsure how to do this, contact your hosting company's support team — they can walk you through the steps or make the change for you.
Frequently Asked Questions
Can I find the IP address of a website that is behind a proxy or VPN?
No. If a website uses a proxy service like Cloudflare, you will see the proxy's IP address, not the original server's address. The original server's IP is intentionally hidden. If the website owner uses a VPN to hide their location, that does not affect what you see — you still get the hosting company's IP address, not the owner's personal IP.
Is it legal to look up a website's IP address?
Yes. IP addresses are public information. Anyone can look them up using free tools. Looking up an IP address is not hacking and does not access any private information. It is the same as looking up a business's street address in a phone book.
Why do I get a different IP address when I look up the same domain twice?
The website likely uses load balancing or a content delivery network. These systems rotate between multiple servers to spread traffic. Getting different results on different lookups is normal and expected. Both IP addresses are correct — they both host the same website.
Can I find out who owns a website using its IP address?
You can find out which company hosts the website, but not necessarily who owns it. Use a WHOIS lookup tool (like whois.net or icann.org's lookup) to search the domain name itself, not the IP address. That shows the domain owner's information if they did not pay for privacy protection.
What should I do if I find an IP address that looks suspicious?
If you suspect a website is fraudulent or dangerous, report it to the Federal Trade Commission at reportfraud.ftc.gov or to your browser's security team. Do not visit the site if you are unsure about it. The IP address alone does not prove a site is malicious — many legitimate sites share IP addresses with other websites.