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.