Networks

How to check the format of an IPv4 address

Checking how an address is written can reveal simple errors before reviewing a configuration; it does not test the connection.

Before you start

Text is processed in the browser. Consider the content before using it and read the privacy policy.

Privacy

How to use it

  1. Enter 192.0.2.1 in the IPv4 validator and validate it.

  2. Try 999.0.2.1 and compare the message.

  3. Check each of the four numbers: they must be between 0 and 255.

IP Validator

Worked example

192.0.2.1 is a documentation example; 999.0.2.1 has a first octet greater than 255.

Result: 192.0.2.1 valid; 999.0.2.1 invalid.

RFC 5737: IPv4 documentation

Limits and checks

Use dotted decimal without leading zeroes in octets. This checks syntax only, not whether an address is assigned, reachable or configured.

Next step

To represent the same IPv4 address as an integer, see the converter.

How to convert a dotted IPv4 address to an integer and back
Back to the blog