1.1.1.1
would be a valid IP address, so the answer to your question is "7".
What's the minimum length of an IP address in string representation?
-
12-06-2023 - |
Question
Just wondering about the minimum character count of an IPv4 / IPv6 address in string representation. What's the shortest valid IP address?
Solution
OTHER TIPS
Technically, you can omit the first three octects if the are 0, therefore shortest ipv4 address is one byte, it is "1
", a shorthand for "0.0.0.1
".
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow