hostname is a valid hostname for a host in this network environment;
does not guarantee that the host exists in this network environment.url.uri, and throws an exception if it's not a valid uri.url.InetSocketAddress.getLocalAddress(int) to map a local port number to an
InetSocketAddress.parse(String) to map an endpoint spec to an
InetSocketAddress.