A server network with Velocity or BungeeCord
A proxy joins several servers into one network. Players connect to one address and then move, for example, from the lobby to survival with /server survival or through a menu. You need a separate server for the proxy and one for each game mode.
Velocity or BungeeCord
Pick Velocity. It is faster, more secure and actively developed. BungeeCord and Waterfall are older options.
1. The proxy server
On one server, set Velocity in the Server software tab and start it. A proxy needs little RAM, 1-2 GB is enough.
In velocity.toml:
player-info-forwarding-mode = "modern"
[servers]
lobby = "LOBBY_IP:PORT"
survival = "SURVIVAL_IP:PORT"
try = ["lobby"]
The forwarding.secret file contains a secret key. You will need it on the game servers.
2. The game servers (Paper)
On each game server:
- In
server.propertiessetonline-mode=false. The proxy checks the logins. - In
config/paper-global.ymlset:
proxies:
velocity:
enabled: true
online-mode: true
secret: KEY_FROM_FORWARDING_SECRET
- Restart the servers.
online-mode=false are reachable from the internet. With Velocity forwarding turned on, Paper only lets in players who come through the proxy. Do not skip the secret step.Shared data
Ranks and economy across servers work through a shared MySQL database, for example with LuckPerms. You create the database in the Databases tab (how).
Frequently asked questions
A player gets "Unable to connect you to lobby".
The address or port in [servers] is wrong, the lobby server is stopped, or the secret is different on the proxy and the game server.
Does the proxy work with modded servers?
Velocity supports Fabric mods with the FabricProxy-Lite add-on, and NeoForge partly. With mods, it is simpler to stay with one server.
Pepe