Write a program to validate whether a given string represents a valid IPv4 address.
what is IPv4 address?
An IPv4 address consists of four numbers separated by periods, where each number is between 0 and 255, inclusive.
"192.168.0.1"
"255.255.255.255"
"0.0.0.0"
"1.1.1.1"
"1.2.3.4"
"10.20.30.40"
"256.127.0.1"
"192.168.300.1"
"abc.def.ghi.jkl"
"hello"
Valid IP Address
Invalid IP Address
Last updated 1 year ago