asp net core remote ip address returing local code example
Example: net core get remote ip
var ip = _accessor.ActionContext.HttpContext.Connection.RemoteIpAddress.ToString();
var ip = _accessor.ActionContext.HttpContext.Connection.RemoteIpAddress.ToString();