如何以编程方式永久删除对程序的防火墙检查
我有一个应用程序,它使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将套接字绑定到 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.