Last updated
Last updated
READ THE RULES! But preferably, read it fully
Have PaperMC (or forks) servers not hosted on Minehut (!) Minehut is hosted in New York, get your servers close to this location for better ping
One server on Minehut (not on free plan) that will be used as the proxy
,
Here we will create a Velocity proxy and tell it which servers we have, and how to handle the players
Select type Velocity (Proxy) (Unstable)
Reset/Restart the server to generate the files
Create a file called external_servers.json
Paste the following example json inside
Use a [password] generator to create a random string of text (like z9Hawx6MdowP4qx4aExeEEJibdhotRHh
) that will be used as the secret (=DON'T SHOW IT TO ANYONE)
Replace <YOUR SECRET>
with the generated string
Save the secret somewhere, we will need it later
Configure the try-list and servers to how you need them. The try list specifies which servers (in order) Velocity should try to connect players to when joining, or getting kicked.
Save the file and restart the proxy
Now we will set up our backend server to accept connections from the Velocity server on Minehut
In server.properties, disable online-mode (online-mode=false
)
Go to paper.yml
or /config/paper-global.yml
if you are on 1.19+
Find the "proxies" -> "velocity" configuration section
Set "enabled" and "online-mode" to true
Paste the secret you generated earlier next to the "secret" option
Save your edits and start the server
Repeat this on all the backend servers you want to connect
Double-check that you can't directly connect to your backend servers
Error: "If you wish to use IP forwarding, please enable it in your BungeeCord config as well!" Fix: Disable "bungeecord" in spigot.yml
Error: "Unable to authenticate - no data was forwarded by the proxy." Fix: Uninstall BungeeGuard
Error: "This server requires you to connect with Velocity." Fix:
If you're trying to directly connect to a backend server, this is intentionally not possible, you have to connect using the proxy.
If you ARE using the proxy to connect, make sure the secret in external_servers.json of the proxy matches the one in config/paper-global.yml of your backend server
Error: "Unable to read/load/save your velocity.toml. The server will shut down." Possible Fix: Make sure the json of your external_servers.json is formatted correctly, a common mistake is leaving comments in the file (//), use a json parser tool if you're unsure
glhf
Made by MrTibo#9659
This guide shows how to connect external servers to Minehut with Velocity using 1.13 or above.