IP Address Validator
Validate IPv4 and IPv6 addresses checking format, octets and compression.
How it works
The validator checks whether the address follows the correct IP protocol format. For IPv4, it verifies 4 octets of 0-255 without leading zeros. For IPv6, it validates :: compression and the number of hexadecimal groups.
Facts about the IP Validator
- IPv4 uses 32 bits and is represented in dotted-decimal format (e.g. 192.168.1.1).
- IPv6 uses 128 bits and is represented in colon-separated hexadecimal format (e.g. 2001:db8::1).
- :: compression replaces consecutive groups of zeros in IPv6 addresses.
- Validation is format-only, with no external DNS or geolocation queries.
Official references
Consult the official IP protocol specifications:
- RFC 791 β Internet Protocol: The official IPv4 protocol specification.
- RFC 4291 β IP Version 6 Addressing Architecture: The official IPv6 addressing architecture.