
How to Find Someone’s IP Address: A Comprehensive Guide
Every device on a network has an IP address, and there are legitimate reasons to look one up: tracing a problem on your own network, checking who is visiting your website, or investigating a suspicious email. This guide explains what an IP address is, which methods actually work, what they can and cannot tell you, and where the legal and ethical limits are. It also shows how to protect your own IP address.

What Is an IP Address?
An IP address is a number that identifies a device on a network so data can reach it. It does two jobs: it identifies the device (or its network interface), and it tells routers where to send data packets.
There are two versions. IPv4 addresses are 32-bit numbers written as four decimal numbers separated by dots, such as 192.168.1.1. Because the pool of IPv4 addresses has largely run out, IPv6 was introduced. IPv6 addresses are 128-bit numbers written in hexadecimal and separated by colons, such as 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
Addresses are also either public or private. Public IP addresses are globally unique and reachable over the internet. Private addresses are used inside local networks and are not routable on the public internet. Devices on a private network reach the internet through Network Address Translation (NAT), which lets many devices share a single public IP address. For more on local networks, see What Is LAN?
Why Would You Need to Find an IP Address?
- Network troubleshooting: IT administrators identify device IP addresses to diagnose connectivity problems, monitor traffic and find address conflicts.
- Cybersecurity: Seeing the IP addresses of incoming connections helps you detect unauthorized access attempts and block malicious addresses.
- Managing online communities: Moderators of forums and game servers use IP addresses to enforce rules and apply bans.
- Geolocation: An IP address gives an approximate location, which helps with region-specific content and audience analysis. It points to a city or region, not a street address.
Methods That Work
1. Look up an IP address you already have
An IP lookup tool, such as WhatIsMyIPAddress, shows the Internet Service Provider (ISP), hostname and approximate location of an address. It does not reveal a person’s name or exact address.
2. Check email headers
Every email carries routing information in its header. In Gmail, open the message, click the three dots in the top-right corner and select “Show original”. Other providers offer options like “View Full Header” or “Show Details”.
Look at the “Received: from” lines. The lowest one is the first server that handled the message. Large webmail providers such as Gmail and Outlook often hide the sender’s own IP address, so you may only see the provider’s mail servers. Lines such as Received-SPF show the IP of the sending mail server, not necessarily the person’s device. Marketing and company emails reveal more than personal ones.
3. Check your web server logs
If you run a website, your server logs list the IP addresses of visitors. Log in to your hosting control panel, open the server logs section and review the access log. This is the right method for website administrators monitoring traffic. IP addresses in logs can count as personal data under laws such as the GDPR, so keep them only as long as you need them.
4. Find devices on your own network
Running ipconfig shows the IP configuration of your own device only, not the devices connected to it. To list other devices on the same local network, run arp -a in Command Prompt (it also works in a macOS or Linux terminal), or open the DHCP client list in your router’s admin page.
5. Find the IP address of a domain
To find the IP address behind a website, open Command Prompt or Terminal and type ping example.com. The output shows the IP address of the site’s server. You can also use nslookup; see our guide to NSLookup commands in Windows and Linux.
Methods That Do Not Work or Should Be Avoided
Running netstat during a chat
Some guides tell you to run netstat -an while chatting with someone to see their IP address. This only works for direct peer-to-peer connections. Most messaging apps, including WhatsApp and Facebook Messenger, send messages through the provider’s servers, so netstat shows those servers and not the person you are talking to.
IP grabber links
IP grabber services, such as Grabify, generate links that log the IP address of anyone who clicks them. We do not explain how to use them against another person. Sending a tracking link without consent is a common tool for harassment and doxxing, and it can break privacy and computer-misuse laws. If you want to know who visits your own website, use your server logs instead.
Legal and Ethical Considerations
An IP address can reveal a person’s approximate location and online activity, so collecting it without consent can be an invasion of privacy. Many jurisdictions regulate it; for example, under the GDPR an IP address can count as personal data. Misusing an IP address for denial-of-service attacks, phishing or unauthorized access also has legal consequences. This is general information, not legal advice.
- Get consent: Ask permission before tracking or collecting someone’s IP address.
- Have a legitimate purpose: Use IP information only for lawful reasons such as network security or authorized investigations.
- Protect collected data: Store IP information securely and delete it when you no longer need it.
How to Protect Your Own IP Address

An exposed IP address can reveal your approximate location and make your network a target. The main risks are location tracking, unauthorized access to your network or connected devices, and Distributed Denial of Service (DDoS) attacks that flood your connection with traffic.
- Use a Virtual Private Network (VPN). A VPN encrypts your connection and routes it through a remote server, hiding your real IP address from the sites you visit. Choose a reputable provider with strong encryption and a strict no-logs policy.
- Use a proxy server. Proxies sit between your device and the internet and hide your IP address from websites. They usually lack the encryption of a VPN, and some log your activity or inject ads, so choose a trustworthy provider. For a comparison, read Residential VPS vs Proxy vs VPN.
- Try the Tor network. Tor routes your traffic through several volunteer-run servers, which makes it very hard to trace. It can be slow, and some websites block it.
- Secure your router. Change the router’s default admin password, enable WPA3 encryption if your router supports it, and turn off remote management.
- Be careful on public Wi-Fi. Use a VPN, avoid banking and other sensitive transactions, and forget the network after you leave.
- Keep software up to date. Updates patch vulnerabilities that attackers could use against your connection. Turn on automatic updates where you can.
- Use strong, unique passwords. A password manager helps you create and store them. If you need a fixed address for a server, read about dedicated IPs.
Conclusion
Use server logs and email headers for legitimate checks, use lookup tools for IP addresses you already have, and never track people without their consent. To protect your own address, combine a VPN, a secured router and up-to-date software.
