Revert to using InetAddress. Add check to verify if host is reachable.