ipaddress error handling