I have a Windows PC which is running a standalone Java application which requires internet access. To limit data usage from other applications (like Windows Update, Anti Virus, etc...), the PC has been setup with Windows Firewall, and to only allow outbound connections to specific white listed applications.
I currently have listed: DNS on UDP port 53 Java.exe and Javaw.exe
However when I run the Java application I am getting the following stack error...
java.net.SocketException: Permission denied: connect
My understanding that white listing Java.exe would allow internet access to the Java Application, but this does not work.
Any idea why?