Java应用程序和Windows防火墙
Windows防火墙会阻止我的应用程序连接到不同的数据库。我的应用程序使用install4j具有安装程序构建。 我想知道是否可以在安装过程中设置防火墙规则以允许JDBC连接,而无需要求用户手动添加规则或禁用Windows防火墙。
作为管理员运行该应用程序会与防火墙产生更少的问题。我还可以将可执行文件设置为管理员运行,但这将促使用户每次获得权利。
The Windows Firewall blocks my application to connect to different databases. My application has an installer build using Install4j.
I am wondering if I can set Firewall rules during installation to allow JDBC connectivity, without asking the user to manually add rules or disable the Windows Firewall.
Running the application as an Administrator creates less issues with the Firewall. I can also set the executable to run as an Administrator, but this will prompt the user each time for rights.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我们的Install4J安装程序中,我们使用“运行可执行文件或批处理文件”操作通过NetSh添加防火墙规则:
In our install4j installer we used the "Run executable or batch file" action to add a firewall rule via netsh: