An IP address is a unique number that identifies your device on the internet

Every device that connects to the internet — your phone, laptop, tablet, smart TV — gets assigned a number called an Internet Protocol address, or IP address. This number works like a mailing address for your device. When you send data across the internet, that data needs to know where to go and where it came from, so routers and servers use your IP address to find your device and send information back to you.

Without an IP address, the internet would have no way to route data to the right place. Your device could send a request to load a website, but the website's server wouldn't know where to send the webpage back to. IP addresses solve this problem by giving every connected device a distinct identifier on the network.

You don't usually see your IP address or think about it — your device and your internet provider handle it automatically. But understanding what it is and how it works helps explain why certain internet problems happen and how to troubleshoot them.

Key Takeaways

  • An IP address is a unique number assigned to your device that lets the internet route data to and from you, similar to how a mailing address works.
  • IPv4 addresses look like four numbers separated by periods (192.168.1.1), while IPv6 addresses are longer and use letters and numbers to support more devices.
  • Your internet service provider assigns your public IP address, while your home router assigns private IP addresses to devices on your home network.
  • You can find your device's IP address in your network settings, and websites can see your public IP address but not your private one.

How IP addresses are structured and what the numbers mean

There are two main types of IP addresses in use today: IPv4 and IPv6. IPv4 is the older and more common format you'll see on most devices. An IPv4 address consists of four numbers separated by periods, like 192.168.1.1 or 8.8.8.8. Each of the four numbers can range from 0 to 255, which means there are roughly 4.3 billion possible IPv4 addresses.

IPv6 is the newer format designed to replace IPv4 because we're running out of IPv4 addresses. An IPv6 address is much longer and includes both numbers and letters, like 2001:0db8:85a3:0000:0000:8a2e:0370:7334. IPv6 supports vastly more addresses — enough for every device on Earth to have multiple unique addresses. Most devices support both formats, though IPv4 is still what you'll encounter most often.

The numbers in an IP address aren't random. The first part of the address identifies the network, and the second part identifies your specific device on that network. This structure lets routers quickly figure out where to send data without having to know about every single device connected to the internet.

Public IP addresses versus private IP addresses

Your device actually has two different IP addresses, and they serve different purposes. Your public IP address is assigned by your internet service provider and is visible to websites and services on the internet. This is the address that identifies your home or office to the outside world. When you visit a website, that website's server sees your public IP address and uses it to send the webpage back to you.

Your private IP address is assigned by your home router and is only used within your home network. If you have multiple devices at home — a phone, laptop, and tablet — each one gets its own private IP address like 192.168.1.5 or 192.168.1.10. These private addresses never leave your home network. Websites cannot see them, and they don't work on the internet. Your router translates between your private address (used inside your home) and your public address (used on the internet).

This separation exists for security and organization. Your private addresses can overlap with other people's private addresses because they're only meaningful within your own network. Your public address must be unique across the entire internet, which is why your internet service provider carefully manages which public addresses are assigned to which customers.

How your device gets assigned an IP address

When you connect a device to the internet, it doesn't manually request an IP address — the process happens automatically through a system called DHCP (Dynamic Host Configuration Protocol). When your device connects to your home network or a public Wi-Fi network, it sends out a request asking for an IP address. A DHCP server on the network (usually your router) responds by assigning an available address to your device.

For your public IP address, your internet service provider's equipment assigns one to your home router when it connects to the internet. Your router then uses DHCP to assign private addresses to all the devices in your home. Most of the time, these addresses are temporary — your device might get a different private IP address the next time it connects, though it often gets the same one if it reconnects quickly.

Some devices and services use static IP addresses, which don't change. A business might request a static public IP address from their internet service provider so their website always has the same address. Within your home, you might set a static private IP address for a printer or security camera so you can always find it at the same address. But for most devices, dynamic addresses that change occasionally work fine.

Why websites and services can see your public IP address

