Improve get_ip to try for real ip address