Try to get private IP address if public IP is not available