How to Find the IP Address of a Website
Every website lives on a server, and every server has an IP address. When you type a domain like example.com into your browser, the Domain Name System (DNS) quietly translates that name into an IP address so your computer knows where to send the request. Finding that IP address is useful for troubleshooting connectivity, checking where a site is hosted, investigating suspicious links, or configuring firewall and DNS rules. This guide covers five reliable methods, from a single click to the command line.
Method 1: Use an online IP lookup tool (easiest)
The fastest way is to let a tool do the DNS resolution for you. Enter the domain into our IP Address Lookup, and it returns the site's IP address along with the hosting provider, approximate location, and the network (ASN) that owns the address block. This works from any device — desktop or mobile — with nothing to install, which is why it's the method most people should start with.
Because it also shows the hosting country and ISP, an online lookup answers the follow-up question most people actually have: not just "what is the IP?" but "who is hosting this site and where?"
Method 2: Ping the domain (Windows, Mac, Linux)
The ping command shows a site's IP address as a side effect of testing connectivity. Open Command Prompt on Windows or Terminal on Mac/Linux and type: ping example.com. The first line of output includes the resolved IP in brackets, for example "Pinging example.com [93.184.216.34]". Ping is built into every operating system, so there's nothing to install.
Note that some servers are configured to ignore ping (ICMP) requests, so you may see the IP resolve but get "Request timed out" for the replies. The IP is still valid — the server is simply not responding to pings.
Method 3: Use nslookup or dig
For a DNS-specific answer, nslookup (Windows/Mac) and dig (Mac/Linux) query DNS directly. Type nslookup example.com and read the "Address" line, or dig example.com +short for just the IP. These tools are ideal when a domain has multiple IPs (common for large sites behind load balancers or CDNs) because they list every address the domain resolves to.
Method 4: Run a full DNS lookup
A website's IP is only one of its DNS records. If you want the complete picture — the A record (IPv4), AAAA record (IPv6), mail servers (MX), and more — run a DNS Lookup. This is the right tool when you're diagnosing email delivery, verifying a migration, or checking whether a domain has IPv6 enabled.
Method 5: Check WHOIS for ownership
Finding the IP is often step one; the next question is who owns it. A WHOIS Lookup returns the registrar, registration and expiry dates, and the organization behind a domain or IP block. Combined with the hosting details from an IP lookup, WHOIS helps you judge whether a site is legitimate — useful when you're vetting an unfamiliar link.
Why a website can have more than one IP address
Large sites rarely sit on a single server. Content delivery networks (CDNs) like Cloudflare, Akamai, and Fastly answer with the IP of the nearest edge server, so the IP you see may differ from someone querying in another country — and may not be the origin server at all. That's expected behavior, not an error, and it's why two lookups of the same domain can return different addresses.