c# webApi监听请求ip

  var reqData = Request.Properties["System.ServiceModel.Channels.RemoteEndpointMessageProperty"] as System.ServiceModel.Channels.RemoteEndpointMessageProperty;
            string address = reqData?.Address;

猜你喜欢

转载自blog.csdn.net/weixin_38172370/article/details/89850478
今日推荐