如何从WCF服务获取客户端的地址? [英] How do I get a client's address from a WCF Service?

查看:73
本文介绍了如何从WCF服务获取客户端的地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如何从WCF服务获取客户的地址?



实际上我们正在使用WCF Restful和soap,我们需要跟踪谁正在使用此服务,因为我们需要获取客户详细信息(客户端URL),如果您有任何想法,请发布您的解决方案和想法。< br $> b $ b



祝你们好朋友摇滚!!

Hi All,

How do I get a client''s address from a WCF Service?

Actually we are using WCF Restful and soap, we neee to track who are hitting this service for that reason we need to get client details(Client URL) if you people have any idea on that pls post ur solutions and thoughts.


Best Wishes you people are rock!!

推荐答案

你不能获取客户端 URL ,但您可以获得 IP



对于该引用 - 检测WCF 3.5中的客户端IP [ ^ ]。

您将找到实施。
You cannot get the client URL, but you can get the IP.

For that refer - Detect Client IP in WCF 3.5[^].
You will find the implementation.


这篇关于如何从WCF服务获取客户端的地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