Code to find ip address of host.