How to Find Someone's IP Address (5 Legal Methods)
When You Might Need Someone's IP Address
There are legitimate reasons to find an IP address: investigating harassment, verifying a business connection, managing your own server, or checking who is accessing your network. Here are five legal methods.
1. Email Headers
Every email contains headers with routing information. In Gmail, click the three dots → "Show original." Look for "Received: from" lines — the sender's IP is often in the first one. Note: many email providers (Gmail, Outlook) now strip sender IPs for privacy, so this works mainly with emails from self-hosted mail servers.
2. Website or Server Logs
If you run a website, every visitor's IP is logged in your server access logs. On Apache, check /var/log/apache2/access.log. On Nginx, check /var/log/nginx/access.log. On Cloudflare, check the analytics dashboard. This is how every website sees your IP — check what your IP reveals.
3. Direct Connection (Peer-to-Peer)
In direct voice/video calls (Skype, Discord, some games), your IP may be visible to the other party because data flows peer-to-peer. Use a VPN during calls if you want to hide your IP. Run a WebRTC leak test to see if your real IP is exposed during calls.
4. Social Engineering (Ask Them)
The simplest method: ask the person to visit a website you control and check the logs. Or ask them to visit a tool like ours and share the result. This is completely legal if done with consent.
5. Network Admin Tools
If you are the network administrator, you can see all connected devices and their IPs through your router admin panel. Tools like arp -a show devices on your local network.
What You Cannot Do
Hacking into someone's device to get their IP is illegal. Using IP grabbers/loggers without consent may violate privacy laws. An IP address alone cannot identify a specific person — only the ISP can link an IP to a subscriber, and they require a court order. Be responsible.
How to Protect Your Own IP
Use a VPN to hide your real IP. Run a DNS leak test to make sure your VPN is working. Check your browser fingerprint to see how identifiable you are beyond just your IP. Read our complete guide to hiding your IP.
Frequently Asked Questions
Can you find someone's IP address?
Sometimes, through legal methods: email headers (though Gmail and Outlook now strip sender IPs), your own website or server logs, direct peer-to-peer connections in some calls and games, asking the person to visit a site you control, or network admin tools if you run the network. An IP alone cannot identify a specific person.
How do you find someone's IP address?
Legal options include reading email headers (mainly for self-hosted mail servers), checking your website or server access logs, noting the IP exposed during a direct voice or video call, asking the person with their consent to visit a page you control, or using network tools like arp -a if you are the network administrator.
Can someone find my location from my IP address?
Only your approximate location. An IP maps to a city and region and reveals your ISP, but not your street address. Only your ISP can link an IP to a subscriber, and that requires a court order. Use a VPN to hide your real IP if you want to mask even the approximate location.
What can someone do with your IP address?
On its own, not much that identifies you, but it can be used to estimate your city and ISP, attempt a DDoS, scan for open ports, or make phishing more convincing. Combined with your browser fingerprint it becomes a trackable identity, which is why a VPN is the main defense.
Is it illegal to find someone's IP address?
Finding an IP through legal methods like server logs or with the person consenting is fine. Hacking into a device to get an IP is illegal, and using IP grabbers or loggers without consent may violate privacy laws. An IP alone cannot identify a person — only the ISP can, and only with a court order.