error handling for ip address conversion, warning for ipv6