What is the equivalent in Asp.Net Core of the old HttpContext.Request.UserHostAddress?
HttpContext.Request.UserHostAddress
I tried this.ActionContext.HttpContext but cannot fi
this.ActionContext.HttpContext
For aspnet rc1-update1 I found IP(with port) in X-Forwarded-For header, which's value can be accessed from controller as HttpContext.Request.Headers["X-Forwarded-For"].FirstOrDefault().
X-Forwarded-For
HttpContext.Request.Headers["X-Forwarded-For"].FirstOrDefault()