Retrieve local IP address when no public one is available

EC2 + OpenStack only.