Jump to content

Connecting to a server through Socks Proxy


Snail

Recommended Posts

Basically title. I recall in older versions of minecraft, before it used netty, you could set system properties to use socks proxy. It's not a thing anymore as far as i can tell.

The idea: mod that lets people connect to each others LAN worlds through custom implemented tunnel. It works by opening local socket server which relays all the traffic through a tunnel to destination server. That way you can connect to, for example, localhost:40001 and you'll be playing on your friend's LAN server.

Custom Socks4a or 5 proxy with remote DNS resolution let's you add a server in your list with a domains like harry.friend:25565, that you could connect to. Right now i can't see any way of doing it

What i tried:
 

ClientConnectedToServerEvent

Using this to insert your Socks4ProxyHandler into netty channel pipeline, but it looks like by the time it invokes, you're already connected to the server and of course the whole thing doesn't make sense anymore.

Any ideas how this can be done?

Edited by Snail
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.