How to Find Someone’s IP Address: What’s Actually Legitimate (2026)

Most guides to "finding someone's IP address" blur together very different situations: checking your own address, reading your own server logs, and identifying a specific person without their knowledge. Only some of that is…

How To Get Someones IP Address

“How to get someone’s IP address” usually means one of three very different things: finding your own IP for network setup, reading the visitor logs on a server or site you run, or trying to identify a specific person you’re communicating with. The first two are ordinary technical tasks. The third, identifying a particular individual without their knowledge or consent, is where privacy law, platform rules, and basic safety start to matter, and where most of the popular “tricks” (email headers, Command Prompt commands) don’t actually work the way they’re often described.

Finding Your Own IP Address

This is the simplest and most common real need. On Windows, open Command Prompt and run ipconfig for your local address, or search “what is my IP” for your public one. On macOS or Linux, ifconfig or ip addr does the same locally. This is entirely safe and doesn’t involve anyone else’s data.

Seeing Who Visits a Site or Server You Own

If you run a website, your web server logs and any analytics platform you’ve installed already record visitor IP addresses as a normal part of serving traffic, no special tool needed. This is standard, legitimate server administration, provided you handle that data in line with your site’s privacy policy and applicable law (GDPR, CCPA, etc. depending on your visitors and jurisdiction).

Why the Common “Find a Specific Person’s IP” Tricks Don’t Really Work

  • Email headers rarely show the sender’s real IP. Most email today is sent through providers like Gmail, Outlook, or a marketing platform, whose relay servers appear in the header instead of the sender’s actual device, you’re usually looking at Google’s or Microsoft’s infrastructure, not the person’s home network.
  • netstat shows your own connections, not theirs. It lists IP addresses your computer is currently talking to, which only includes someone else’s address if you already have an active, direct connection to them, it can’t retroactively find a person’s IP from a name or username.
  • “IP lookup” tools only work on an address you already have. Sites like IP2Location or WhatIsMyIPAddress take an IP and return an approximate ISP/region, they don’t take a person’s name or username and produce an IP.

The tools that actually can capture another person’s IP without them realizing it, disguised tracking links, browser exploits, malicious attachments, are a different category entirely, and using them on someone without consent is where this crosses into harassment, computer-misuse law, and platform bans, not a “technique.”

If Your Real Goal Is Dealing With Harassment

This is the most common reason people search for this topic, and identifying the other person’s IP yourself is rarely the effective move:

  1. Preserve evidence, screenshots, messages, timestamps, usernames.
  2. Report and block through the platform where it’s happening (email provider, social network, game platform), they can act on account-level data you can’t see.
  3. Escalate to your ISP if you’re experiencing an actual attack on your connection (e.g., a DDoS), not just an unpleasant message.
  4. Contact law enforcement for genuine threats, stalking, or safety concerns, they have legal channels to compel identifying information that a DIY lookup can’t reach and that hold up as evidence.

Protecting Your Own IP Address

  • Use a VPN if you want to mask your address from services or people you interact with online.
  • Avoid clicking unfamiliar links, especially shortened ones sent in chat or email, a common way someone else logs your IP.
  • Keep router firmware updated and use a unique admin password.

Frequently Asked Questions

Can I find someone’s IP address from just their name?

No. There’s no public database that maps a name to a current IP address; this is one of the more persistent myths in this space.

Does opening an email reveal the sender’s IP?

Usually not their real one. Most consumer and business email is sent through a provider whose servers appear in the header, not the sender’s own device.

Is it legal to look up someone’s IP address?

Looking up your own IP, or reading logs on infrastructure you own, is fine. Using deceptive methods to capture a specific person’s IP without consent can violate privacy and computer-misuse law, and using it to harass or threaten someone is illegal essentially everywhere.

What should I do if someone is harassing me online?

Preserve evidence, report and block through the platform, and involve law enforcement for genuine threats, not a DIY IP lookup.

Bottom Line

Finding your own IP, or reading your own server’s logs, is routine and safe. Trying to identify a specific person’s IP without their knowledge rarely works the way popular guides describe, and when it does work, it’s usually through methods that create real legal and safety risk. If harassment is the actual problem, platform reporting and law enforcement are the effective path, not a lookup tool.