net::Ip, Port: make sure arguments are valid