Your IP address is a number that identifies your device on the internet, similar to a mailing address for your computer or phone
Every device connected to the internet has an IP address — a unique string of numbers separated by periods, like 192.168.1.1 or 2001:0db8:85a3:0000:0000:8a2e:0370:7334. When you visit a website, send an email, or stream video, your device uses this address so the internet knows where to send the information back to you. Websites, apps, and internet service providers can see your IP address because it is part of how data travels across the internet.
There are two main types of IP addresses in use today. IPv4 addresses use four numbers (each between 0 and 255) separated by dots — the format most people recognize. IPv6 addresses use a longer format with letters and numbers and were created because the world ran out of available IPv4 addresses. Your device may use one or both types depending on your internet connection and the websites you visit.
Key Takeaways
- Your IP address is assigned by your internet service provider and changes when you restart your router or switch networks.
- Websites log your IP address in their server records, which is how they know your general location and can track repeat visits.
- A static IP address stays the same over time, while a dynamic IP address changes periodically — most home internet uses dynamic addresses.
- You can find your IP address by searching "what is my IP" in a search engine or checking your device settings.
- Using a VPN masks your real IP address by routing your traffic through another server, though it does not make you completely anonymous.
How your internet service provider assigns your IP address
Your internet service provider (ISP) — the company you pay for internet access — assigns your IP address when you connect. Most home internet users receive a dynamic IP address, which means the number changes periodically, usually when you restart your router or after a set number of days. This is cheaper for ISPs to manage because they can reuse addresses as devices disconnect.
Some users, particularly businesses, pay for a static IP address that remains the same indefinitely. Static addresses are useful if you run a server, need consistent remote access, or want to set up port forwarding for specific devices. Your ISP can tell you whether your current plan includes a static or dynamic address, and whether you can upgrade to static if you need it.
When you change networks — moving from home WiFi to a coffee shop, for example — you get a different IP address assigned by that network's router. The address you use at home is different from the one you use at work or on your phone's mobile data connection.
What websites and services can see from your IP address
Websites record your IP address in their server logs every time you visit. This information tells them your approximate geographic location (usually down to your city or region, not your exact street address), what time you visited, and which pages you viewed. If you visit the same website multiple times from the same IP address, the site can recognize you as a repeat visitor even if you do not log in.
Online advertisers use IP addresses to track your browsing across different websites and show you targeted ads. Email services, social media platforms, and streaming services all log your IP address when you sign in. If you use the same IP address consistently, these services build a profile of your activity tied to that address.
Your ISP itself can see every website you visit because all your internet traffic passes through their servers. This is why some people use VPNs or other privacy tools — not to hide from websites, but to prevent their ISP from seeing their browsing history.
The difference between public and private IP addresses
Your device actually has two IP addresses: a public IP address (the one your ISP assigns and that websites see) and a private IP address (used only within your home or office network). When you connect multiple devices to your home WiFi, your router assigns each device a private address like 192.168.1.5 or 10.0.0.3. These private addresses only work within your local network and are not visible to the internet.
Your router acts as a translator between these two systems. When your phone sends data to a website, the router replaces the phone's private address with your public address so the website knows where to send the response. This is why you can have ten devices on your home network but only one public IP address visible to the outside internet.
Private IP addresses follow a standard format that any router can use, which is why you might see the same private address on different networks. Public addresses, by contrast, are unique across the entire internet — no two devices should have the same public IP address at the same time.
How to find your IP address
The quickest way to find your public IP address is to open a search engine and type "what is my IP." Within seconds, you will see your public address displayed on the search results page. Several websites also offer this service — you can visit them directly and they will show your IP address along with your approximate location and ISP name.
To find your private IP address (the one used on your home network), the steps differ by device. On Windows, open Command Prompt and type ipconfig, then look for the line labeled "IPv4 Address." On Mac or Linux, open Terminal and type ifconfig or ip addr. On iPhone or iPad, go to Settings > WiFi, tap the network you are connected to, and look for the IP Address field. On Android, go to Settings > About Phone > Status or Settings > Network & Internet > WiFi, tap your network, and scroll down to IP Address.
Your router also displays all connected devices and their private IP addresses. Log into your router's admin panel (usually by typing 192.168.1.1 or 192.168.0.1 into a browser) and look for a section labeled "Connected Devices" or "DHCP Clients."
Why your IP address changes and what that means
If you have a dynamic IP address, it will change without any action on your part. Your ISP may reassign addresses every few days, every few weeks, or on a schedule they set. Restarting your router usually forces an immediate address change. This happens because ISPs manage a limited pool of addresses and recycle them as devices go offline.
When your IP address changes, websites and services will see you as a new visitor from a potentially different location. If you are logged into an account, the service will still recognize you because of your login credentials, not your IP address. However, if you are not logged in, the service has no way to connect your new IP address to your previous activity.
Some services flag a new IP address as suspicious — for example, if your account suddenly appears to be logging in from a different country, the service might ask for additional verification. This is a security feature designed to catch unauthorized access, though it can also trigger when you travel or change networks legitimately.
Using a VPN to mask your IP address
A VPN (Virtual Private Network) is a tool that routes your internet traffic through a server in another location, replacing your real IP address with the VPN server's address. Websites will see the VPN server's IP address instead of yours, which hides your real location and ISP from the sites you visit. Your ISP will see that you are using a VPN but cannot see which websites you are visiting.
VPNs are useful if you want to prevent websites from tracking your location or if you want to hide your browsing from your ISP. However, they do not make you completely anonymous — the VPN provider itself can see your real IP address and your browsing activity. You are essentially shifting trust from your ISP to the VPN company. Additionally, some websites block traffic from known VPN servers, so you may not be able to access certain sites while using a VPN.
VPNs range from free services to paid subscriptions. Free VPNs are often slower and may sell your data to advertisers. Paid VPNs typically offer better speed and privacy policies, though no VPN can may provide complete anonymity.
Frequently Asked Questions
Can someone find my home address from my IP address?
No. Your IP address reveals your approximate city or region, but not your street address. Your ISP knows your street address because they send you a bill, but websites cannot see that information from your IP address alone. However, if you post personal details online and someone has your IP address, they could potentially cross-reference that information to narrow down your location.
Is my IP address the same on WiFi and mobile data?
No. When you use WiFi, you get an IP address from your router (which itself has an IP address from your ISP). When you switch to mobile data, your phone gets a different IP address from your mobile carrier. Websites will see different IP addresses depending on which connection you are using.
What does it mean if a website says my IP address is blocked?
Websites sometimes block IP addresses that have been used for spam, hacking attempts, or other abuse. If you see this message, it usually means a previous user of that IP address (assigned by your ISP) caused the problem, not you. Contact the website's support team to request unblocking, or restart your router to try to get a different IP address.
Do I need to worry about my IP address being public?
Your IP address being visible to websites is normal and necessary for the internet to work. However, you should be cautious about what personal information you share online, since someone with your IP address and other details could potentially identify you. Using a VPN, keeping your router secure, and being selective about what you post online are reasonable precautions.
Can I change my IP address on purpose?
Yes. Restarting your router usually triggers your ISP to assign a new dynamic IP address within minutes. If you have a static IP address, you would need to contact your ISP to change it. Using a VPN also masks your IP address, though the VPN provider assigns you a different one rather than changing your real address.