Minecraft Java Edition – Using SOCKS Proxy for Minecraft

minecraft-java-editiontechnical-issues

Minecraft is very cool, much fun, but it doesn't appear to be listening when I tell it to use a SOCKS proxy for multiplayer connections.

In Java 8 (my version is 1.8.0_65), under section 2.4 of this page in the documentation, it says the following:

There are 2 system properties related to SOCKS:

  • socksProxyHost for the host name of the SOCKS proxy server
  • socksProxyPort for the port number, the default value being 1080

However, when running MC with the following options concatenated onto the end of the JVM arguments:

-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=8080 -DproxySet=true

or

-Djava.net.useSystemProxies=true

It does not send the information through SOCKS. I have tested this server in Safari and it works just fine (external IP address changes). (note that this is using localhost as I run the SOCKS server in the background through a tunnel to an SSH server).

I've also tried manually starting launcher.jar with these options, but to no avail.

Am I missing something here?

Best Answer

This is a documented bug...

And it doesn't look like it's getting fixed anytime soon. However, I'm going to play with modifying the .jar file and edit this answer when I've found the solution through that method.