An IP address has four numbers separated by periods, each ranging from 0 to 255

An IP address (Internet Protocol address) is made up of exactly four numbers, called octets, separated by periods. Each number can be anywhere from 0 to 255. So a complete IP address looks like this: 192.168.1.1 or 8.8.8.8. Every device that connects to the internet — your computer, phone, printer, or router — has an IP address so other devices know where to send information.

The four-number format is called IPv4, and it has been the standard for decades. There is a newer format called IPv6 that uses a different structure with letters and numbers, but IPv4 is still what most people encounter in their home networks and everyday life.

Key Takeaways

  • An IP address contains four numbers (octets) separated by periods, with each number between 0 and 255.
  • Each octet represents 8 bits of data, which is why the maximum value is 255 (the highest number you can make with 8 bits).
  • The first one, two, or three octets identify your network, while the remaining octets identify your specific device on that network.
  • Private IP addresses (like 192.168.x.x or 10.x.x.x) are used inside your home or office, while public IP addresses are used on the internet.

Why each number only goes up to 255

Each of the four numbers in an IP address is limited to 0–255 because each one represents 8 bits of binary data. In binary, 8 bits can represent numbers from 0 to 255 — that is the mathematical limit. When computer engineers designed IP addresses, they divided the total 32 bits (4 × 8) into four equal sections to make the addresses easier for humans to read and remember.

If you tried to enter 256 or higher in any position, your device would reject it as invalid. The system is rigid about this because IP addresses have to follow the same rules everywhere on the internet.

What each number in the address represents

The four numbers do not all do the same job. The first one, two, or three numbers identify which network you are on, and the remaining numbers identify your specific device within that network. How many numbers are used for the network depends on the network's size, which is determined by something called a subnet mask.

For example, in a typical home network with the address 192.168.1.100 and a subnet mask of 255.255.255.0, the first three numbers (192.168.1) identify your home network, and the last number (100) identifies your individual device. If you have a printer on the same network, it might be 192.168.1.50. Both devices share the same first three numbers because they are on the same network.

In a larger office network, the subnet mask might be different, meaning more or fewer of the numbers are used to identify the network. This is why understanding your subnet mask matters when you are setting up devices or troubleshooting connection problems.

Private IP addresses versus public IP addresses

Not all IP addresses work the same way. Private IP addresses are used only inside your home or office network and are never sent out to the internet. They always start with 10, 172, or 192. The 192.168 range is the most common in home networks — that is why you see addresses like 192.168.1.1 on your router.

Public IP addresses are assigned by your internet service provider and are visible to the rest of the internet. This is the address that websites see when you visit them. Your router has a public IP address (which you can find by searching "what is my IP" in a browser), and it translates between your private home network and the public internet.

Your device does not need to know its public IP address for everyday use — your router handles that translation automatically. But if you are setting up remote access or troubleshooting a connection, knowing the difference between private and public addresses helps you understand what is happening.

How IP addresses are assigned to your devices

Your router assigns private IP addresses to devices on your home network in one of two ways. The most common method is DHCP (Dynamic Host Configuration Protocol), which automatically hands out addresses from a pool. When you turn on your phone or laptop, DHCP gives it an available address — usually something like 192.168.1.50 or 192.168.1.75 — and that address can change the next time you restart the device.

The second method is a static IP address, where you manually assign a specific address to a device and it stays the same. People use static addresses for devices that need to be found at the same location every time, like a printer or a security camera. If you want to set a static address, you do this in your router's settings, not on the device itself.

Your public IP address is assigned by your internet service provider and typically stays the same for months or years, unless you restart your modem or your service plan changes. Some providers offer static public IP addresses for an extra fee if you need one that never changes.

What to do if you need to find your IP address

Finding your private IP address depends on what device you are using. On Windows, open Command Prompt and type ipconfig, then press Enter. Look for the line that says "IPv4 Address" — that is your private address. On a Mac, go to System Preferences, click Network, and your IP address appears in the window. On an iPhone or Android phone, go to Settings, then Wi-Fi, tap the network you are connected to, and scroll down to see the IP address.

To find your public IP address (the one the internet sees), open any web browser and search for "what is my IP." The first result will show your public address. You can also visit websites like whatismyipaddress.com or ipinfo.io, which display your public IP along with other network information.

If a device is not getting an IP address at all, it usually means your router's DHCP server is not working or the device is not connected to the network. Restarting your router often fixes this — turn it off for 30 seconds, then turn it back on and wait for the lights to stabilize.

IPv6: the newer format with more numbers

IPv4 addresses (the four-number format) are running out because there are only about 4.3 billion possible combinations, and the world has far more devices than that now. IPv6 is the newer standard that uses a longer format with letters and numbers, like 2001:0db8:85a3:0000:0000:8a2e:0370:7334. This format allows for vastly more addresses.

Most home networks still use IPv4, but IPv6 is becoming more common. Many devices and networks now support both formats at the same time. You do not need to do anything to switch — your internet service provider and router handle this automatically. If you see an IPv6 address in your network settings, that just means your device can use both the old and new formats.

Frequently Asked Questions

Can I change my IP address?

You can change your private IP address by restarting your device or by manually assigning a static address in your router settings. Your public IP address is controlled by your internet service provider, but you can force a change by unplugging your modem for a few minutes and plugging it back in. However, there is no may provide the new address will be different — your provider may assign you the same one.

Why do some devices have the same first three numbers?

Devices with the same first three numbers are on the same network. Your router groups all devices on your home Wi-Fi into one network, so they all share the same network portion of the address. This is how your devices can communicate with each other without going out to the internet.

What does 192.168.1.1 mean?

192.168.1.1 is the default address for most home routers. The first three numbers (192.168.1) identify your home network, and the last number (1) identifies the router itself as the first device on that network. You enter this address into your browser's address bar to access your router's settings.

Is my IP address the same as my MAC address?

No. Your IP address is a number that identifies your device on a network and can change. Your MAC address is a permanent identifier built into your device's network hardware and never changes. They serve different purposes — IP addresses route data across networks, while MAC addresses identify devices on the same local network.

Do I need to know my IP address for everyday internet use?

No. Your device and router handle IP addresses automatically in the background. You only need to know your IP address if you are setting up a device, troubleshooting a connection problem, or configuring remote access to something on your network.