What makes an IPv4 address valid
A valid IPv4 address is four numbers separated by periods, where each number falls between 0 and 255. That's it. An address like 192.168.1.1 is valid because each section (called an octet) stays within that range. An address like 192.168.1.256 is not valid because 256 exceeds 255.
Your router, your devices, and your internet service provider all use this same format. When you see an IP address written down — on a router label, in a settings menu, or in a support email — you can check it yourself in seconds by looking at those four numbers.
The reason for the 0–255 limit is technical: each octet represents 8 bits of data, and 8 bits can only hold values up to 255. But you don't need to remember why. You just need to remember the rule: four numbers, periods between them, each number 0 to 255.
Key Takeaways
- A valid IPv4 address has exactly four numbers separated by periods, with each number between 0 and 255.
- Common valid addresses on home networks start with 192.168 or 10, because those ranges are reserved for private use.
- If any number in the address is 256 or higher, or if there are more or fewer than four sections, the address is invalid.
- You can check an address yourself without any tool — just count the sections and verify each number stays under 256.
Examples of valid IPv4 addresses
Here are addresses you will actually see on home networks:
- 192.168.1.1 — the default address for many home routers
- 192.168.0.1 — another common router address
- 10.0.0.1 — used by some routers and corporate networks
- 172.16.0.1 — less common at home, but valid for private networks
- 8.8.8.8 — Google's public DNS server
- 1.1.1.1 — Cloudflare's public DNS server
All of these follow the rule: four numbers, each between 0 and 255, separated by periods. The first three examples are private addresses, meaning they only work on your own network. The last two are public addresses, meaning they work across the internet.
Examples of invalid IPv4 addresses
Here are addresses that will not work:
- 192.168.1.256 — the last number exceeds 255
- 192.168.1 — only three sections instead of four
- 192.168.1.1.1 — five sections instead of four
- 192.168.1.a — contains a letter instead of a number
- 192.168.-1.1 — contains a negative number
- 192.168.1.1.1.1.1 — far too many sections
If you see an address that breaks any of these rules, it is not a valid IPv4 address. Your device will reject it if you try to enter it in a network settings menu.
Where you will encounter IPv4 addresses at home
Your router has an IPv4 address printed on its label or visible in its settings. This is the address you type into your browser to reach the router's control panel — usually something like 192.168.1.1 or 192.168.0.1.
Each device on your network — your phone, laptop, printer, smart TV — also has its own IPv4 address. Your router assigns these automatically through a system called DHCP. You can find your device's address in its network settings, though you rarely need to look at it.
When you contact your internet service provider for support, they may ask for your public IP address, which is the address your entire home network uses on the internet. This is different from your private addresses and changes periodically. You can find it by searching "what is my IP" in any browser.
How to check if an address is valid without tools
You do not need software or a website to verify an IPv4 address. Use this three-step check:
- Count the sections separated by periods. There must be exactly four.
- Look at each number. None can be 256 or higher, and none can be negative.
- Check that each section contains only digits (0–9), not letters or symbols.
If the address passes all three checks, it is a valid IPv4 address format. If it fails any one, it is invalid.
For example: 172.16.254.1 passes all three checks (four sections, all numbers under 256, no letters). But 172.16.254.1.5 fails the first check (five sections), so it is invalid.
Why the 0–255 range matters
Each section of an IPv4 address represents one byte of data. A byte can store 256 different values: 0 through 255. This is why no single number in an IPv4 address can exceed 255.
This limitation is built into the IPv4 standard itself, which has been in use since the 1980s. It is not a rule someone made up — it is how the system works at the most basic level. When you see 256 or higher in an address, the system cannot process it because that value does not fit in a single byte.
Understanding this helps you remember the rule without having to look it up: if a number is too big to fit in one byte, it is too big for one octet, and the whole address is invalid.
Frequently Asked Questions
Can an IPv4 address start with 0?
Yes. An address like 0.0.0.0 is technically valid in format, though it has a special meaning in networking (it represents "no address" or "any address"). In practice, you will not see it assigned to a real device on your home network.
Is 255.255.255.255 a valid IPv4 address?
It is valid in format — four sections, all under 256 — but it is a broadcast address, meaning it sends a message to every device on a network at once. Like 0.0.0.0, it has a special purpose and is not assigned to individual devices.
What if I see an IPv4 address with extra spaces or dashes?
It is invalid. IPv4 addresses use only periods as separators. If you see 192.168.1.1 (with spaces) or 192-168-1-1 (with dashes), it is not a valid IPv4 address and will not work in network settings.
Do I need to memorize valid IPv4 addresses?
No. You only need to recognize the format and spot obvious errors. Your devices handle the rest automatically. The only address you might want to remember is your router's address (usually 192.168.1.1 or 192.168.0.1) so you can reach its settings menu.
Can an IPv4 address have leading zeros, like 192.168.001.001?
Technically it is valid in format, but most devices and networks treat leading zeros as octal notation (a different number system), which can cause confusion. Avoid entering addresses with leading zeros unless a specific device asks for them.