If hostname can't be found use IP