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
This has moved since the original answer was posted. Access it now via
httpContext.Features.Get()?.RemoteIpAddress