get current ip address from HttpContext in dotnet core code example
Example: net core get remote ip
var ip = _accessor.ActionContext.HttpContext.Connection.RemoteIpAddress.ToString();
var ip = _accessor.ActionContext.HttpContext.Connection.RemoteIpAddress.ToString();