How can I play Minecraft through a proxy server?

There are many people that are forced to use a proxy, be it students in shared accommodation or school staff. Following the blog of The Minecraft Teacher I've realised that Minecraft could be used for educational purposes, but most schools have a proxy.

I've so far found that moving the minecraft.exe into the %appdata%/bin folder and creating a batch file with this in should work:

java -Dhttp.proxyHost=hostURL -Dhttp.proxyPort=hostPort -Xmx800m -jar Minecraft.exe 

... although I've so far been unable to get this to work.

8

7 Answers

To be able to play not just the HTTP proxy needs to be added, but also the HTTPS, because authenticating is going through that.

The proper batch file should look like this:

java -Dhttp.proxyHost=proxyURL -Dhttp.proxyPort=proxyPORT -Dhttps.proxyHost=proxyURL -Dhttps.proxyPort=proxyPORT -Xmx800m -jar Minecraft.exe

I put the batch file next to my Minecraft.exe and started with this. Works like a charm ;)

2

If you have sufficient control over the server, I'd suggest using something like n2n, which is an awesomely simple (though command line argument heavy, and gui-less) VPN system.

PuTTY is a very cool ssh client for all platforms, and while the tunneling configuration is a bit wonky, you can essentially remap the server's port to a local port (the command would be ssh -L:localhost: though working through the gui would be a bit harder.) When you've got that set up, you can type localhost: into Minecraft and connect to the server. Note that you need ssh access to the server for this to work, similar to the solution.

Those are all the solutions I can think of now, though previous posters have suggested other VPNs you might want to look in to.

I have wanted to do the same thing and by combining the answers on this page along with the answers on another page, I have a solution that is working for me. All the commands that you'll need (create a batch file and put it in the same directory that the minecraft.exe file is in) are:

java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=80 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=443 -DsocksProxyHost=localhost -DsocksProxyPort=1080 -Xmx800m -jar Minecraft.exe

The extra part (on top of what Dutch suggests) is the forwarding of the SOCKS port as well. With all this in a batch file and with my SSH proxy running through Putty, I was able to connect to multiplayer servers without any problems.

Your best shot would be to set up your own proxy.

I do not know if you can configure an SSH connection to a PC of yours. But SSH enable you to tunnel connections via the SSH one.

So if your school does not allow the port you need, you'll have to "enable" it by your own means. (The best would be SSH cause you can set it up on 443 port that is use for HTTPS, so it is enabled in most proxies)

I use Comodo VPN to play Minecraft with my friends and it works great, right out of the box.

We're students and our dorms each connect to the Internet via separate NATs, so we cannot establish connections directly between our machines. Because of that, even though SSH and proxies are possible, they weren't really practical since we needed an external server for them, so we decided to use a VPN software. Once the connection is established, traffic is routed directly between us, not using an external server, so the speed is great.

If you have the necessary privileges required to install software on the machines you're using, I'd recommend giving Comodo VPN a try (it's free as in beer by the way).

This answer used to work for me, but recently stopped working, possibly due to a Minecraft update. Now I run Minecraft via ProxyChains ala

proxychains java -jar Minecraft.jar
1

As things currently stand, there is no way of playing Minecraft, Vanilla (i.e. no mods or extra software), through a proxy. This may change within time and if it does I will update the answer.

3

You Might Also Like