0

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.

4

1 回答 1

1

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

于 2012-01-03T23:52:46.870 回答