Set up a Velocity proxy for multiple Minecraft servers

Put a lobby, survival and minigames server behind one address with Velocity: velocity.toml, modern forwarding, Paper config, and locking down backends.

Omne Team6 min read

Quick answer Velocity is a Minecraft proxy: players connect to it, and it sends them to backend servers you list in the [servers] table of velocity.toml, using the try list to pick where they land first [1][2]. Backends must have online-mode=false in server.properties [1]. For Paper backends, set player-info-forwarding-mode to modern in velocity.toml, then in config/paper-global.yml set proxies.velocity.enabled to true, set proxies.velocity.secret to the contents of Velocity’s forwarding.secret file, and match proxies.velocity.online-mode to the proxy’s online-mode [3]. Then make sure only the proxy can reach the backends, ideally with a firewall [4].

Everything here comes from the Velocity documentation pages in the sources, read on 2026-09-25. Version requirements such as Java are time-sensitive, so check the live pages.

What Velocity does

Velocity is a Minecraft proxy: players connect to it, and it connects them to the backend servers listed in its velocity.toml, such as a lobby, a survival server or a minigames server [1]. This post covers the setup the Velocity docs describe. I did not run it myself.

Install and first start

As of 2026-09-25 the Getting started page says Velocity requires at least Java 25 [1]. The FAQ says Velocity 4.0.x and above requires at least Java 25 [5]. Check the live page for your version.

  1. Download the latest stable Velocity JAR from the downloads page the docs link to, and put it in a folder used only for the proxy [1].
  2. Create a start script. The docs’ Linux/macOS example is [1]:
#!/bin/sh
java -Xms1G -Xmx1G -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar velocity*.jar
  1. Run chmod u+x start.sh, then ./start.sh [1]. The first launch generates velocity.toml. The docs’ sample output shows Velocity listening on port 25565 [1].
  2. Type end in the console to stop the proxy before you edit the config [1].

Configure velocity.toml

All configuration lives in velocity.toml, in the directory where you started the proxy [2].

Root settings [2]:

  • bind: an address (IP or hostname, a colon, then a port, such as 127.0.0.1:25577). By default Velocity listens on all IP addresses on port 25565.
  • motd: the message shown in players’ server lists, in MiniMessage format.
  • online-mode: whether to authenticate players with Mojang. On by default.
  • player-info-forwarding-mode: see the forwarding section below.
  • forwarding-secret-file: the name of the file holding the forwarding secret, which is used to ensure forwarded player info comes from your proxy and not from someone pretending to run Velocity.

The [servers] table and try. The docs’ initial config looks like this [1]:

[servers]
lobby = "127.0.0.1:30066"
factions = "127.0.0.1:30067"
minigames = "127.0.0.1:30068"

try = ["lobby", "factions"]

The left side is the name you choose, the right side is the backend’s address and port. Edit the list to match your servers [1]. try is the list of servers Velocity tries when a player first logs on or gets kicked from a server; if you rename the lobby, change it in try too [1].

Forced hosts. The reference lists a [forced-hosts] section: a hostname maps to an array of servers to try for players who connect using that hostname [2]. The FAQ warns that Velocity matches forced hosts using the hostname the client sends, which is resolved before the connection and is not necessarily what the player typed. It gives a CNAME plus SRV record setup for a proxy on a non-default port [5]. I have not tested that.

Configure each backend

In each backend’s server.properties, set online-mode to false and restart it [1]. The docs say this lets Velocity connect. They describe offline mode as the reason the next steps matter: in theory someone could impersonate any player on an offline-mode server, so only the proxy should be able to connect [4].

Player info forwarding: modern vs legacy

Forwarding passes information such as IP addresses, UUIDs and skins from the proxy to backends [3]. The docs list three formats [3]:

  • modern: Velocity-native, forwards player info in an efficient binary format with a MAC code that makes it much harder to trick the server into impersonating your proxy. Only for Minecraft 1.13 or higher.
  • legacy: BungeeCord-compatible. Better compatibility (versions as old as 1.7.2), but “not secure”.
  • bungeeguard: legacy plus a secret key, using the BungeeGuard plugin. Better than plain legacy, less ideal than modern.

For modern, set player-info-forwarding-mode = "modern" in velocity.toml [3]. For legacy, set it to legacy; on Spigot or Paper backends you then also set settings.bungeecord to true in spigot.yml [3].

