The HYEHOST bear in a Halloween cape beside glowing server pumpkinsThe HYEHOST bear enjoying Bonfire Night with fireworks and a glowing server cabinet
A little extra this HalloweenLight up your balance

Your Halloween credit treatYour Bonfire Night boost

+15% extra account credit

Add $5–$100 USD to your HYEHOST account and receive 15% extra credit automatically.Add $5 USD or more and receive 15% extra credit automatically, with no maximum top-up amount.

Add $5
$5.75account credit at 15%25% upgrade · $6.25
Add $25
$28.75account credit at 15%25% upgrade · $31.25
Add $100$1,000
$115$1,150account credit at 15%25% upgrade · $1,250
  1. Log in to your HYEHOST account.
  2. Open Billing and add $5–$100 credit.add at least $5 USD, with no maximum.
  3. Your bonus is added automatically. No code needed.

Valid for qualifying $5–$100 USD top-ups on 31 October 2026, until 23:59 UK time.Updated offer available until midnight UK time at the end of 5 November 2026. Minimum top-up $5 USD, with no maximum amount. The 25% bonus replaces the usual 15% when selected.

Log in and add credit
HYEHOST

How to Host a Minecraft Java Server on an Ubuntu VPS

Run a private world for friends on Ubuntu 26.04. Set up Java 25, invite your players and make a backup you can restore before trying Deep Freeze.

Set up the serverBack up your world
HYEHOST bear setting up a game server beside a block-built winter landscape

Mojang published Minecraft Java 26.4 Pre-Release 3 on 1 December 2026. If your group wants to explore Deep Freeze, give it a copy of your world. Keep the main server on the stable Java Edition release your friends play. You can use the same setup below for a new survival world or a private update rehearsal. Deep Freeze pre-release notes

Choose a VPS for your Minecraft world

This guide uses a fresh Ubuntu Server 26.04 LTS VPS with SSH access, sudo privileges and the official vanilla Java Edition server. Players need Java Edition clients on the matching game version. Pick a region near your regular players. For example, if most of the group plays from New Zealand, try Auckland before choosing a host on the other side of the Pacific.

A starting configuration for a small group. Measure while players explore new chunks.
ResourceStarting pointWhen to adjust
CPU2–4 vCPUs for a small vanilla world.If ticks slow while players travel, try lowering simulation and view distances. Persistent contention can justify dedicated CPU capacity.
Memory4 GB of VM RAM with a 2 GB maximum Java heap.Leave headroom for native JVM memory and Ubuntu. Increase the heap only when measurements justify it.
DiskSSD space for the world, game files and a local backup.Exploring new areas grows the world. Check its actual size before keeping several generations on the same disk.

Install Java 25 and the official Minecraft server

Sign in with your sudo account. Minecraft Java Edition has required Java 25 since 26.1. Install Ubuntu’s headless runtime and check that the java executable reports version 25. If several runtimes are installed, use sudo update-alternatives --config java on this dedicated VM to select it. Minecraft 26.1 technical changes · Ubuntu Java 25 package

sudo apt update
sudo apt install openjdk-25-jre-headless curl nano
java -version
sudo useradd --system --user-group --home-dir /srv/minecraft --shell /usr/sbin/nologin minecraft
sudo install -d -m 0750 -o minecraft -g minecraft /srv/minecraft

Read the Minecraft EULA and choose the stable Java server JAR linked by Mojang for the version you want to play. Copy the direct download URL, then run the commands below from your sudo account. The prompt expects the link to the JAR file. The final command opens a shell as the service user. Official Minecraft Java server download · Minecraft EULA

read -r -p 'Official Minecraft server JAR URL: ' jar_url
curl --fail --location --remove-on-error --proto '=https' --output minecraft-server.jar "$jar_url" &&
  sudo install -D -m 0644 minecraft-server.jar /opt/minecraft/server.jar &&
  sudo -u minecraft -H bash

In that shell, create settings for the fresh world. The first start listens on the loopback address so you can finish the invitations privately. The account can write world data under /srv/minecraft. Its server program lives separately under /opt/minecraft.

cd /srv/minecraft
cat > server.properties <<'EOF'
server-ip=127.0.0.1
server-port=25565
online-mode=true
white-list=true
enforce-whitelist=true
enable-rcon=false
EOF

If you agree to Mojang’s EULA, record your acceptance and start the server in the foreground. Wait for the server to finish loading the world before entering commands. The first start can take longer while the server fetches its libraries.

printf 'eula=true\n' > eula.txt
java -Xms1G -Xmx2G -jar /opt/minecraft/server.jar nogui

Add friends to the allowlist before opening the port

Type the following into the running Minecraft console. Replace YourJavaName with the exact Java profile name and repeat the add command for each player. The first command enables the list if needed. The final command saves the world and shuts it down. Wait until you return to the Linux shell. Mojang’s allowlist default in 26.3

