public IpAddress(Hostname hostname) throws NameResolutionException {
try {
inetAddress = InetAddress.getByName(hostname.getHostname());
} catch (UnknownHostException e) {
throw new NameResolutionException(e);
}
setAddress(inetAddress.getAddress());
if (address.length == 4) {