Hostname must be of type InternetAddress.