在 CSLA 远程数据门户中获取 IP 地址

发布于 2024-08-05 16:42:23 字数 136 浏览 1 评论 0原文

我正在 CSLA 中编写一个应用程序,并且想要记录 IP 地址,但前提是客户端正在调用远程数据门户(例如 WCF 门户)。

在远程数据门户中执行时如何获取客户端的 IP 地址?我意识到我可能可以通过请求传递它,但如果可能的话我想避免这种情况。

I'm writing an app in CSLA and want to log IP addresses, but only if the client is calling a remote data portal (such as the WCF one).

How can I get the client's IP address when executing within a remote data portal? I realize I could probably pass it with the request, but I'd like to avoid this if possible.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文