Another method to get an ip address.