Added code to get host ip address