Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How is it possible to run a java game like Minecraft behind a SSH tunnel (SOCKS proxy). I configured the proxy in Oneiric in the system settings and Ubuntu One, Pidgin, and so on works. But not the java game Minecraft. What can I do?

This solution did not work:

java -Dhttp.proxyHost=HOST -Dhttp.proxyPort=PORT -Dhttps.proxyHost=HOST -Dhttps.proxyPort=PORT -Xmx1000m -jar XXXXXXX.jar

Can anyone help me?

share|improve this question
Isn't SOCKS setup with -DsocksProxyHost=HOST? – Lekensteyn Apr 23 '12 at 18:06
I think it might be, @Lekensteyn, however Minecraft by default doesn't like proxies much, unless all your inet traffic is routed through it – Thomas Ward Apr 24 '12 at 1:46
up vote 2 down vote accepted

MineCraft does not have support for proxying of data. In Java, in order to support proxies, you need to have that support compiled in, or change your networking settings to use a proxy.

However, Minecraft does not look at the network settings, so unless your proxy is set to all Internet traffic being sent via a proxy (which sometimes breaks things), it will not work.

(Setting up proxy support in Java apps can be a pain, so I understand why the Minecraft devs left that out)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.