What an IP address is and why you might need one

An IP address is a unique number assigned to every device connected to the internet — think of it like a mailing address for your computer or phone. It looks like four numbers separated by dots: 192.168.1.1. When you visit a website, send an email, or join a video call, your IP address travels with that data so the other person's device knows where to send information back to you.

You might want to find someone else's IP address for legitimate reasons: troubleshooting a network problem, understanding where a connection is coming from on your own network, or investigating suspicious activity on your accounts. However, finding someone's IP address without their knowledge or permission raises serious privacy and legal concerns, and in many cases is illegal. This guide covers the technical methods and the situations where each one is appropriate to use.

Key Takeaways

  • An IP address is a number that identifies a device on the internet, and different methods reveal it depending on the context — email headers, website logs, or network tools.
  • You can only ethically and legally find someone's IP address if you own the system they are connecting to, they have consented, or law enforcement is involved.
  • Email headers contain the sender's IP address, but only the person who received the email can view them — you cannot retrieve someone else's email headers.
  • Website owners can see visitor IP addresses in their server logs, but accessing logs from a site you do not own is illegal.
  • Network administrators can see all IP addresses on their own network using built-in tools, but only for devices connected to that network.

Finding an IP address from an email

When someone sends you an email, their IP address is embedded in the email header — the technical metadata that travels with the message. You can view this information only in emails you have received yourself, and only by opening the email header view in your email client.

In Gmail, open the email, click the three dots in the top right, and select "Show original." A new window opens with the raw email code. Look for lines that say "Received: from" — these show the path the email took and include IP addresses. The first "Received" line closest to the top usually shows the sender's IP address, though it may be obscured if they used a VPN or email relay service.

In Outlook, open the email, go to File, then Properties (on Windows) or Message, then Actions, then View Message Source (on Mac). The same "Received" lines appear. In Apple Mail, open the email and select Message, then Raw Source.

This method only works for emails you personally received. You cannot view the headers of someone else's email, and you cannot retrieve an IP address from an email someone sent to another person.

Finding an IP address from a website or online service

Website owners and administrators can see the IP addresses of everyone who visits their site — this information is stored in server logs. If you own or administer a website, you can access these logs through your hosting provider's control panel or through analytics tools like Google Analytics.

However, if you want to find the IP address of someone visiting a website you do not own, there is no legal way to do this. Accessing another person's server logs without permission is illegal under the Computer Fraud and Abuse Act in the United States and similar laws in other countries. Even if a website is public, the logs behind it are not.

Some online services — like Discord, Slack, or gaming platforms — may show IP addresses to administrators or moderators of private servers or groups, but only for users on that specific service. You cannot access this information unless you have administrative rights to that server or group.

Finding an IP address on your own network

If you manage a home or office network, you can see the IP addresses of all devices connected to it using your router's admin panel or network tools built into your operating system.

To access your router's admin panel, open a web browser and type 192.168.1.1 or 192.168.0.1 (the exact address varies by router — check your router's label or manual). Log in with your router's username and password. Look for a section called "Connected Devices," "DHCP Clients," or "Device List." This shows every device on your network and its IP address.

On Windows, open Command Prompt and type arp -a to see all devices on your local network. On Mac or Linux, open Terminal and type arp -a or ip neigh. These commands show devices connected to your network and their IP addresses, but only devices on the same local network — not devices on the internet outside your network.

This method only works for your own network. You cannot use it to find the IP address of someone on a different network.

Why you cannot find someone's IP address without permission

Finding someone's IP address without their knowledge or consent is illegal in most places. In the United States, the Computer Fraud and Abuse Act makes it a federal crime to access computer systems or data without authorization. In the European Union, the General Data Protection Regulation (GDPR) treats IP addresses as personal data, and collecting them without consent violates privacy law. Similar laws exist in Canada, Australia, and most other countries.

Beyond the law, attempting to find someone's IP address often signals an intent to harm them — to track their location, launch a cyberattack, or harass them. Even if your intent is innocent, the person whose IP you are seeking has no way to know that, and they have a right to privacy online.

If you have a legitimate security concern — such as suspicious activity on your own accounts or network — contact the platform or service involved (Gmail, your bank, your ISP) or law enforcement. They have legal tools and authority to investigate.

When law enforcement or platforms investigate IP addresses

If you report a crime, harassment, or a serious security threat to a platform (like Facebook, Twitter, or Discord) or to law enforcement, they can subpoena IP address logs from the service involved. This is a legal process that requires a warrant or court order, and it is the appropriate way to trace someone's identity when there is a genuine criminal concern.

Platforms have legal teams and policies for handling these requests. If you are being harassed, threatened, or stalked online, report it to the platform first — they can see IP addresses in their logs and can take action. If the harassment is severe or involves threats of violence, also report it to local law enforcement.

You do not need to find the IP address yourself. Providing the platform or police with the username, the date and time of the incident, and screenshots of the harmful content gives them what they need to investigate.

VPNs, proxies, and why IP addresses can be misleading

If someone is using a VPN (virtual private network) or a proxy service, the IP address you find will belong to the VPN or proxy server, not to them. This is by design — VPNs hide your real IP address to protect your privacy. So even if you manage to find an IP address, it may not tell you anything about the person's actual location or identity.

Similarly, Tor Browser and other anonymity tools mask IP addresses. Large organizations and universities often route traffic through shared IP addresses, so multiple people may appear to come from the same IP. Mobile devices change IP addresses frequently as they move between networks.

This means that even in situations where finding an IP address is legal — like a website owner reviewing their logs — the IP address alone rarely identifies a specific person. It identifies a device or a network, not a person. This is why law enforcement works with ISPs to match an IP address to an account holder, and why platforms use additional data (account creation info, payment methods, device fingerprints) to verify identity.

Frequently Asked Questions

Can I find someone's IP address from their social media profile?

No. Social media platforms do not display IP addresses publicly, and you cannot access them without administrative access to the platform itself. If someone is harassing you on social media, report them to the platform — the company can see their IP address in their logs and take action.

Is it illegal to find someone's IP address if they are harassing me?

Yes, it is still illegal for you to find their IP address yourself, even if they are harassing you. Instead, report the harassment to the platform and to law enforcement. They have legal authority to investigate and can access IP logs without breaking the law.

What can someone do with my IP address?

An IP address alone reveals your approximate geographic location (usually city or region level, not your exact address). It does not reveal your name, home address, or passwords. However, combined with other information, it can be used to target you with attacks or harassment, which is why you should not share it with strangers online.

Does a VPN hide my IP address completely?

A VPN replaces your real IP address with the VPN provider's IP address, so websites and services see the VPN's address instead of yours. However, your ISP can still see that you are using a VPN, and the VPN provider itself can see your real IP address and your traffic. Choose a VPN provider with a clear no-logs policy if privacy is your concern.

Can I find my own IP address?

Yes. Visit a site like whatismyipaddress.com or search "what is my IP" in any search engine. You can also open Command Prompt (Windows) or Terminal (Mac/Linux) and type ipconfig (Windows) or ifconfig (Mac/Linux) to see your device's IP address on your local network.