Setup Velocity Proxy
Run multiple servers behind one Velocity proxy.
On this page
Velocity is a next-generation server proxy designed to replace BungeeCord. Velocity is far more efficient in CPU usage, has built-in protection against bot attacks, and supports modern encryption.
1. Initial Preparation#
To build a network, you'll need at least:
- 1 dedicated server for Velocity (512MB - 1GB of RAM is enough).
- 1 or more backend servers (Survival, Lobby, etc.) running Paper or Purpur.
2. Configuring Velocity#
After installing Velocity on your proxy server, open the velocity.toml file:
- Change the Port: Make sure
bind = "0.0.0.0:25565". - Enable Forwarding: Find
player-info-forwarding-modeand change it tomodern. - Secret Key: Velocity will create a
forwarding.secretfile. Copy the code inside it.
3. Configuring Backend Servers (Paper/Purpur)#
On each destination server (Survival/Lobby), you must configure them to accept connections from Velocity:
- Open
config/paper-global.yml(for the latest Paper) orpaper.yml. - Find the
proxies.velocity-secretsection and enter the code fromforwarding.secretabove. - Change
online-modeinserver.propertiestofalse(because authentication will be handled by Velocity).
4. Registering Servers to the Proxy#
Back in velocity.toml on the proxy server, find the [servers] section and add your servers:
[servers]lobby = "IP_SERVER_LOBBY:25566"survival = "IP_SERVER_SURVIVAL:25567"
5. Additional Security (Required)#
So players can't "bypass" the proxy and directly join the backend servers illegally:
- Make sure all backend servers do NOT use port 25565.
- Use a firewall or configure the backend IPs so they only accept connections from your Proxy IP.
Why Is Velocity Better?#
- Anti-Bot: Handles connections more robustly than BungeeCord.
- Native Support: Supports new Minecraft features without needing many additional plugins.
- Lightweight: 1GB of RAM can handle hundreds of players without lag on the proxy layer.
Troubleshooting#
Error: Unable to authenticate?
Make sure player-info-forwarding-mode in Velocity and the Paper configuration both use modern mode with the correct secret key.
Players can't switch servers?
Check whether the IP and Port in the [servers] section match the actual IPs of your backend servers.
