Add function which retrieves external IP