HttpContext.Connection.RemoteIpAddress gets IpAddress: 10.224.* code example
Example: net core get remote ip
var ip = _accessor.ActionContext.HttpContext.Connection.RemoteIpAddress.ToString();
var ip = _accessor.ActionContext.HttpContext.Connection.RemoteIpAddress.ToString();