0

I'm using sockets to communicate between local processes. This causes the OSX firewall to prompt:

Do you want the application "Foo.app" to accept incoming network connections?

I have two problems:

  • Ideally the prompt should not appear, since the socket is only for local use
  • The dialog appears then immediately disappears, so the user doesn't have time to click "Allow" or "Deny".

The code:

new ServerSocket();

Note that specifying localhost or 127.0.0.1 does not prevent the prompt either:

new ServerSocket(0, 0, InetAddress.getByName(null));
4

0 回答 0