在WCF中获取客户端的Ip地址是否可行
在服务端,我们可以使用OperationContext.current来获取Ip地址。
同样的方式,我也可以进入客户端
提前感谢
发布于 2011-03-23 15:56:08
当然--如果你创建了你的客户端,你可以得到它的端点:
YourServiceClient client = new YourServiceClient();
string endpointAddress = client.Endpoint.Address.Uri.ToString();https://stackoverflow.com/questions/5402236
复制相似问题