ASP.NET CORE如何获得客户端IP地址

var remoteIpAddress = request.HttpContext.Connection.RemoteIpAddress;