Added an Utility method to get the ip address from the hostname.