What you're actually looking for
When you visit a website, your computer connects to a server using an IP address — a string of numbers like 142.251.41.14. The domain name (like google.com) is just a human-readable label that points to that IP address. Finding the IP address from a URL means translating that domain name back to its numeric address.
You might need this for troubleshooting network problems, understanding where a website is hosted, or checking if two domains point to the same server. The process takes less than a minute and works from any computer with internet access.
Key Takeaways
- The simplest method is using your computer's built-in command line tool — either Command Prompt on Windows or Terminal on Mac — with a single command.
- Online lookup tools like MXToolbox or WHOIS databases let you find IP addresses without opening a command line, though the results are the same.
- A website can have multiple IP addresses, and one IP address can host multiple websites, so the IP alone does not tell you everything about a site's ownership.
- The IP address you find is the server's address, not the website owner's personal address or location.
Using Command Prompt on Windows
The fastest way on Windows is the nslookup command, which queries the domain name system directly from your computer. Open Command Prompt by pressing the Windows key, typing "cmd", and pressing Enter. You will see a black window with a blinking cursor.
Type this exactly: nslookup google.com (replace google.com with whatever domain you want to look up), then press Enter. Within a second, you will see output that includes "Address:" followed by a string of numbers. That number is the IP address. You may see multiple addresses if the domain uses load balancing across several servers.
If you see "Non-existent domain" or a timeout error, the domain either does not exist, is currently offline, or your internet connection is having trouble. Try a domain you know works, like google.com or amazon.com, to test whether the command itself is working.
Using Terminal on Mac or Linux
Mac and Linux users have the same tool built in. Open Terminal (on Mac, press Command + Space, type "terminal", and press Enter). Type the same command: nslookup google.com, replacing google.com with your target domain.
The output format is identical to Windows — look for the line that says "Address:" and the number that follows it. If you prefer a different command, dig google.com also works on Mac and Linux and shows more detailed DNS information, though the basic IP address appears in the same format.
Using an online lookup tool
If you do not want to use the command line, websites like MXToolbox (mxtoolbox.com) and WHOIS lookup services let you paste a domain name into a form and get the IP address instantly. These tools do the same DNS lookup your computer would do, but display the results in a web page instead of a command window.
Go to mxtoolbox.com, click "DNS Lookup" in the left menu, paste your domain name into the box, and click "MX Lookup". The results show the IP address under "A Record". Other free tools like whatismyipaddress.com and ipaddress.com work the same way — paste the domain, get the IP back.
The advantage of online tools is that you do not need to remember command syntax. The disadvantage is that you are sending your query through a third-party website, though this is not a security risk for public domain lookups.
Understanding what the IP address tells you
The IP address you find is the address of the web server hosting the website, not the person who owns the domain. A single server can host hundreds of websites, so multiple domains might point to the same IP. Conversely, one domain might point to several IP addresses if the hosting company uses load balancing to spread traffic across multiple servers.
You can use a reverse IP lookup tool to see what other domains point to the same IP address. Sites like bing.com have a reverse IP search feature, or you can use tools like robtex.com. This shows you if a domain is hosted on a shared server with other sites, but it does not reveal the domain owner's identity — that information comes from WHOIS records, which are separate from IP lookups.
Troubleshooting common issues
If nslookup returns "Non-existent domain", the domain either does not exist, is misspelled, or has expired. Double-check the spelling and try again. If you get a timeout or "Server failed to respond", your internet connection may be having trouble reaching the DNS server. Try restarting your router or switching to a different DNS server (like 8.8.8.8, Google's public DNS).
Some corporate networks block DNS lookups or use their own internal DNS servers, which can return different results than the public internet. If you are on a work or school network and the lookup fails, try the same command on your phone using mobile data instead, or use an online lookup tool from outside the network.
If you see multiple IP addresses for one domain, that is normal — the domain is using multiple servers. All of those addresses are correct. If you need to know which server you personally connect to when you visit the site, that depends on your location and the hosting company's routing rules, and it may change from visit to visit.
When you might need this information
Network administrators use IP lookups to diagnose connectivity problems — if a website is down, knowing its IP address lets you test whether the server itself is reachable. Developers use it to verify that a domain points to the correct server after a migration. Security researchers use it to map out hosting infrastructure or identify phishing sites hosted on suspicious servers.
For most everyday purposes, you do not need the IP address. But if you are troubleshooting a network issue, setting up DNS records, or simply curious about how websites work, this is the fastest way to find it.
Frequently Asked Questions
Can I find someone's home address from their website's IP address?
No. The IP address belongs to the web hosting company's server, not to the person who owns the domain. Even if you find the IP address, you cannot trace it back to a home address without additional information that hosting companies do not publicly share. If you need to contact a website owner, look for a contact page or WHOIS information instead.
Why does the same domain sometimes show different IP addresses?
Large websites use multiple servers in different locations to handle traffic and improve speed. Your computer might connect to a different server each time depending on where you are and how the hosting company routes traffic. This is normal and intentional.
Is it illegal to look up a website's IP address?
No. IP addresses for websites are public information — that is how the internet works. Looking up an IP address is not hacking or illegal. However, attempting to break into a server or disrupt its service is illegal, regardless of whether you know its IP address.
What is the difference between nslookup and ping?
Both tools can show you an IP address, but they do different things. nslookup translates a domain name to an IP address. ping sends a test message to an IP address to see if the server is responding. Use nslookup to find the address; use ping to test if it is reachable.
Can I use this to find the IP address of someone's personal computer?
No. This method only works for websites and domains. Personal computers do not have domain names pointing to them (unless someone set that up intentionally). If you need to find a computer's IP address on your own network, that requires different tools and access to your local network settings.