Working except for validity of IPv4 addresses