When you visit a website, that website's server automatically receives your public IP address as part of the connection process. The server needs this information to send the webpage back to you. Websites use your public IP address for several reasons: to log which countries visitors come from, to detect fraud or suspicious activity, to enforce geographic restrictions on content, and to serve ads targeted to your region.

Your public IP address reveals your approximate location — usually your city or region, though not your exact street address. This is why you might notice that websites sometimes show you content in your local language or currency without you telling them where you are. They're using your IP address to make an educated guess about your location.

Your private IP addresses, on the other hand, are invisible to the internet. Websites cannot see them. Only devices on your home network can see your private addresses, and only your router can translate between your private and public addresses. This is one reason why your home network is more private than the public internet — your private addresses stay private.

What happens when your IP address changes

Your public IP address can change for several reasons. If your internet connection drops and reconnects, your internet service provider might assign you a different public address. If you restart your router, the same thing can happen. Most internet service providers don't may provide that you'll keep the same public IP address, though in practice many home connections keep the same address for months or years unless something forces a reconnection.

When your public IP address changes, websites and services that were trying to reach you at the old address will fail. This is why services that need to reach your home — like remote access software or a home security system — sometimes stop working after your IP address changes. Some people solve this problem by using a dynamic DNS service, which keeps track of your changing public IP address and updates a domain name to point to your current address.

Your private IP addresses change more frequently. Every time you turn off your device and turn it back on, it might get assigned a different private address from your router. This usually doesn't cause problems because your router keeps track of which device is which, and other devices on your home network can still find each other. But if you're setting up a device that needs a consistent address — like a printer — you may want to assign it a static private IP address so it doesn't move around.

How to find your device's IP address

Finding your public IP address is simple: search "what is my IP" in any search engine, and the first result will show you your public address. Alternatively, you can visit a website like whatismyipaddress.com, and it will display your public IP address along with your approximate location.

Finding your private IP address requires a few more steps because it's stored in your device's network settings. On Windows, open the Command Prompt and type "ipconfig" then press Enter — look for the line labeled "IPv4 Address" under your active network connection. On Mac, go to System Preferences, click Network, select your connection, and your private IP address appears in the window. On iPhone or iPad, go to Settings, tap Wi-Fi, and tap the information icon next to your network name. On Android, go to Settings, tap About Phone, then tap Status — your IP address is listed there.

Your router also has its own IP address, usually something like 192.168.1.1 or 192.168.0.1. You can find this address in the same network settings where you found your device's private IP address, listed as "Default Gateway." If you ever need to log into your router to change its settings, you'll type this address into your web browser.

Frequently Asked Questions

Can someone find my home address from my IP address?

Your public IP address reveals your approximate city or region, but not your street address. Someone would need additional information from your internet service provider to find your exact location, and internet service providers don't release this information without a legal request. Your private IP addresses are completely invisible to the internet and reveal nothing about your location.

Why do I have a different IP address on my phone than on my laptop?

Each device on your home network gets its own private IP address assigned by your router, so your phone and laptop will have different private addresses. They share the same public IP address because they both connect to the internet through the same router. Websites see only your public address, not the private addresses of individual devices.

What does it mean if a website says my IP address is blocked?

A website or service has decided to refuse connections from your public IP address, usually because of suspicious activity, too many failed login attempts, or a policy violation. You can sometimes resolve this by restarting your router to get a new public IP address, or by contacting the website to explain your situation and ask them to unblock you.

Do I need to do anything to get an IP address?

No. Your internet service provider and your router assign IP addresses automatically when you connect. You don't need to request one or configure anything — it happens in the background. The only time you might need to manually set an IP address is if you're configuring a device that needs a static address, like a printer or security camera.

Is my IP address the same as my Wi-Fi password?

No, they're completely different. Your IP address is a number that identifies your device on the network. Your Wi-Fi password is what you type to connect to your router. Someone could know your IP address without knowing your Wi-Fi password, and vice versa.