WCF(或替代方案)通过互联网在机器上设置控制器-工作人员

发布于 2024-10-31 00:55:17 字数 349 浏览 9 评论 0原文

我们有一个 .net 监控服务,该服务在英国各地安装的多台 PC 上运行。我们需要能够通过中央网络应用程序与这些电脑进行通信,以便向它们发送单独的命令并向它们请求数据。

这些电脑都具有互联网连接,但可能位于防火墙后面。由于这些 PC 可能无法直接通过 URL 进行联系,因此我们需要某种方式让这些“工作人员”连接到集中式服务器,识别自己的身份,然后响应服务器的命令。

我们正在将 WCF P2P 作为一种解决方案,但对此有一些担忧(您可以用它来定位单个工作人员吗?我们是否会遇到 NAT 和防火墙的问题)。我们还考虑使用 XMPP 作为通信协议。

P2P 是前进的方向吗,还是有更好的解决方案(WCF 或其他)。

谢谢

We have a .net monitoring service that runs on several PCs installed across the UK at client locations. We need to be able to communicate with these pc's from a central web application in order to send them individual commands and request data from them.

These PCs all have internet connectivity but may be behind firewalls. Because these PCs may not be contactable directly from a URL, we need some way for these "workers" to connect to the centralised sever, identify themselves, and then respond to commands from the server.

We are looking at WCF P2P as a solution, but have a few concerns about this (can you target an individual worker with this, and will we suffer problems with NATs and firewalls). We also considered using XMPP as a protocol to communicate.

Is P2P the way forwards, or is there a better solution (either WCF or otherwise).

Thanks

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枯叶蝶 2024-11-07 00:55:17

我建议使用netPeerTcpBinding

这里有一篇好文章

I suggest using netPeerTcpBinding.

There is a good article here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文