Improve get_ip to try for real ip address

Fixes #92