C# WebApi从Http请求中获取客户端的ip地址

System.Web.HttpContext.Current.Request.UserHostAddress;

end...

posted @ 2021-11-03 16:35  小飛  阅读(1197)  评论(0编辑  收藏  举报