What it is
Minecraft Server is the self-hosted multiplayer backend for Minecraft: Java Edition, letting you run a persistent world that friends or a community connect to over the internet. Server flavours like Paper and Purpur add plugin support and major performance gains over the vanilla server, so you control the rules, mods, whitelist, and world data.
Why host it offshore
Public Minecraft servers are constant DDoS targets and hosting your own on rented commercial platforms usually means handing over ID and a card number. On a no-KYC, crypto-paid KernelVPS instance you keep full root, get always-on DDoS mitigation and unmetered bandwidth for player traffic, and never tie your gaming community to your real identity.
A working reference setup
Copy this onto a fresh KernelVPS instance. Replace the placeholders, then bring it up.
services:
mc:
image: itzg/minecraft-server:latest
container_name: minecraft
ports:
- "25565:25565" # Java Edition (TCP) — the only port players need
# - "127.0.0.1:25575:25575" # RCON — keep bound to localhost, never public
environment:
EULA: "TRUE" # required: accepts Mojang EULA
TYPE: "PAPER" # high-performance server; use VANILLA/FABRIC/FORGE as needed
VERSION: "1.21.4" # pin a version; "LATEST" also works
MEMORY: "4G" # heap size; leave headroom below the VPS's total RAM
DIFFICULTY: "normal"
MAX_PLAYERS: "20"
VIEW_DISTANCE: "10"
SIMULATION_DISTANCE: "8"
ONLINE_MODE: "TRUE" # verify accounts with Mojang/Microsoft
ENABLE_WHITELIST: "TRUE"
OVERRIDE_WHITELIST: "TRUE"
ENABLE_RCON: "TRUE"
RCON_PASSWORD: "replace-with-a-long-random-string"
volumes:
- ./data:/data # world + configs persist here — back this up
stdin_open: true
tty: true
restart: unless-stopped
Ports to open
| Port | Protocol | Purpose |
|---|---|---|
| 25565 | TCP | Java Edition client connections — the only port that must be open to players |
| 25575 | TCP | RCON remote console — bind to 127.0.0.1 only, never expose publicly |
| 19132 | UDP | Optional Bedrock crossplay if you add the GeyserMC plugin |
Which plan you need
VPS Small (2 vCPU / 4 GB)
Set MEMORY 2-3G. Minecraft is single-thread heavy per tick, so high clock speed matters more than core count.
VPS Pro (4 vCPU / 8 GB)
MEMORY 4-6G, trim view/simulation distance. Paper/Purpur keeps tick time healthy at this size.
Dedicated (fast single-core CPU, 16 GB+)
Modpacks eat RAM and one busy core. A dedicated box with a high-clock CPU avoids the tick lag shared VPS cores cause.
Best locations: For a game server, player ping matters more than the privacy tier, so pick the location closest to most of your players. KernelVPS's central-European nodes (NL, RO, LU) and the CH privacy tier give low latency across Europe while still offering no-KYC billing and DDoS protection; choose IS or MD if you want the offshore jurisdiction and your players are EU-wide and latency-tolerant.
Hardening checklist
- Never expose RCON (25575) to the internet — bind it to 127.0.0.1 in the compose file and use a long random RCON_PASSWORD; access it over SSH or docker exec instead.
- Keep ONLINE_MODE=TRUE and the whitelist enabled (ENABLE_WHITELIST/OVERRIDE_WHITELIST) so only verified, approved accounts can join; add players with 'docker exec minecraft rcon-cli whitelist add <name>'.
- Automate world backups: cron a 'docker exec minecraft rcon-cli save-off && save-all' then tar the ./data volume, then 'save-on' — store copies off the box so a crash or wipe never costs your world.
- Run a host firewall (ufw) allowing only 22 and 25565; Minecraft servers are frequent DDoS and bot-scan targets, so lean on KernelVPS's included mitigation and don't leave extra ports open.
- Cap MEMORY below the VPS's total RAM (leave ~1-2 GB for the OS) so the JVM never triggers OOM kills; the itzg image applies Aikar GC flags automatically, so avoid hand-tuning heap flags unless you know why.