An IP address has four numbers separated by periods
An IP address is made up of four numbers, each between 0 and 255, separated by periods. For example: 192.168.1.1 or 8.8.8.8. Each of those four numbers is called an octet because it represents eight binary digits (bits) in the background — but you only need to think about the decimal numbers you see on your screen.
The four numbers work together to identify your device on a network. The first one or two numbers usually identify your network (like your home WiFi or office), and the last one or two identify your specific device within that network. This is why devices on the same network often have similar starting numbers.
This format — four numbers from 0 to 255 — is called IPv4, and it has been the standard since the 1980s. It allows for about 4.3 billion unique addresses, which seemed like plenty at the time. A newer format called IPv6 uses much longer addresses (six groups of numbers instead of four), but IPv4 is still what most home networks and devices use.
Key Takeaways
- An IP address contains four numbers separated by periods, with each number ranging from 0 to 255.
- Each number is called an octet and represents eight binary digits, though you only see the decimal version.
- The first numbers identify your network, and the last numbers identify your specific device on that network.
- IPv4 (the four-number format) supports about 4.3 billion addresses and remains the most common type in use today.
Why the numbers only go up to 255
Each of the four numbers maxes out at 255 because of how binary works. One octet — eight binary digits — can represent values from 0 to 255. In binary, 255 is written as 11111111 (eight ones in a row). If you tried to add one more, you would need a ninth digit, which would belong to the next octet instead.
This is why you will never see a number larger than 255 in any position of an IP address. If a device or router tries to assign an address like 192.168.1.256, it is a mistake — that fourth number is out of range. The system would reject it or automatically correct it.
What each position tells you about the address
The four numbers are not all equal. The first number (or sometimes the first two) identifies the network class — whether it is a home network, a large corporate network, or something else. On a home network, the first number is often 192, 10, or 172.
The middle numbers narrow things down further. On a typical home network with an address like 192.168.1.X, the first three numbers (192.168.1) stay the same for every device in your home, and only the last number changes. So your phone might be 192.168.1.5, your laptop might be 192.168.1.10, and your printer might be 192.168.1.20.
Large organizations use different patterns. A company might have addresses starting with 10.0.X.X, where the third and fourth numbers change depending on which department or building a device is in. The subnet mask (another set of four numbers) tells the network which parts of the address identify the network and which parts identify the device — but that is a separate concept from the address itself.
IPv4 versus IPv6: Why the format matters
IPv4 addresses have four numbers because they were designed in the 1980s when the internet was much smaller. Four octets provide about 4.3 billion possible addresses. That seemed unlimited at the time, but the world ran out of new IPv4 addresses to hand out around 2011.
IPv6 was created to solve this problem. Instead of four numbers, IPv6 uses six groups of hexadecimal numbers (base-16 instead of base-10), separated by colons. An IPv6 address looks like 2001:0db8:85a3:0000:0000:8a2e:0370:7334. This format supports trillions of trillions of addresses — far more than we will ever need.
Most devices and networks today support both IPv4 and IPv6, but IPv4 is still the default. Your home router, your phone, and most websites still use IPv4 addresses as their primary address. IPv6 is growing, but the transition is slow because so much existing equipment was built around the four-number format.
How to find your device's IP address
On Windows, open Command Prompt and type ipconfig, then press Enter. Look for "IPv4 Address" in the results — that is your four-number address. On Mac or Linux, open Terminal and type ifconfig or ip addr. Your address will be listed next to "inet" (for IPv4) or "inet6" (for IPv6).
On a phone or tablet, go to Settings, then Network or WiFi, and tap the network you are connected to. The IP address is usually listed under "IP Address" or "Advanced." On a router, you can usually find connected devices and their addresses by logging into the router's admin page — typically at 192.168.1.1 or 192.168.0.1 in your browser.
Private versus public IP addresses
The four-number format is used for both private and public IP addresses, but they serve different purposes. Private IP addresses are used only within your home or office network and are never sent across the internet. They always start with 10, 172, or 192 (in specific ranges). Your phone, laptop, and printer all have private addresses on your home network.
Your public IP address is assigned by your internet service provider and is what the rest of the internet sees when you connect. It is the address that websites use to send information back to you. You can find your public IP by searching "what is my IP" in a browser — it will show you the single address that represents your entire home or office to the outside world.
When you send a message or load a webpage, your device uses its private address to send the request to your router, your router translates it and sends it out using your public address, and responses come back the same way. This translation process is called Network Address Translation (NAT), and it is why you can have dozens of devices on a home network but only one public IP address.
Frequently Asked Questions
Can an IP address have numbers higher than 255?
No. Each of the four numbers must be between 0 and 255. If you see a number higher than 255 in an IP address, it is either a typo, a different format (like IPv6), or an error in how the address was displayed. Standard IPv4 addresses cannot contain any number larger than 255.
Why do some networks start with 192.168 and others with 10?
Both are private address ranges reserved for use inside networks. 192.168.X.X and 10.X.X.X are the most common for home and small office networks. Larger organizations often use 10.X.X.X because it provides more addresses within the same network. The choice is mostly convention — your router manufacturer decides which range to use by default.
Is my IP address the same as my MAC address?
No. Your IP address is the four-number address (like 192.168.1.5) that identifies your device on a network. Your MAC address is a different identifier made up of six pairs of letters and numbers (like 00:1A:2B:3C:4D:5E) that identifies your device's network card. Both are used in networking, but they serve different purposes.
Will IPv6 replace the four-number format completely?
Eventually, but not soon. IPv6 has been available since 1998, and we still use IPv4 as the default. The transition is slow because so much equipment, software, and infrastructure was built around the four-number format. Most networks today support both, and that dual support will likely continue for many years.