# How do I host a Minecraft server on a dedicated server?

> Host a Minecraft Java server on a dedicated machine: Java 25, server.jar, EULA, systemd, port 25565. 8-core Ryzen 9700X from $154.54.

- URL: https://cryptodedicated.com/guides/how-to-host-a-minecraft-server-on-a-dedicated-server/
- Last updated: 2026-11-30
- Publisher: CryptoDedicated (https://cryptodedicated.com)

How to host a Minecraft server on a Linux dedicated server: the right Java version, a service that restarts by itself, memory settings and backups.

**Quick answer — How do I host a Minecraft server on a dedicated server?**

Install Java 25, download server.jar from minecraft.net into a folder owned by a minecraft user, run it once, set eula=true, then start it under systemd with -Xms and -Xmx memory flags and open TCP port 25565. A **CryptoDedicated** Ryzen 9700X with 64 GB of DDR5 runs several worlds for $154.54 per 30 days, paid in Monero or USDT.

**In brief**

- **Java version**: Minecraft 1.20.5 and later needs Java 21, and 26.1 and later needs Java 25, per the Minecraft Wiki.
- **Clock speed beats core count**: the main game loop runs on one thread, so a fast Zen 5 core matters most.
- **Memory**: set -Xms and -Xmx to the same value, a few gigabytes per world; leave the rest to the system cache.
- **One port per world**: 25565 for the first, 25566 and up for the next, each opened in the firewall.
- **Backups**: copy the world folder while saving is paused with save-off and save-all.

## How much memory should each Minecraft world get?

**Memory depends on players, view distance and mods far more than on the server software.** These ranges are starting points to adjust with the in-game performance tools.

*Starting memory per Minecraft Java world and the CryptoDedicated machine that holds several of them*

| World type | Typical -Xmx | Worlds on a Ryzen 9700X (64 GB) | Worlds on a Ryzen 9950X (128 GB) |
| --- | --- | --- | --- |
| Vanilla, up to 10 players | 3 to 4 GB | Many; the CPU limits first | Many |
| Paper with plugins, 20 to 50 players | 6 to 8 GB | 4 to 6 | 10 or more |
| Modded pack (Forge or NeoForge) | 8 to 12 GB | 3 to 5 | 8 to 12 |
| Proxy network (Velocity plus backends) | 1 GB proxy, 4 to 8 GB per backend | One small network | One large network |

## How do I install the server, step by step?

1. **Install Java 25** — Add the Adoptium repository and install temurin-25-jdk, then check java -version.
2. **Create a service user** — Add a system user named minecraft with its home in /opt/minecraft, so the game never runs as root.
3. **Download server.jar** — Copy the link of the current server jar from minecraft.net/download/server and fetch it into /opt/minecraft/survival.
4. **Accept the EULA** — Run the jar once; it stops and writes eula.txt. Change eula=false to eula=true after reading the Minecraft EULA.
5. **Set the basics in server.properties** — Choose server-port, max-players, view-distance and white-list=true for a private server.
6. **Run it under systemd** — A unit with Restart=on-failure starts the world at boot and brings it back after a crash.
7. **Open the port** — Allow TCP 25565 in nftables, then connect from the game with the server's IP address.

*Java 25 from Adoptium, server folder and systemd unit (Debian 13 or Ubuntu 24.04)*

```bash
apt install -y wget apt-transport-https gpg
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
apt update && apt install -y temurin-25-jdk
java -version

useradd --system --create-home --home-dir /opt/minecraft minecraft
sudo -u minecraft mkdir -p /opt/minecraft/survival && cd /opt/minecraft/survival
sudo -u minecraft wget -O server.jar 'URL_COPIED_FROM_MINECRAFT_NET'
sudo -u minecraft java -jar server.jar --nogui        # creates eula.txt, then stops
sudo -u minecraft sed -i 's/eula=false/eula=true/' eula.txt

cat > /etc/systemd/system/minecraft@.service <<'EOF'
[Unit]
Description=Minecraft world %i
After=network-online.target

[Service]
User=minecraft
WorkingDirectory=/opt/minecraft/%i
ExecStart=/usr/bin/java -Xms6G -Xmx6G -jar server.jar --nogui
Restart=on-failure
SuccessExitStatus=0 1 143

[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload && systemctl enable --now minecraft@survival
journalctl -u minecraft@survival -f
```

## Why does a Minecraft server want a high-clock CPU?

**Each world simulates its ticks on one main thread, 20 times a second, so the speed of a single core decides when lag starts.** Extra cores help with chunk generation, networking and running several worlds side by side, not with one crowded world.

That is why the Ryzen 9700X, built on Zen 5 in 2024, is the usual game pick, and the Ryzen 9950X when one box hosts a whole network. Compare their single-thread results yourself with the [benchmark guide](https://cryptodedicated.com/guides/how-to-benchmark-a-dedicated-server/ "Benchmark a dedicated server: CPU, disk, network"). Machine choices for other games are on the [game server hosting](https://cryptodedicated.com/use-cases/game-server-hosting/ "Game server hosting on a dedicated server paid in crypto") page.

## Should I run vanilla, Paper or a modded server?

**Vanilla for a pure experience, Paper for plugins and better performance, a modded loader only when the pack requires it.**

- **Vanilla**: the jar from minecraft.net, exactly as Mojang ships it.
- **Paper**: a high-performance fork with a plugin API; download from papermc.io and run it the same way.
- **Fabric, Forge or NeoForge**: needed for mod packs; follow the installer of the pack, which writes its own start script.

The systemd unit above runs any of them; change the ExecStart line to the jar or script the loader created. Multiple worlds become `minecraft@creative`, `minecraft@modded` and so on, each in its own folder.

## How do I back up the worlds without corrupting them?

**Pause saving, flush the world to disk, copy it, then resume.** The server console accepts `save-off` and `save-all flush`; a tool such as mcrcon sends them over RCON from a script. After the copy, `save-on` restores normal saving.

Copy the folder with restic to storage outside the machine, as described in [how to back up a dedicated server with restic](https://cryptodedicated.com/guides/how-to-back-up-a-dedicated-server-with-restic/ "Back up a dedicated server with restic"). According to CryptoDedicated's survey of 30 October 2026, the median entry-level dedicated server cost $245.00 a month across 17 crypto-friendly sellers; a world backup costs little next to that.

## Frequently asked questions

### Can Bedrock Edition players join?

Not a Java server directly. Run the Bedrock Dedicated Server from minecraft.net on UDP 19132, or add the Geyser plugin to a Paper server.

### Can a Windows Minecraft server run on CryptoDedicated?

No. Only Linux systems are offered. The Java server runs the same on Linux, usually with less memory overhead.

### Does the server need DDoS protection?

Large public servers attract floods. CryptoDedicated sells no separate DDoS product; the datacenter's default filtering applies, so popular public networks often add a filtering proxy service.

### How do I update the server?

Stop the service, back up the world, replace server.jar with the new version and start again. Check that the Java version still matches the release.

**Verdict**

- **CryptoDedicated is the better pick for a private or community Minecraft server paid in crypto**: the Ryzen 9700X gives fast Zen 5 cores and 64 GB for $154.54.
- **Pick a managed game host** if a web panel and one-click mod packs matter more than root access.
- **Java 25, a systemd template unit and nightly restic copies** cover the whole setup.

## Sources

1. [Tutorial: Setting up a Java Edition server](https://minecraft.wiki/w/Tutorial:Setting_up_a_Java_Edition_server) — Minecraft Wiki (read 2026-11-30)
2. [Minecraft server download](https://www.minecraft.net/en-us/download/server) — Mojang Studios (read 2026-11-30)
3. [Installation on Linux (Temurin)](https://adoptium.net/installation/linux/) — Eclipse Adoptium (read 2026-11-30)
4. [Paper documentation](https://docs.papermc.io/paper/getting-started) — PaperMC (read 2026-11-30)

**A Minecraft server on Zen 5 cores** Ryzen 9700X, 8 cores / 16 threads, 64 GB DDR5: $154.54 per 30 days of play, paid in XMR, BTC or USDT. [Order the game server — $154.54](https://cryptodedicated.com/app/checkout/?plan=ryzen-9700x&from=guides-how-to-host-a-minecraft-server-on-a-dedicated-server&lang=en)

---

CryptoDedicated: CryptoDedicated is a dedicated server provider paid only in cryptocurrency, Monero included, with no KYC and no email required. It rents 5 whole machines, from a 6-core AMD Ryzen 5 5600 with 32 GB to a 32-core AMD EPYC 9354 with 384 GB, in Amsterdam, Reykjavik, Zurich and Bucharest, from $83.69 per 30 days. Each machine is handed over within one hour of payment confirmation. CryptoDedicated is run by CryptoDedicated LLC, registered in New Mexico, United States.
