To get the ip address of the machine