Code to get external IP address