An IP address is how your device gets found on the internet
An IP address is a set of numbers that identifies your device on a network, the same way a street address identifies your house. When you send data — an email, a web request, a video call — your device includes its IP address so the receiving device knows where to send the response back. Without an IP address, the internet would have no way to route information to the right place.
Every device that connects to the internet gets an IP address: your phone, laptop, tablet, smart TV, printer, or security camera. Your home network has one address that faces the outside internet, and each device inside your home gets its own address for communicating within that network. The two main types are IPv4 (the older format, like 192.168.1.1) and IPv6 (the newer format, with more possible addresses).
Key Takeaways
- An IP address lets other devices on the internet know where to send data back to you, the same way a mailing address tells the post office where you live.
- Your internet service provider assigns your home network one public IP address, and your router assigns private IP addresses to each device inside your home.
- Websites and online services use your IP address to remember your location, language settings, and browsing history — which is why you see ads related to your region.
- You can hide or change your IP address using a VPN, which routes your traffic through another server so websites see that server's address instead of yours.
How websites know where you are
When you visit a website, the server hosting that site sees your IP address in the request. From that address, the server can look up your approximate location — usually your city or region, sometimes more precise. That is why a weather website shows your local forecast without you telling it where you live, or why you see prices in your local currency.
This location data also powers targeted advertising. An ad network can see that requests are coming from a particular IP address range and serve ads for local businesses or region-specific products. Your IP address does not reveal your name or home address, but it does tell companies roughly where you are.
How your internet service provider tracks what you do
Your internet service provider (ISP) — the company that provides your home internet connection — assigns your home network its public IP address. Because that address is tied to your account, your ISP can see which websites you visit and when, even if those sites use encryption. They cannot see the content of your messages or the specific pages you view, but they can see the domain names you connect to.
This is why some people use a VPN to hide their browsing from their ISP. A VPN routes your traffic through a different server, so your ISP sees you connecting to the VPN server instead of directly to websites. The websites you visit then see the VPN server's IP address rather than yours.
Why online services use your IP address to verify it is really you
Banks, email providers, and social media platforms track the IP addresses you normally log in from. If you suddenly log in from a different country or a very distant location, the service may flag it as suspicious and ask you to verify your identity with a code sent to your phone or email. This is a security measure to prevent someone else from accessing your account.
The same principle applies when you use two-factor authentication. The service remembers that you usually log in from home (a certain IP address range) and may trust that location more than an unfamiliar one. If you travel or use a different network, you might see an extra verification step.
How IP addresses work on your home network
Your home router assigns a private IP address to each device connected to it — your phone, laptop, smart speaker, and so on. These addresses (like 192.168.1.5 or 10.0.0.3) only work within your home network. When one of your devices sends data to the internet, the router replaces the private address with your home's public IP address so the outside world can route the response back.
This system lets multiple devices in your home share a single public IP address. Your ISP only sees traffic coming from one address, but your router knows which device inside your home each piece of data belongs to and forwards it correctly. If you want to run a server or allow someone outside your home to access a device, you have to configure port forwarding on your router to tell it which internal device should receive that traffic.
What happens when your IP address changes
Most home internet connections use dynamic IP addresses, meaning your ISP can change your public IP address periodically — sometimes daily, sometimes monthly. You usually will not notice because your devices and the websites you visit do not care what your address is, only that it works. However, if you have set up port forwarding to run a home server, a changing IP address will break that connection until you update the settings.
Some ISPs offer static IP addresses for a monthly fee, which means your address stays the same. This is useful if you run a web server, host a game server, or need remote access to devices at home. Most home users do not need a static address.
How to find your IP address
To find your public IP address (the one the internet sees), search "what is my IP" in any search engine. The results will show your public address and approximate location.
To find your private IP address (the one your router assigned to your device), the steps differ by device. On Windows, open Command Prompt and type ipconfig, then look for "IPv4 Address" under your active network. On Mac, go to System Settings, click Network, select your connection, and look for "IP Address". On iPhone or iPad, go to Settings, tap Wi-Fi, select your network, and the address appears under "IP Address". On Android, go to Settings, tap About Phone, then Status, and look for "IP Address".
Frequently Asked Questions
Can someone find my home address from my IP address?
No. An IP address shows your approximate location — usually your city or neighborhood — but not your street address or home. Your ISP knows your home address because you gave it to them when you signed up, but a website or stranger online cannot reverse-look up your address from your IP alone.
Does a VPN completely hide my IP address?
A VPN hides your IP address from the websites you visit and from your ISP. They see the VPN server's address instead of yours. However, the VPN company itself can see your real IP address and your traffic, so you are trusting that company with the same information your ISP had. Choose a VPN provider with a clear privacy policy.
Why do I have two IP addresses on my device?
You might see both an IPv4 address and an IPv6 address. IPv4 is the older standard and still the most common; IPv6 is the newer standard with many more possible addresses. Your device can use either one depending on what the network supports. Both serve the same purpose — identifying your device on the network.
What is the difference between a public and private IP address?
A public IP address is assigned by your ISP and is visible to the internet. A private IP address is assigned by your router and only works within your home network. Your router translates between them, so devices inside your home can talk to each other using private addresses while the outside world only sees your public address.
If I restart my router, will my IP address change?
Usually not immediately. Most ISPs assign dynamic addresses that can change, but they often stay the same for days or weeks. Restarting your router might trigger a new address, but it is not may provide. If you need your address to stay the same, ask your ISP about a static IP address.