An IP address is four numbers separated by dots, like 192.168.1.1, and each number identifies a different part of your location on the internet

Every device that connects to the internet — your phone, laptop, printer, smart TV — gets an IP address so other devices know where to send information back to you. Think of it like a mailing address: the postal service needs to know where you live to deliver a letter. The internet works the same way. Without an IP address, data packets would have nowhere to go.

An IP address has four sections separated by periods. Each section is a number between 0 and 255. So you might see something like 203.45.128.7 or 10.0.0.5. These numbers are not random — they follow a system that tells the internet where your device is located and which network it belongs to.

Key Takeaways

  • An IP address contains four numbers (0–255) separated by dots, and each number serves a specific purpose in routing data to your device.
  • The first one, two, or three numbers identify your network, while the last number or numbers identify your specific device within that network.
  • Your internet service provider assigns your public IP address, which is visible to websites you visit; your router assigns private IP addresses to devices inside your home.
  • Most home networks use private IP addresses that start with 10, 172, or 192, which are reserved for internal use only.

How the four numbers break down

The four numbers in an IP address are called octets because each one represents eight bits of data in binary code. But you do not need to think in binary — just understand that each octet has a job.

The first octet usually tells you what class of network it is. If it starts with 192, you are likely looking at a private home or small business network. If it starts with 10, it is also private but usually a larger network. If it starts with something like 203 or 8, it is a public address on the open internet. The remaining octets narrow down the location: the second and third often identify the specific network, and the fourth identifies your device on that network.

For example, in the address 192.168.1.50: the 192.168 part says "this is a private home network," the .1 narrows it down to a specific subnet, and the .50 means "this is device number 50 on that subnet." Your router is usually .1, your first computer might be .2, your phone might be .3, and so on.

Public IP addresses versus private IP addresses

Your internet service provider gives your home or business a public IP address. This is the address that websites see when you visit them. It is unique across the entire internet — no two devices on the public internet have the same public IP address at the same time. Websites log this address, which is why your location can sometimes be guessed based on your IP.

Inside your home, your router creates a private network and assigns private IP addresses to each device. These addresses are only meaningful inside your home network. Your phone might be 192.168.1.5, your laptop might be 192.168.1.10, and your smart speaker might be 192.168.1.15. These private addresses are not visible to the outside internet. Your router translates between them — it receives data meant for your public IP, figures out which device inside your home should get it, and forwards it to that device's private IP.

This system is why you can have dozens of devices at home, but your internet service provider only needs to give you one public IP address. The router handles all the translation behind the scenes.

Why IP addresses are divided into ranges

The internet is organized into large blocks of IP addresses, and different organizations control different blocks. Your internet service provider controls a block and assigns pieces of it to customers. A large company might control its own block. This organization prevents chaos — without it, there would be no way to route data efficiently across billions of devices.

Certain ranges of numbers are reserved for private use and will never appear on the public internet. These are 10.0.0.0 through 10.255.255.255, 172.16.0.0 through 172.31.255.255, and 192.168.0.0 through 192.168.255.255. Any device on any private network can use these addresses because they are never routed across the public internet. This is why almost every home router uses 192.168.x.x — it is a safe, reserved range.

How your device gets an IP address

When your device connects to a network, it does not just pick a random IP address. Instead, it sends out a request, and a server on the network — usually your router — assigns one. This process is called DHCP, which stands for Dynamic Host Configuration Protocol. Your router keeps track of which addresses are in use and which are available, and it hands out addresses automatically.

Most home devices get a new private IP address each time they connect to your network, though the router usually gives them the same one if they reconnect soon after. Some devices, like printers or security cameras, are set to use a static IP address — one that never changes — so other devices on your network can always find them at the same address.

Your public IP address, assigned by your internet service provider, changes less often. It might stay the same for months or years, or it might change every time you restart your modem. This depends on your service provider's setup.

What happens when you look up your IP address

If you search "what is my IP address" in a browser, you will see your public IP address. This is the address that identifies you to the rest of the internet. Websites use it to log where traffic came from, to enforce geographic restrictions, or to block users from certain regions.

You will not see your private IP address this way because it only exists inside your home network. To find your private IP address, you have to look in your device's network settings. On Windows, you can open Command Prompt and type "ipconfig." On Mac or Linux, you can open Terminal and type "ifconfig." On a phone, the private IP is usually in Settings under Wi-Fi or Network.

Frequently Asked Questions

Can someone find out where I live from my IP address?

Not your exact address, but they can narrow it down to your city or region. Your internet service provider knows your real address, but websites and other internet users only see your public IP. Services that map IP addresses to locations use databases that are often accurate to within a few miles but rarely pinpoint a street address.

Why do some IP addresses start with 127?

The 127.0.0.0 range is reserved for your device to talk to itself. The most common one is 127.0.0.1, called localhost. When you run a program on your computer that needs to communicate over a network, it often uses this address to test itself without actually sending data across the internet.

What is the difference between IPv4 and IPv6?

IPv4 is the system described here — four numbers separated by dots. IPv6 is a newer system that uses longer addresses with letters and numbers, like 2001:0db8:85a3:0000:0000:8a2e:0370:7334. IPv6 exists because the world is running out of IPv4 addresses. Most devices and networks support both, but IPv4 is still far more common.

If I restart my router, will my IP address change?

Your private IP addresses might change, but your public IP address usually stays the same. Your router will reassign private addresses to your devices when they reconnect, and they may get different numbers than before. Your internet service provider is unlikely to change your public IP just because you restarted your modem, though it is possible.