如何以编程方式永久删除对程序的防火墙检查

发布于 2024-12-23 18:55:47 字数 247 浏览 4 评论 0原文

我有一个应用程序,它使用 UDP 协议从同一台计算机上运行的另一个应用程序发送和接收数据。每次我重新启动计算机后打开该程序时,防火墙都会告诉我它已被阻止并询问我是否允许访问。有没有办法以编程方式将此程序永久添加到“受信任”用户列表中,以便该对话框停止弹出,这样我的用户就不必手动更改其计算机上的任何内容?

该应用程序使用 VC++ 2005,我运行的是 Windows XP SP3。我还需要一些可以在 Windows 7 上运行的东西,因为我们可能很快就会更新。

I have an application that sends and receives data from another application running on the same machine using UDP protocol. Every time I open the program after I restart my computer, the firewall tells me it is blocked and asks if I want to allow access. Is there a way to permanently add this program to a "trusted" user list programmatically so that this dialogue stops popping up and so my users don't have to change anything on their machines manually?

The application is in VC++ 2005 and I'm running Windows XP SP3. I also needs something that will work on Windows 7, since we may be updating soon.

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

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

发布评论

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

评论(1

爱格式化 2024-12-30 18:55:47

将套接字绑定到 127.0.0.1 或 ::1 而不是 0.0.0.0 或 :: ,防火墙将不会阻止您。

Bind the socket to 127.0.0.1 or ::1 instead of 0.0.0.0 or :: and the firewall won't block you.

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