I am trying to use the below code to get the users IP to understand what country they are within but when i publish my MVC Core to an app service in Azure, the ip address is coming back as an IP from Netherlands and assigned to Microsoft Corporation, is this because it is hosted in the cloud and it is pulling the cloud IP? If so how do i get around this?
string info = new WebClient().DownloadString("http://ipinfo.io");
return JsonConvert.DeserializeObject<IpInfo>(info);