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.
Solution 1:
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 ;)
Solution 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.