Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Looking For Proxy Support SRC Or Help 1.12 // Forge

Sheyna1337

New member
Joined
Oct 13, 2021
Messages
3
Reaction score
0
Points
0
Heya! I am trying to setup that i can connect to servers via proxy!

I know theres one forge mod that adds proxy support (I already decompiled it and looked into it) but cant get it quite working for my needs. I just want one function that i can call where i set the proxy details and boom working. I dont think its that hard with the io.netty lib but yea maybe theres someone who can help me <3

Appreciate anything that could help me such as links to tutorials or whatever.


Discord: Sheyna#4897
 
google actually lol
 
Netty provides support for proxies but the version Minecraft uses is too old so you need to update the library. I am currently using Netty version 4.1.63.
To add proxy support you just need to add nettys Socks4ProxyHandler to the pipeline.

You can do this in the Networkmanager in the method createNetworkManagerAndConnect (is called func_181124_a in the 1.8.8)

Code:
// after this line
p_initChannel_1_.pipeline().addLast((String)"timeout", ...

if(useProxy){
Socks4ProxyHandler socks4ProxyHandler = new Socks4ProxyHandler(new InetSocketAddress("proxy ip", proxyPort));
// add the proxy handler to the pipeline
p_initChannel_1_.pipeline().addFirst(socks4ProxyHandler);
}

But beware Socks4ProxyHandler can only handle socks4 proxies if you want to use other proxies there are also other proxy handlers in Netty
 
Netty provides support for proxies but the version Minecraft uses is too old so you need to update the library. I am currently using Netty version 4.1.63.
To add proxy support you just need to add nettys Socks4ProxyHandler to the pipeline.

You can do this in the Networkmanager in the method createNetworkManagerAndConnect (is called func_181124_a in the 1.8.8)

Code:
// after this line
p_initChannel_1_.pipeline().addLast((String)"timeout", ...

if(useProxy){
Socks4ProxyHandler socks4ProxyHandler = new Socks4ProxyHandler(new InetSocketAddress("proxy ip", proxyPort));
// add the proxy handler to the pipeline
p_initChannel_1_.pipeline().addFirst(socks4ProxyHandler);
}

But beware Socks4ProxyHandler can only handle socks4 proxies if you want to use other proxies there are also other proxy handlers in Netty
thanks gonna look into that
 
Netty provides support for proxies but the version Minecraft uses is too old so you need to update the library. I am currently using Netty version 4.1.63.
To add proxy support you just need to add nettys Socks4ProxyHandler to the pipeline.

You can do this in the Networkmanager in the method createNetworkManagerAndConnect (is called func_181124_a in the 1.8.8)

Code:
// after this line
p_initChannel_1_.pipeline().addLast((String)"timeout", ...

if(useProxy){
Socks4ProxyHandler socks4ProxyHandler = new Socks4ProxyHandler(new InetSocketAddress("proxy ip", proxyPort));
// add the proxy handler to the pipeline
p_initChannel_1_.pipeline().addFirst(socks4ProxyHandler);
}

But beware Socks4ProxyHandler can only handle socks4 proxies if you want to use other proxies there are also other proxy handlers in Netty
lol now when I replace netty with netty 4.1.63 founded error 'Class 'PacketBuffer' must either be declared abstract or implement abstract method 'isReadOnly()' in 'ByteBuf''
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top