whitelist on
whitelist add YourJavaName
whitelist list
stop

As the service user, edit server.properties with nano server.properties. Clear the loopback address so the line reads server-ip=. Keep white-list=true and online-mode=true. Save the file, then enter exit to return to your sudo account.

Keep the server running after you leave SSH

Create /etc/systemd/system/minecraft.service with sudoedit /etc/systemd/system/minecraft.service and paste this unit. The working directory matters. Starting the JAR in a different directory can create an empty world and make your existing one appear lost.

[Unit]
Description=Minecraft Java Edition server
After=network-online.target
Wants=network-online.target

[Service]
User=minecraft
Group=minecraft
WorkingDirectory=/srv/minecraft
ExecStart=/usr/bin/java -Xms1G -Xmx2G -jar /opt/minecraft/server.jar nogui
Restart=on-failure
RestartSec=10
TimeoutStopSec=180
SuccessExitStatus=143
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target

Load the unit, start it and check both the log and the listening socket.

sudo systemctl daemon-reload
sudo systemctl enable --now minecraft
sudo journalctl -u minecraft -n 50 --no-pager
sudo ss -ltnp 'sport = :25565'

Allow inbound TCP 25565 on the VPS and in any provider firewall. If Ubuntu’s UFW is already active, use sudo ufw allow 25565/tcp. Before enabling UFW on a fresh remote host, allow your actual SSH port and confirm you have console access. Leave game management ports closed. From Minecraft Java Edition choose Multiplayer → Add Server and enter the VPS address or its DNS name. Ubuntu firewall guide

For later invitations, pause the systemd service during a short maintenance window, start the same foreground command from /srv/minecraft as the service user, update the list, then type stop and restart the service. Keep a single process in charge of each world.

Back up the whole server and test a restore

Announce a short maintenance window. Stop the service and check the journal for completed world saves and a clean shutdown. Investigate any timeout or forced termination before treating the copy as a recovery point. Give larger worlds more shutdown time in the unit if needed.

sudo systemctl stop minecraft
sudo journalctl -u minecraft -n 40 --no-pager

Once the server has stopped cleanly, archive its entire working directory, exact JAR and service definition. Keep the archive private because it contains player data and server settings. Check available disk space before starting.

sudo install -d -m 0700 /var/backups/minecraft
backup="/var/backups/minecraft/server-$(date -u +%Y%m%dT%H%M%SZ).tar.gz"
sudo tar -C / -czf "$backup" srv/minecraft opt/minecraft/server.jar etc/systemd/system/minecraft.service
sudo tar -tzf "$backup" > /dev/null
sudo systemctl start minecraft

In 26.1, the default dimensions moved under world/dimensions/minecraft/, and player inventory, advancement and statistics files moved under world/players/. Copy the full world, including level.dat. Old instructions that copy only region/ or playerdata/ can miss the builds or player state you need. Mojang’s world storage changes

Send a copy to independent storage and periodically restore it on a fresh test VM. Install Java 25, create the service account, unpack the archive, give that account ownership of the restored working directory and bind the test server to loopback. Launch it with the saved JAR and check a known build, player inventory and another dimension. A readable archive alone cannot tell you whether those survived.

Rehearse the Deep Freeze update on a copy

  1. Start with a successful restore. Use a separate test VM and its own local minecraft account. Keep production storage, backup credentials and writable network mounts off the test machine.
  2. Try the pre-release JAR. Get the cross-platform server JAR from the official 26.4 pre-release announcement. Install it only on the test VM and launch it against the restored copy. Set server-ip=127.0.0.1 and keep the game port private.
  3. Join with a matching test client. Create a separate Launcher installation for that pre-release. From your own computer, forward a local port through SSH to the test VM and connect the test client to localhost:25566.
ssh -N -L 25566:127.0.0.1:25565 your-admin@test-vps

Visit an existing build, check player items and test any data packs. Stop and restart the copy to verify that changes survive. Keep its upgraded save separate from the stable world. If a production upgrade later fails, restore the matching pre-upgrade world and JAR together. Mojang’s pre-release download and testing advice

Minecraft VPS hosting FAQ

Why does my friend get a whitelist error?

Check the exact Java profile name with whitelist list in the server console. Add the account with whitelist add, then ask them to reconnect using the correct client version. Keep online authentication enabled.

Which port does a Minecraft Java server use?

The default game port is TCP 25565. If the service listens on loopback, external clients cannot connect even with an open firewall. Check the bind address, the listening socket, the guest firewall and the provider’s rules.

Can I use this server with Bedrock Edition?

This procedure installs Mojang’s Java Edition server. Bedrock clients use a different protocol and have their own dedicated server software. Check which edition your group plays before provisioning.