How to Find Someone's IP Address -- Complete Guide
Multiple methods to find IP addresses for websites, emails, and your own network
Table of Contents
1. What is an IP Address?
An IP (Internet Protocol) address is a unique numerical identifier assigned to every device connected to the internet. Think of it as a digital mailing address -- it tells other computers where to send data so that web pages, emails, and files reach the right destination. Without IP addresses, the internet simply could not function.
There are two versions of IP addresses in use today. IPv4 addresses look like 192.168.1.1 (four groups of numbers separated by dots), while the newer IPv6 addresses are much longer, like 2001:0db8:85a3::8a2e:0370:7334. IPv4 provides about 4.3 billion unique addresses, which have largely been exhausted, driving the adoption of IPv6 which supports an effectively unlimited number of addresses.
Your public IP address is assigned by your Internet Service Provider (ISP) and is visible to every website and service you connect to. It is different from your private (local) IP address, which is only used within your home or office network. To learn more about how IP addresses work, read our detailed guide on What is My IP.
Quick Check: Want to see your own public IP address right now? Use our IP Lookup tool to instantly see your IP, location, and ISP information.
2. Find Your Own IP Address
The easiest way to find your own public IP address is to use an online lookup tool. Your public IP is the address that websites and external services see when you connect to them. Here are the most reliable methods:
Method 1: Use an Online IP Lookup Tool
The fastest approach is to visit our IP Lookup page, which instantly displays your public IP address along with your approximate location, ISP, and other network details. No software installation or technical knowledge is required.
Method 2: Command Line
On Windows, open Command Prompt and type ipconfig to see your local network IP. On macOS or Linux, use ifconfig or ip addr. Note that these commands show your private (local) IP address, not your public one. To find your public IP from the command line, you can use curl ifconfig.me on macOS/Linux.
Method 3: Check IPv6 Support
Many networks now support both IPv4 and IPv6. Use our IPv6 test to check whether your connection supports the newer protocol and see both your IPv4 and IPv6 addresses if available.
Check Your IP Now IPv6 TestPublic vs Private IP: Your router has one public IP assigned by your ISP. All devices on your home network share this public IP but each has a unique private IP (like 192.168.x.x) for local communication.
3. Find a Website's IP Address
Every website is hosted on a server with an IP address. When you type a domain name like "example.com" into your browser, the DNS (Domain Name System) translates it to an IP address behind the scenes. Here are several methods to find a website's IP:
Method 1: DNS Lookup
The most comprehensive method is to perform a DNS lookup, which queries the domain name system to find all associated IP addresses and DNS records. Our DNS Lookup tool can resolve any domain name and show A records (IPv4), AAAA records (IPv6), MX records (mail servers), CNAME records, and more.
Method 2: Ping Command
Open your terminal or command prompt and type ping example.com. The response will show the IP address the domain resolves to, along with latency information. You can also use our online Ping Test tool if you prefer a browser-based approach. Note that some websites block ICMP ping requests for security reasons.
Method 3: nslookup / dig Commands
For more detailed DNS information, use nslookup example.com on any platform, or dig example.com on macOS/Linux. These commands show which DNS servers responded and the full resolution chain, which is useful for troubleshooting DNS issues.
DNS Lookup Ping TestCDN Note: Many large websites use Content Delivery Networks (CDNs) like Cloudflare or AWS CloudFront. In these cases, the IP you find will belong to the CDN edge server, not the origin server. The actual server IP is hidden behind the CDN for security and performance.
4. Find IP from Email Headers
Email headers contain a wealth of technical information about the path an email took from sender to recipient. In many cases, you can find the sender's IP address embedded in these headers. This technique is commonly used for investigating spam, phishing attempts, and verifying the origin of suspicious emails.
How to View Email Headers
- Gmail: Open the email, click the three-dot menu in the upper right, and select "Show original." The full headers will appear in a new tab.
- Outlook: Open the email, click File > Properties, and look at the "Internet headers" section at the bottom of the dialog.
- Apple Mail: Open the email, go to View > Message > All Headers to display the complete header information.
Analyzing the Headers
Look for the "Received:" lines in the headers -- these are added by each mail server that handled the message. The bottommost "Received:" header is typically closest to the original sender. Look for IP addresses in these lines. Use our Email Header Analyzer to automatically parse and visualize the email's journey.
Email Header AnalyzerLimitations: Major email providers like Gmail, Outlook.com, and Yahoo Mail typically strip the sender's IP from outgoing emails and replace it with their own server IP. This means you will often see Google's or Microsoft's server IP rather than the sender's actual IP address. This method is most effective with emails sent from self-hosted mail servers or smaller providers.
5. IP Geolocation & What an IP Address Reveals
Once you have an IP address, you can use geolocation services to determine the approximate physical location associated with it. IP geolocation works by mapping IP address ranges to geographic locations using databases maintained by companies like MaxMind, IP2Location, and DB-IP.
What IP Geolocation Can Reveal
- Approximate location: Country, region/state, and city (typically accurate within 10-50 miles)
- ISP name: The internet service provider assigned to that IP range
- Organization: The company or entity that owns the IP block
- ASN: The Autonomous System Number identifying the network operator
- Connection type: Whether the IP belongs to a residential, business, or data center network
What IP Geolocation Cannot Reveal
- Exact street address or home location -- accuracy is limited to city level at best
- Personal identity -- an IP alone does not reveal someone's name, phone number, or email
- Browsing history -- only the ISP has access to this, and only with legal authority
Use our IP Map tool to visually plot any IP address on an interactive map and see all available geolocation data.
View IP on MapAccuracy Note: IP geolocation accuracy varies significantly. For broadband connections in urban areas, city-level accuracy is common. For mobile connections and VPNs, the location shown can be hundreds of miles off. Never rely on IP geolocation for precise location tracking.
6. Legal & Ethical Considerations
Before attempting to find or trace an IP address, it is critical to understand the legal and ethical boundaries. While looking up publicly available IP information is generally lawful, how you use that information matters greatly.
Important Warning: Using IP addresses to hack into systems, engage in stalking or harassment, launch DDoS attacks, or access unauthorized networks is illegal in virtually every jurisdiction. Violations can result in severe criminal penalties including fines and imprisonment. Always use IP information responsibly.
What is Legal
- Looking up your own IP address and network information
- Performing DNS lookups on publicly registered domain names
- Analyzing email headers of messages you have received
- Using Whois to look up domain registration information
- Checking IP geolocation for security monitoring on your own systems
What is Illegal or Unethical
- Using IP information to hack into or probe someone else's systems
- Stalking, harassing, or threatening individuals based on their IP location
- Launching denial-of-service attacks against IP addresses
- Deceiving someone into revealing their IP address for malicious purposes
For Law Enforcement: If you need to identify an individual behind an IP address for a legal investigation, only ISPs can link an IP to a specific subscriber. This requires proper legal authority such as a court order or subpoena.
7. How to Protect Your IP Address
If you are concerned about others finding your IP address, there are several effective methods to protect your online identity. These tools replace your real IP with a different one, making it much harder for anyone to trace your internet activity back to you.
Use a VPN
A Virtual Private Network (VPN) is the most popular and effective way to hide your IP address. When connected to a VPN, all your traffic is routed through an encrypted tunnel to the VPN server, and websites see the VPN server's IP instead of yours. Read our comprehensive VPN Guide to learn how to choose and use a VPN effectively.
Use the Tor Network
The Tor network routes your traffic through multiple volunteer-operated relays around the world, making it extremely difficult to trace. Each relay only knows the previous and next hop, so no single point can identify both who you are and what you are accessing. However, Tor is significantly slower than a VPN.
Use a Proxy Server
A proxy server acts as an intermediary between your device and the internet. While it hides your IP from websites, most proxies do not encrypt your traffic like a VPN does. Proxies are useful for quick IP masking but should not be relied upon for privacy-sensitive activities.
For a detailed comparison of all IP hiding methods, including pros and cons of each approach, see our guide on How to Hide Your IP Address.
VPN Guide Hide IP Address8. Advanced IP Investigation Tools
For network administrators, security researchers, and IT professionals, there are more advanced tools available for investigating IP addresses and understanding network infrastructure:
Whois Lookup
A Whois lookup reveals the registration details of an IP address or domain name, including the registered owner organization, contact information, registration dates, and the regional internet registry (ARIN, RIPE, APNIC, etc.) responsible for that IP block.
ASN Lookup
Every major network on the internet is identified by an Autonomous System Number (ASN). Our ASN Lookup tool lets you discover which organization owns a network, how many IP addresses they control, and which other ASNs they peer with. This is invaluable for understanding large-scale network architecture.
Traceroute
A traceroute maps the exact path that data packets take from your computer to a destination IP. It shows every router hop along the way, with latency measurements at each point. This is essential for diagnosing network performance issues and understanding routing paths.
| Tool | Best For | Information Provided |
|---|---|---|
| Whois | Ownership lookup | Registrant, dates, contacts |
| ASN Lookup | Network analysis | Organization, IP ranges, peering |
| Traceroute | Path analysis | Hop-by-hop routing, latency |
| Reverse DNS | Hostname discovery | PTR records, server names |
| Blacklist Check | Reputation check | Spam/abuse database status |
Pro Tip: Combine multiple tools for a complete picture. Start with a Whois lookup to identify the owner, then use ASN lookup to understand the network, and run a traceroute to map the path. This combined approach gives you the most comprehensive understanding of any IP address.
9. Frequently Asked Questions
Is it legal to find someone's IP address?
Finding a publicly available IP address is generally legal. IP addresses are shared with every website you visit and every server you connect to. However, using an IP address to hack into systems, stalk individuals, or engage in harassment is illegal. Always use IP information responsibly and within the bounds of applicable laws.
Can you find the exact location from an IP address?
No, an IP address only provides an approximate geographic location, typically accurate to the city or regional level. It cannot reveal a precise street address or home location. IP geolocation databases estimate location based on ISP registration data, which can sometimes be off by many miles or even show the wrong city entirely.
How do I find the IP address of a website?
You can find a website's IP address using our DNS Lookup tool, the ping command (ping example.com), or the nslookup command. These tools resolve the domain name to its associated IP addresses and can show additional DNS records like MX, CNAME, and TXT.
Can someone hide their IP address from me?
Yes, people can hide their real IP address using VPNs, proxy servers, or the Tor network. When these tools are used, you will see the IP of the VPN server or proxy rather than the person's actual IP. There is no reliable way to bypass these privacy tools to uncover the real IP address. Read our Hide IP Address guide for more details.
Can I find an IP address from a social media profile?
No, social media platforms do not expose users' IP addresses to other users. The platform itself logs IP addresses for security purposes, but this information is only accessible to the platform and law enforcement with proper legal authority. Any tool claiming to reveal social media IP addresses is likely a scam.