What an IP address actually is
An IP address is a number that identifies your device on the internet, the same way a street address identifies your house in the physical world. When your computer, phone, or tablet connects to the internet, your internet service provider (ISP) assigns it a unique number so that data sent to you arrives at the right place.
Think of it this way: when you visit a website, your device sends a request that says "send me this page." That request includes your IP address so the website's server knows where to send the page back to. Without it, the server would have no way to know which device asked for the information.
IP addresses follow a standard format. The most common type, called IPv4, looks like four numbers separated by periods: 192.168.1.1. Each number can range from 0 to 255. There is also a newer format called IPv6 that uses longer strings of numbers and letters, but IPv4 is still what most people encounter.
Key Takeaways
- Your IP address is assigned by your internet service provider and acts as your device's return address on the internet.
- Websites and online services can see your IP address whenever you visit them, which is how they know where to send data back to you.
- Your home network typically has one public IP address shared by all your devices, while each device has its own private IP address on your home network.
- Your IP address can reveal your approximate geographic location and which ISP you use, which is why some people use VPNs to mask it.
The difference between public and private IP addresses
Your home network actually uses two different types of IP addresses, and they serve different purposes. Your public IP address is the one your ISP assigns to your router — it is what the outside internet sees when you visit websites. This is the address that websites log and that can be traced back to your ISP and approximate location.
Inside your home network, your router assigns private IP addresses to each device — your laptop, phone, tablet, smart TV, and anything else connected to your WiFi. These private addresses (often starting with 192.168 or 10.0) only work within your home network. They let your devices talk to each other and to your router, but they are invisible to the outside internet.
Your router acts as a translator between the two. When your phone sends a request to a website, the router swaps out your phone's private address for your public address before sending it out to the internet. When the website sends data back, the router swaps it back so your phone knows the data is meant for it.
How websites see and use your IP address
Every time you visit a website, that site's server automatically records your IP address in its logs. This happens whether you create an account or not — it is a basic part of how the internet works. The website uses this information to know where to send the web page you requested.
Beyond just delivering pages, websites use IP addresses for other purposes. They can see roughly where you are located — usually down to your city or region, though not your exact street address. They can tell which ISP you use. They can also use your IP address to track whether you are a repeat visitor, to detect unusual activity (like someone logging into your account from a different country), and to enforce rate limits (blocking a single IP if it makes too many requests too quickly).
Some websites also sell or share IP address data with advertisers and data brokers. This is one reason why you might see ads for something you searched for on a different website — advertisers can buy lists of IP addresses associated with certain interests or behaviors.
Why your IP address changes sometimes
Most home internet users have a dynamic IP address, which means your ISP can change it periodically — sometimes daily, sometimes every few months. Your ISP does this to manage the limited pool of available addresses. When you restart your router or modem, you often get a new address.
Some business users and people who need a stable address pay for a static IP address, which stays the same. This is useful if you run a server or need other devices to always know how to reach you, but it is not common for home internet.
When you travel and connect to a different network — a coffee shop's WiFi, a hotel, or a mobile hotspot — you get a different public IP address. This is why some websites might notice you are in a different location than usual, and why some services ask you to verify your identity if you log in from a new IP address.
What someone can and cannot learn from your IP address
An IP address reveals less than many people think, but more than some realize. Someone with your IP address can determine your approximate location (usually accurate to within a few miles), your ISP, and whether you are using a mobile network or home internet. They can see what websites you visit if they control those websites or intercept your traffic.
What they cannot do: they cannot see inside your home network or access your private devices without additional steps. They cannot see your browsing history unless they control a website you visit. They cannot identify you by name just from an IP address alone — that requires additional information. They cannot see your passwords, emails, or files unless your device is already compromised.
However, combining your IP address with other information — like your username on a forum, your email address, or public records — can help someone piece together who you are. This is why some people choose to mask their IP address using a VPN (virtual private network), which routes your traffic through a server in another location so websites see the VPN's address instead of yours.
How to find your own IP address
If you want to see what your public IP address is, you can visit a website like whatismyipaddress.com or straightforward search "what is my IP" in any search engine. These sites display your public address when ready.
To find your private IP address (the one your router assigned to your specific device), the steps differ by device. On Windows, open Command Prompt and type "ipconfig" then press Enter — look for the line that says "IPv4 Address." On Mac, go to System Preferences, click Network, and your IP address appears in the window. On iPhone or Android, go to Settings, then WiFi, tap the network you are connected to, and look for the IP address listed there.
You can also find your router's IP address (usually something like 192.168.1.1) by looking at the bottom or back of the router itself — it is often printed there. Typing that address into a web browser lets you log into your router's settings if you ever need to change your WiFi password or adjust network settings.
Frequently Asked Questions
Can someone hack me just by knowing my IP address?
Knowing your IP address alone is not enough to hack you. They would need to find a specific vulnerability in your device or software to exploit. However, your IP address can be a starting point — someone could use it to target you with attacks or to find other information about you when combined with other data.
Does using a VPN hide my IP address from my ISP?
No. Your ISP can still see that you are using a VPN and can see how much data you are sending, but they cannot see which websites you visit because the traffic is encrypted. The websites you visit see the VPN provider's IP address instead of yours.
Why do some websites ask me to verify my identity when I log in from a new IP?
Websites do this as a security measure. If your account is usually accessed from one location and suddenly someone logs in from a different IP address (a different city or country), it could mean someone else has your password. Asking you to verify protects your account from unauthorized access.
Is my IP address the same on WiFi and mobile data?
No. When you use WiFi, you get your home network's public IP address. When you switch to mobile data, your phone connects through your mobile carrier's network and gets a different public IP address assigned by that carrier. Websites will see different addresses depending on which network you are using.
Can I change my IP address myself?
You can restart your modem or router to request a new dynamic IP address from your ISP, though it is not may provide to change when ready. You cannot change it directly yourself — only your ISP can assign addresses. If you want to mask your IP address, you can use a VPN, which routes your traffic through a different server.