Routes Minecraft through a proxy: your own SOCKS5 or HTTP proxy, or LiquidProxy. A mod for players, and a Kotlin library for clients that want proxy support of their own.
Download the jar for your loader from the releases and put it
into the mods folder of Minecraft 26.3 (Java 25):
| Loader | Jar | Also needs |
|---|---|---|
| Fabric (and Quilt) | liquidproxy-fabric-<version>+26.3.jar |
Fabric Language Kotlin |
| NeoForge | liquidproxy-neoforge-<version>+26.3.jar |
nothing |
| Forge | liquidproxy-forge-<version>+26.3.jar |
nothing |
Open LiquidProxy from the multiplayer screen, or from the mod list (Mod Menu on Fabric).
Depend on liquidproxy-minecraft and ship the loader jar inside yours (Loom's include on Fabric). Then pick a proxy
per server:
val proxy = ProxyServer.parse("socks5://alice:secret@127.0.0.1:1080")
ProxySelector.current = ProxySelector { host -> proxy }From the next connect on, joins, server list pings, SRV lookups (DNS over HTTPS), the session join and resource pack downloads go through it. Local and LAN servers stay direct. To keep some of that on the player's machine, list what the proxy is for:
ProxyServer(ProxyServer.Type.HTTP, "proxy.example", 3128, purposes = setOf(Purpose.PLAY, Purpose.PING))LiquidProxy is one more selector. Your client owns the screens and the files:
LiquidProxy.embed(configDirectory.resolve("liquidproxy")) // during mod initialization
var own: Proxy? = null // the player's own proxy, when they picked one
ProxySelector.current = ProxySelector { host -> own ?: LiquidProxy.routing.select(host) }
LiquidProxy.enrollment.signIn() // device code sign-in, watch LiquidProxy.enrollment.state
LiquidProxy.routing.connect("fra") // suspends; exit in Frankfurt for every server without a ruleconnection.proxy tells which proxy a Connection went through. Anything else that opens connections can implement
Proxy; the game only ever calls Proxy.open.
Everything is on https://maven.ccbluex.net/releases (snapshots on https://maven.ccbluex.net/snapshots), group
net.ccbluex:
| Artifact | Holds |
|---|---|
liquidproxy-api |
client of the LiquidProxy API, OAuth device sign-in, device keys |
liquidproxy-transport |
connections through any proxy (Proxy, ProxyServer), and LiquidProxy tunnels over post-quantum TLS 1.3 and QUIC |
liquidproxy-minecraft |
the game layer for Minecraft 26.3, to build proxy support into another mod |
liquidproxy-fabric, liquidproxy-neoforge, liquidproxy-forge |
the mod jars |
repositories {
maven("https://maven.ccbluex.net/releases")
}
dependencies {
implementation("net.ccbluex:liquidproxy-api:1.0.0")
implementation("net.ccbluex:liquidproxy-transport:1.0.0")
implementation("net.ccbluex:liquidproxy-minecraft:1.0.0+26.3")
}The transport works without the game:
val proxy = ProxyServer.parse("http://proxy.example:3128")
val channel = proxy.open(InetSocketAddress.createUnresolved("example.com", 443), handler, Purpose.PLAY)
val pack = proxy.openConnection(URI("https://example.com/pack.zip").toURL()).inputStream