.net core web api get remote client ip address code example
Example: net core get remote ip
var ip = _accessor.ActionContext.HttpContext.Connection.RemoteIpAddress.ToString();
var ip = _accessor.ActionContext.HttpContext.Connection.RemoteIpAddress.ToString();