Skip to content
Dashboard

Get started with networks

View as Markdown

In this guide you put a Paper server into a network of your own. Players then join the network’s address, and the server needs no open port. You write no code.

You need:

  • A Paper server for Minecraft 1.21 or newer, running on Java 22 or newer. The connector needs Java 22.
  • Bun 1.4.4 or newer, for the Minekube CLI.
  • Minecraft: Java Edition, to log in and to join.
Terminal window
bun add -g https://github.com/minekube/minekube/releases/latest/download/minekube-cli.tgz

The CLI is minekube, and mk for short. During the preview, point it at the staging registry:

Terminal window
export MINEKUBE_REGISTRY=https://registry.staging.minekube.net
  1. Join the Minekube hub at play.staging.minekube.net with Minecraft.

  2. Run mk login, click [Log in] in the hub’s chat and enter the code it shows.

  3. Create your network:

    Terminal window
    mk network create my-network

The name must be free. Your account owns the network.

Download the Minekube plugin for Paper from the latest release, minekube-paper-runtime.jar, into the server’s plugins/ folder. Start the server once and stop it again. The plugin creates its folder, plugins/Minekube/.

Make a one-time invite for the server:

Terminal window
mk network invite my-network

It prints a token that works once, for an hour. On the server, write the token to plugins/Minekube/network-invite. Then create plugins/Minekube/connector.json:

plugins/Minekube/connector.json
{
"directory": { "registry": "https://registry.staging.minekube.net" },
"relays": ["https://relay.staging.minekube.net/"],
"join": { "network": "my-network", "token": "network-invite" },
"labels": { "minekube.com/entry": "true" }
}
  • directory names the registry, and relays the relays the connector may use.
  • join names the network and the file with the invite. Paths are relative to the plugin folder.
  • The label minekube.com/entry=true marks this server as the one players land on when they join the network’s address.

Keep online-mode=true in server.properties: anyone can reach the server now.

Start the server. The connector makes the server’s key, shows the invite once, and from then on the key is in the network.

Terminal window
mk instances --network my-network

The list shows your server, its labels and whether it is online. In Minecraft, join my-network.staging.minekube.net. You land on your server, through the relay, with no open port.

Was this helpful?