Configure Paper for modern forwarding

The docs say Paper 1.14 and above, and Paper 1.13.1/1.13.2 build 377 and above, support modern forwarding natively [3]. On each Paper backend [3]:

  1. online-mode=false in server.properties.
  2. Make sure settings.bungeecord is false in spigot.yml (disable BungeeCord forwarding if you had it on).
  3. In config/paper-global.yml, set the following, then reboot the server:
proxies:
  velocity:
    enabled: true
    secret: "<contents of Velocity's forwarding.secret>"
    online-mode: true   # must match online-mode in velocity.toml

The docs say to match proxies.velocity.secret to the secret in the forwarding.secret file and proxies.velocity.online-mode to online-mode in velocity.toml [3]. The true above is only an illustration of the proxy’s default online mode [2]; use whatever your velocity.toml says. Treat the secret like a password: the docs list “relies on the forwarding secret being kept secret” as a disadvantage of modern forwarding [4]. I did not find in the docs how forwarding.secret is created, so check the live page or your proxy folder.

Plugins on Paper backends are a separate topic; see how to install plugins on a Paper server.

Make backends reachable only by the proxy

The Velocity project “strongly recommends the use of a firewall” [4]. Its security page lists options, in no particular order, and says most can be combined [4]:

  • OS firewall (Windows Firewall, or iptables/nftables on Linux). The docs call it highly effective if properly configured; downsides are a tricky first-time setup, keeping it in sync with new servers, and it is not viable on a shared host.
  • Modern forwarding, as a second layer against impersonating the proxy.
  • Binding to localhost, if the proxy and backends are on the same machine: set server-ip=127.0.0.1 in each backend’s server.properties and point velocity.toml at 127.0.0.1:<port>.
  • An encrypted tunnel such as WireGuard, for backends on different machines. The docs call this very complex and do not detail setup.
  • An IP whitelisting plugin, as a last line of defense.

The exact firewall rules are not given in the docs and depend on your setup, so I have not written any here.

Troubleshooting basics

The FAQ’s first checks are that your servers are started and responding to console input, that the proxy is started, and that the server and proxy are bound to the appropriate port and IP [5]. If the proxy fails to start because a port is taken, see Minecraft server failed to bind to port. This is my pointer, not from the Velocity docs.

Documented error messages [5]:

  • Your server did not send a forwarding request to the proxy. Is it set up correctly? and the Bungeecord-config variant: improper forwarding configuration. Re-check the forwarding steps above.
  • This server requires you to connect with Velocity.: modern forwarding is enabled on the backend but not in Velocity.
  • Invalid payload REGISTER: typically on Spigot-based servers when someone connects with a modded client. The docs’ fix for Paper (or a fork) 1.12.2 or above is the startup flag -Dpaper.disableChannelLimit=true.

What this doesn’t cover

  • Plugins for Velocity itself. The FAQ says BungeeCord or Waterfall plugins are not supported and points to Hangar for Velocity plugins [5].
  • Fabric and Forge backends. The docs name FabricProxy-Lite and ProxyCompatibleForge for modern forwarding [3]; I did not read their setup.
  • Hosting the proxy on a specific provider or panel, and any performance tuning.
  • Firewall rule syntax, port choices for your backends, and how to create the forwarding secret. Follow the live pages [1][3][4], as they may change.

Questions people ask

Why do my backend servers have to be in offline mode?

The proxy authenticates players instead of the backend. The docs say to set online-mode to false in each backend's server.properties so Velocity can connect [1][3]. They also warn that offline mode means someone could in theory impersonate any player, so only the proxy should be able to reach the backends [4].

Should I use modern or legacy forwarding?

The docs describe modern as the more secure Velocity-native format, available for Minecraft 1.13 or higher, and legacy (BungeeCord-compatible) as better compatible but less secure [3]. For Paper backends, modern is documented as natively supported [3].

Players get 'This server requires you to connect with Velocity'. What is wrong?

Per the FAQ, this means modern forwarding is enabled on the backend but not in Velocity. Set the matching player-info-forwarding-mode on the proxy [5].

Sources

  1. Velocity docs: Getting started
  2. Velocity docs: Configuring Velocity (reference)
  3. Velocity docs: Configuring player information forwarding
  4. Velocity docs: Securing your servers
  5. Velocity docs: Frequently asked questions