HackMyIP
← back to sheets

How to Find Someone's IP Address (5 Legal Methods)

~/sheets/how-to-find-someones-ip-address.md
1

When You Might Need Someone's IP Address

2

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.

3

1. Email Headers

4

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.

5

2. Website or Server Logs

6

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.

7

3. Direct Connection (Peer-to-Peer)

8

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.

9

4. Social Engineering (Ask Them)

10

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.

11

5. Network Admin Tools

12

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.

13

What You Cannot Do

14

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.

15

How to Protect Your Own IP

16

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.

17
Last updated: April 2026