Behind a proxy

A proxy is one address in front of one or more servers. Players join the proxy; it passes them on. Use Vanillite's own vanillite-proxy or Velocity.

Beta. vanillite-proxy is not in the release downloads yet: you build it (once). Velocity works with Vanillite today.

Option A: vanillite-proxy

1. Build the proxy

You need git and Rust.

git clone https://github.com/hthoene/vanillite.git
cd vanillite
git checkout dev
cargo build --release

You should see: the program target/release/vanillite-proxy. The first build takes a while.

2. Start it once

target/release/vanillite-proxy --dir my-proxy

You should see: the proxy listens on port 25577, and the new folder my-proxy holds proxy.toml and forwarding.secret. Stop it with end or Ctrl+C.

3. Name your server

Open my-proxy/proxy.toml:

try = ["lobby"]

[servers]
lobby = "127.0.0.1:25566"

4. Set up the Vanillite server

The server must not use the proxy's port. In server.properties: server-port=25566. In vanillite.toml, paste the text of my-proxy/forwarding.secret:

[proxy]
velocity-secret = "paste-the-secret-here"

Start the server. Start the proxy again (step 2).

5. Join

Add localhost:25577 in Minecraft Java Edition 26.3.

You should see: you join the server. Type /server to list the servers behind the proxy.

Option B: Velocity

  1. In Velocity's velocity.toml: player-info-forwarding-mode = "modern", and add the server under [servers] (for example lobby = "127.0.0.1:25566").
  2. Put the same secret text as in Velocity's forwarding.secret file into velocity-secret in vanillite.toml (see step 4 above).
  3. Give the Vanillite server its own port (server-port=25566), start it, join Velocity.

Keep it safe

Close the server's own port (25566) to the internet. Players should only come in through the proxy. Without that, anybody could try to join directly (proxy.allow-direct-connections is off by default, so they are refused when the secret is set).

What next?

Everything the proxy does (server switching, Bedrock, older clients, Paper servers behind it): Proxy. Speed: Proxy speed.

Next: Move a world to Vanillite and back.