Getting the IP address of an instance