📜  asp.net core 获取请求ip地址 - C#代码示例

📅  最后修改于: 2022-03-11 14:49:10.646000             🧑  作者: Mango

代码示例2
var remoteIpAddress = request.HttpContext.Connection.RemoteIpAddress;