An IP address is a unique number that identifies your device on the internet, the same way a street address identifies your home in the physical world

Every device that connects to the internet — your phone, laptop, tablet, smart TV — gets assigned an IP address. This number tells other devices and servers where to send information back to you. Without it, data packets traveling across the internet would have nowhere to go. Think of it like this: when you send an email, the recipient's server needs to know where to send the reply. Your IP address is how it knows.

IP addresses come in two versions currently in use. IPv4 addresses look like this: 192.168.1.1 — four numbers separated by periods, each number between 0 and 255. IPv6 addresses are much longer and use letters and numbers, like 2001:0db8:85a3:0000:0000:8a2e:0370:7334. Most home networks still use IPv4, though IPv6 is becoming more common as the internet runs out of available IPv4 addresses.

Key Takeaways

  • Your IP address is assigned by your internet service provider (ISP) or your home router and changes periodically unless you pay for a static one.
  • Websites and online services can see your IP address when you visit them, which is how they know your approximate location and can track your activity across sites.
  • A private IP address (like 192.168.x.x) works only inside your home network, while a public IP address is how the outside internet identifies your connection.
  • Your IP address alone does not reveal your name or exact home address, but combined with other data it can be used to identify you.

How your device gets an IP address

When you connect to the internet, your device does not automatically know its IP address. Instead, it sends out a request to a DHCP server (Dynamic Host Configuration Protocol). This server — usually your home router, or your ISP's server if you are on mobile — assigns an available IP address to your device and tells it how long to use that address.

Most home routers assign private IP addresses to devices on your network. These addresses start with 192.168, 10.0, or 172.16 and only work within your home network. Your router itself has a public IP address — the one assigned by your ISP — which is what the outside internet sees when you browse or send data. The router acts as a translator, forwarding traffic between your private devices and the public internet.

IP addresses assigned this way are temporary. Your device might keep the same one for days or weeks, but eventually the DHCP server will reassign it to another device. If you want the same IP address permanently — useful for running a home server or security camera — you can request a static IP from your ISP, though this usually costs extra.

Public versus private IP addresses

Your public IP address is what identifies your entire home or business connection to the internet. Websites see this number when you visit them. Your ISP assigns it to you, and it changes when you restart your modem or when your ISP decides to reassign it. You can find your public IP by searching "what is my IP" in any search engine.

Your private IP addresses are used only within your home network. Your phone might be 192.168.1.5, your laptop 192.168.1.10, and your smart speaker 192.168.1.20. These numbers are not visible to websites or services outside your home. They let your devices talk to each other and to your router without needing unique public addresses for each one — which would be impossible, since there are not enough public IP addresses for every device in the world.

This separation is important for security. Your router acts as a firewall, blocking incoming connections to your private devices unless you explicitly allow them. Someone on the internet cannot directly reach your phone or laptop using its private IP address; they can only reach your router's public IP.

What websites and services can learn from your IP address

When you visit a website, that site's server logs your IP address. From this number alone, the site can determine your approximate location — usually your city or region, sometimes more precisely. It can also identify your ISP. This is why you might see ads for local businesses or why a website might greet you with "Welcome, visitor from [your city]."

Over time, websites and advertising networks use your IP address to build a profile of your browsing habits. If you visit a news site from one IP address and a shopping site from the same IP address, advertisers can connect those visits to the same person. This is one reason you see ads for products you looked at on other sites.

Your IP address does not directly reveal your name, phone number, or street address. However, law enforcement and ISPs can connect an IP address to an account holder through the ISP's records. This is how copyright holders sometimes identify people who illegally download files, and how police can subpoena records to identify someone who posted something online.

Why IP addresses matter for privacy and security

Because websites can see and log your IP address, it becomes part of your digital footprint. If you want to browse without websites knowing your location or connecting your visits across sites, you need to hide or change your IP address. A VPN (virtual private network) does this by routing your traffic through a server in another location, so websites see the VPN's IP address instead of yours.

IP addresses also matter for security in another way: attackers sometimes scan IP addresses looking for devices with open ports or known vulnerabilities. A home router protects against this by not exposing your private devices to the internet, but a device with a public IP address — like a web server you run yourself — is more exposed. This is why security experts recommend firewalls and keeping software updated if you run services on a public IP.

Understanding your IP address helps you understand how your location and activity are tracked online. It is not something to fear, but it is useful to know that every connection you make leaves this trace, and that tools like VPNs exist if you want to reduce that visibility.

Static versus dynamic IP addresses

A dynamic IP address is the default. Your ISP assigns it temporarily, and it changes periodically — sometimes daily, sometimes monthly, depending on your ISP's settings. Most home users have dynamic addresses because they are cheaper for ISPs to manage and because most people do not need a permanent address.

A static IP address stays the same indefinitely. You request one from your ISP, and they reserve it for your account. This costs extra — typically $5 to $15 per month — but it is useful if you run a web server, host a game server, or need remote access to a device at home. Without a static IP, your address might change and break those services.

For most people, a dynamic address is fine. Your devices still work normally, and you do not need to do anything. The only time it matters is if you are setting up something that needs a permanent address to reach it from outside your home.

How to find your IP address

To find your public IP address, open any web browser and search for "what is my IP." The first result will show your public IP and often your approximate location. You can also visit sites like whatismyipaddress.com or ipinfo.io.

To find your private IP address on Windows, open Command Prompt and type ipconfig, then press Enter. Look for "IPv4 Address" under your network adapter. On Mac, open System Preferences, go to Network, select your connection, and the IP address is listed there. On iPhone or Android, go to Settings, then Wi-Fi, tap the network you are connected to, and the IP address appears under "IP Address."

You can also find your router's IP address — usually 192.168.1.1 or 192.168.0.1 — by typing it directly into a browser. This takes you to your router's settings page, where you can see all devices connected to your network and their private IP addresses.

Frequently Asked Questions

Can someone find my home address from my IP address?

Not directly. An IP address shows your approximate city or region, not your street address. Only your ISP knows which customer account owns a specific IP address, and they only release that information to law enforcement with a court order. However, if you post your IP address publicly or use it on sites where you also share personal information, someone could potentially connect the pieces.

Does using a VPN hide my IP address completely?

A VPN hides your real IP address from websites you visit — they see the VPN's IP instead. However, the VPN provider itself can see your real IP address and your traffic. Your ISP can also see that you are using a VPN, though not what sites you visit. Choose a VPN provider you trust, and read their privacy policy to understand what they log.

Why does my IP address change?

Your ISP assigns IP addresses dynamically, meaning they are temporary. When your modem reconnects to the internet — after a restart, power outage, or after a set time period — you may get a different address. This is normal and intentional. If you need a permanent IP, contact your ISP about a static address.

Is my IP address the same on Wi-Fi and mobile data?

No. When you use Wi-Fi, your public IP is your home router's address. When you switch to mobile data, your public IP becomes your mobile carrier's address. Websites see different IPs depending on which connection you use, which is why your location might appear to change.

Can I change my IP address myself?

You can change your private IP address by adjusting your router settings, but most people should not do this — it can break things. You can change your public IP by restarting your modem, which forces your ISP to reassign an address. If you want to hide your IP from websites, use a VPN instead of trying to change it.