Get client IP in Azure through MVC 5 controller
问题 I can't find a question or post specific to Azure for this, and I'm not sure what's different in the environment in Azure versus my testing environments that would cause this. I've tried a few methods to get this to work but I'm not coming right. Please note this isn't Webapi, so using the HttpRequestMessage, as far as I know, is not going to work either. Here's what I've tried so far: Method 1: string ipAddress = ""; IPHostEntry Host = default(IPHostEntry); Host = Dns.GetHostEntry(System