Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 W. Apr 24 '12 at 1:46
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.