What you can actually find out about someone's IP address
You can find someone's IP address through several methods depending on your situation and what tools you have access to. The most common ways are checking email headers, looking at server logs if you run a website, using online tools that reveal visitor information, or asking your internet service provider. What you find is usually just a number assigned to their internet connection — it tells you roughly where they are geographically and which company provides their internet, but not their name or street address.
The method that works depends on whether you're trying to find the IP of someone who emailed you, visited your website, played an online game with you, or is on your home network. Each situation has different tools and different limitations on what information you can actually see.
Key Takeaways
- Email headers show the IP address of whoever sent you a message, found by opening the full headers in your email client or webmail provider.
- Website server logs automatically record the IP address of every visitor, accessible through your hosting control panel if you own the site.
- An IP address reveals the internet service provider and approximate geographic location, but not the person's name or home address.
- Finding someone's IP without their knowledge or consent may violate laws depending on your location and method used.
- Online IP lookup tools can tell you what company owns an address and what city it's registered to, but this information is often outdated or inaccurate.
Finding an IP address from an email
When someone sends you an email, their IP address is recorded in the message headers. To see it, you need to open the full headers rather than just the message body. In Gmail, click the three dots next to the Reply button, then select "Show original" — the IP appears in the "Received: from" line at the top. In Outlook, right-click the message, select "Message Properties," and look for the "Internet Headers" section. In Apple Mail, go to the View menu and select "Message" then "All Headers."
The headers show multiple IP addresses because email passes through several servers on its way to you. The topmost "Received: from" line is closest to the sender's actual address. However, if someone uses a webmail service like Gmail or Yahoo, you'll see the IP of Gmail's or Yahoo's server instead of their personal computer, because that's where the email originated from their perspective.
Checking server logs on your own website
If you run a website, your hosting provider automatically records the IP address of everyone who visits. You can see these logs through your hosting control panel — usually cPanel, Plesk, or a custom dashboard depending on your provider. Look for a section called "Raw Access Logs," "Access Logs," or "Statistics." The logs show the visitor's IP, what page they viewed, when they visited, and what browser they used.
These logs are text files that can be large and difficult to read if your site gets heavy traffic. Many hosting providers also offer analytics tools like Webalizer or AWStats that organize the same data into charts and graphs. If you need to find a specific visitor, search the raw logs for the date and time they visited, or use your analytics tool to filter by date range.
Using online IP lookup tools
Once you have an IP address, you can enter it into an IP lookup tool to see what information is publicly available about it. Common tools include WhatIsMyIPAddress.com, IP2Location, and MaxMind. These tools show the internet service provider that owns the address, the city and country it's registered to, and sometimes the approximate latitude and longitude.
The information these tools provide is often inaccurate or outdated. An IP address registered to a city might actually be used by someone hundreds of miles away if their internet service provider routes traffic through a distant server. The data comes from public databases that are updated irregularly, so a person who moved last month might still show up at their old location. These tools cannot tell you someone's name, street address, phone number, or any personal information — that data is not public.
Finding an IP on your home or office network
If you want to find the IP address of another device on your own network — a computer, phone, or printer — you can use your router's admin panel. Open a web browser and go to 192.168.1.1 or 192.168.0.1 (the exact address depends on your router model). Log in with your router's username and password, then look for a section called "Connected Devices," "DHCP Clients," or "Device List." This shows every device currently connected to your network and its IP address.
On Windows, you can also open Command Prompt and type arp -a to see all devices on your network and their IP addresses. On Mac or Linux, open Terminal and type arp -a or ip neighbor show. These commands work only for devices on your local network, not for finding someone's IP address across the internet.
What you cannot find with an IP address
An IP address alone does not reveal someone's name, home address, phone number, email address, or social media accounts. It tells you their internet service provider and approximate geographic location — usually accurate to a city or region, sometimes only to a state or country. If someone uses a VPN, proxy server, or Tor browser, the IP you see belongs to that service instead of their actual internet connection.
Law enforcement and internet service providers can connect an IP address to a specific person's account, but this information is not public. A private investigator or attorney can sometimes obtain it through a court order, but you cannot get this information yourself through any public tool or website.
Legal and ethical considerations
The legality of finding someone's IP address depends on how you obtain it and what you do with it. If someone sent you an email or visited your website, viewing that information is generally legal because it was transmitted to you as part of normal internet communication. If you trick someone into visiting a link that reveals their IP, or use malware to capture it, that crosses into illegal territory in most jurisdictions.
Using someone's IP address to harass them, hack their device, or identify them for purposes of stalking or threats is illegal. If you have a legitimate reason to find someone's IP — such as investigating unauthorized access to your website or email account — document what you find and consider reporting it to law enforcement rather than taking action yourself.
Frequently Asked Questions
Can I find someone's real IP if they're using a VPN?
No. A VPN replaces your real IP address with the VPN service's IP address. The person or website you're communicating with sees only the VPN's address. The VPN company knows your real IP, but they do not share this information publicly, and most VPN providers have policies against giving it to anyone without a court order.
Does an IP address tell me exactly where someone lives?
No. An IP address is registered to a city or region, but the actual person using it could be anywhere. Internet service providers route traffic through servers in different locations, so someone in New York might have an IP registered to California. The accuracy varies from a few miles to hundreds of miles depending on the ISP and the lookup database.
What should I do if I find an IP address that's attacking my website?
Document the IP address, the date and time of the attack, and what the attacker tried to do. Contact your hosting provider and provide this information — they can block the IP at the server level. If the attack is serious, you can also report it to your local law enforcement or the FBI's Internet Crime Complaint Center.
Is it illegal to look up someone's IP address?
Looking up an IP address that was sent to you through normal communication is legal. Using tricks or malware to capture someone's IP without their knowledge, or using an IP address to harass or identify someone for harmful purposes, is illegal in most places. If you have a legitimate reason to find an IP, document your process and consider involving law enforcement.
Can I find someone's IP from their social media profile?
Not directly from the profile itself. However, if you trick them into clicking a link you control, or if they visit a website you run, you can see their IP. Social media platforms do not publicly display user IP addresses, and attempting to obtain someone's IP through deception may violate the platform's terms of service and local laws.