I have this code on how to get my IP address. Locally the code is running and I got my IP address correctly, but when I run this code using link in azure different ip address is generated. So for example this is my correct ip address: "ipaddress": "136.158.26.238",
azure link: https://mysite.cloudapp.azure.com/mywebsvc/mywebsvc.svc/rest/generateip?username=testing3 I got an ip address: "ipaddress": "13.67.90.14",
Help is highly appreciated.
using System.Net;
ipaddress = new WebClient().DownloadString("https://ipv4.icanhazip.com/").Replace("\n", "").