When connecting to a backend server through a BungeeCord or Velocity proxy network, you might be disconnected with the message:
"If you wish to use IP forwarding, please enable it in your BungeeCord config as well!"
or
"Server is in Setup Mode. Please configure BungeeGuard tokens."
This error is a built-in security feature designed to protect your network. It prevents malicious players from bypassing your proxy and joining your backend servers directly with spoofed admin accounts.
This guide will show you how to resolve the "Setup Mode" error and get your BungeeCord network properly connected.
Cause 1: BungeeGuard Secret Token Not Configured (Most Common)
If you are using BungeeGuard to secure your sub-servers (which is highly recommended for Paper 1.16+ servers), the backend servers will boot into Setup Mode until you link the secret authentication token between your proxy and backend servers.
Step 1: Get the Token from your Proxy
- Go to your BungeeCord Proxy server in the Cubes Hosting Game Panel.
- Open the File Manager and navigate to:
/plugins/BungeeGuard/config.yml - Locate the
token:line. Copy the long random string of characters (your secret token).
Step 2: Paste the Token into Backend Sub-Servers
- Switch to your backend server (e.g. Lobby or Survival) in the Game Panel.
- Open the File Manager and navigate to:
/plugins/BungeeGuard/config.yml - Find the
allowed-tokens:section and paste the proxy token:allowed-tokens: - "YOUR_COPIED_SECRET_TOKEN_HERE" - Save the file and Restart both your proxy and backend servers.
Cause 2: IP Forwarding Disabled in BungeeCord config.yml
If bungeecord: true is enabled on your backend server (in spigot.yml), but ip_forward is set to false in your proxy configuration, Paper will block connections and trigger the setup mode message.
- Go to your BungeeCord Proxy server in the Game Panel.
- Open
config.ymlin the root directory. - Find the
ip_forward:setting and ensure it is set totrue:ip_forward: true - Save the file and Restart BungeeCord.
Cause 3: Misconfigured Online Mode or Spigot Settings
For IP forwarding to work seamlessly across a proxy network, your server configuration settings must follow a specific pattern:
1. Proxy Server (BungeeCord / Velocity)
online-mode: truein BungeeCordconfig.yml(authenticates real Mojang accounts)ip_forward: truein BungeeCordconfig.yml
2. Backend Sub-Servers (Lobby, Survival, Factions)
online-mode=falseinserver.propertiesbungeecord: trueinspigot.ymlsettings.bungeecord: trueinpaper.yml(orpaper-global.yml)
Crucial Security Warning: Never leave
online-mode=falseon a backend server without BungeeGuard or firewall rules enabled! If you do, players can type your backend server's direct IP address into their Minecraft client and log in as an administrator without going through the proxy.
Conclusion
The "Server is in Setup Mode" error is simply your server telling you that IP forwarding or BungeeGuard security tokens haven't been linked yet. Once you set ip_forward: true on BungeeCord and sync your BungeeGuard allowed-tokens across your sub-servers, your proxy network will connect seamlessly and securely!
