Gmu
Gmu

Reputation: 368

Java App on Mac asking for allow network connections everytime

My Java.app broadcasts a packet on the network as soon as it starts up. Everytime I start this app, the Mac asks me do I want to allow network connections blah..blah.. Can I use info.plist or something to allow network access to this app and not bother the user who has trustingly downloaded and installed my app.

Thanks

Upvotes: 3

Views: 5077

Answers (2)

Sean Reilly
Sean Reilly

Reputation: 748

If you codesign your app (using the same key across updates) it should work properly with the app-specific firewall on. It seems to be a bug on Apple's side that unsigned java apps are prompted for allowing network connections (even if they don't try to listen to the network) every time they are run.

Upvotes: 0

trashgod
trashgod

Reputation: 205785

You can choose to allow incoming connections for specific services in System Preferences > Security > Firewall.

Addendum: You application will appear only if the user has chosen to "Set access for specific services and applications." It will be added the first time the application attempts to open the port.

Addendum: The application appears with the name java in the Firewall pane. Once the user chooses to accept or deny, the dialog ceases to appear. This simple example is convenient for testing.

Upvotes: 2

Related Questions