Added support to use IP address in addition of HOSTNAME