Skip to content

Instantly share code, notes, and snippets.

@snatchev
Created March 26, 2014 20:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snatchev/9792858 to your computer and use it in GitHub Desktop.
Save snatchev/9792858 to your computer and use it in GitHub Desktop.
Disable Java SOCKS Proxy in OS X
Java will use the system SOCKS proxy by default, but it will not bypass the hostnames such as *.local, localhost, 0.0.0.0, etc.
The Java PrefPane also does not disable the SOCKS proxy even if you choose "Direct Connection". The best way to disable JAVA from connecting over a Proxy is to set the options with no values:
JAVA_OPTS="$JAVA_OPTS -DsocksProxyPort -DsocksProxyHost"
thanks to: http://mxw.pl/blog/?p=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment