Java application on Mac asking to allow network connections every time

My Java.app broadcasts the package on the web as soon as it starts. Every time I run this application the Mac asks me if I want to allow network connections blah..blah .. Can I use info.plist or something to allow network access to this application and not disturb the user who downloaded and installed my application.

thanks

+2


a source to share


2 answers


You can choose allow incoming connections

for certain services in System Preferences

> Security

> Firewall

.

Application: The application will only appear if the user has selected "Set access for specific services and applications." It will be added the first time the application tries to open the port.



Application: The application appears with a name java

in the panel Firewall

. As soon as the user decides to accept or reject, the dialog stops appearing. This simple example is convenient for testing.

+2


a source


If you code your application (using the same key for updates) it should work correctly with the application firewall. There seems to be a bug on Apple's side where unsigned Java applications ask for permission to network connections (even if they don't try to listen on the network) every time they start.



0


a source







All Articles