Five friends in Jeddah have played together on a Realm for months, until the world filled up and the monthly fee went to whoever forgot to pay. Or a school club in Riyadh wants a world where it controls who joins and what is allowed. The answer in both cases is your own Minecraft server: a machine that runs all day, keeps the world in one place and applies your rules. This guide covers choosing between Java and Bedrock, how much memory each number of players needs, the difference between plugins and mods, installing a Paper server step by step, the ports involved, backups, and what to expect from the ping. Then it moves to other games, a table of what each needs, and LinuxGSM, the tool that installs most of them with one command.
01Java or Bedrock: which edition
Minecraft comes in two editions that look alike but run different code, and each has its own server:
| Java Edition | Bedrock Edition | |
|---|---|---|
| Players on | Windows, macOS and Linux computers | Phones, tablets, consoles and Windows |
| Server software | Mojang’s server, or Paper, Fabric and others | Bedrock Dedicated Server from Mojang |
| Customisation | Thousands of plugins and mods | Add-ons and behaviour packs, far fewer |
| Default port | 25565 over TCP | 19132 over UDP (19133 for IPv6) |
| Runs on | Any system with Java | Officially Ubuntu 22.04 or later, and Windows |
The rule is simple: run the edition your players own. If the group is split, the Geyser project lets Bedrock players join a Java server by translating between the two, and its Floodgate plugin lets them sign in with their Microsoft account without buying Java. It works well for most play, though some features differ between the editions.
Java releases now use year-based numbers: the current release is 26.3, and the Paper project recommends Java 25 for 26.1 and later. Old worlds open in new versions, but not the other way round, so pick a version and keep the whole group on it.
02How much memory per number of players
The Minecraft Wiki gives these figures for a Java server with default settings on a new world, and they match what server owners see in practice:
| Players at once | Memory for the server | Suggested plan |
|---|---|---|
| 1 to 4 | 1 GB minimum | VPS Plus (2 GB), as Java needs room for the system too |
| 5 to 10 | 2 GB | VPS Pro (4 GB) |
| 10 to 20 | 4 GB | VPS Max (8 GB) |
| 20 or more, or a modpack | 6 GB and up | VPS Max or larger |
Memory is not everything. The wiki notes that the server does most of its work on one core, so a fast single core matters more than many cores. And the world itself is the hidden cost: a large explored map, a long view distance, crowded animal farms or big redstone machines can more than double what the server needs. The measure that tells you the truth is the server’s : Minecraft aims for 20 ticks a second, and when it falls below that, the game starts to lag for everyone.
For Java you give memory to the with two flags, -Xms for the starting size and -Xmx for the maximum. Paper’s own guide sets both to the same value, and you should leave around a gigabyte outside the heap for the system and Java itself. So on a 4 GB server, -Xms3G -Xmx3G is a sensible start.
Bedrock Dedicated Server sets its own memory and has no such flags. The Minecraft Wiki lists 4 GB for its host and more beyond ten players. It is lighter than Java for a small group, which is why it starts on a smaller plan, but give it room as the group grows.
03Plugins or mods: Paper and Fabric
Mojang’s own server, called vanilla, gives you the game as it is. To change it you choose one of two paths:
- Paper, for plugins: A server built on Mojang’s code that runs faster and loads : files that add commands, land protection, economies, minigames or anti-cheat on the server only. Players join with the ordinary game and install nothing. Plugins go as .jar files straight into the plugins folder, and Paper recommends a full restart after adding one. Paper’s own repository, Hangar, and Modrinth are the usual places to find them.
- Fabric, for mods: A light mod loader that changes the game itself: new blocks, machines, creatures or worlds. Most of these mods must be installed on the player’s side too, with the same loader version, so you share a modpack with your group. Mods go into the mods folder.
You cannot mix them on one server: Paper’s documentation says Forge and Fabric mods will not run on it. Want land protection and ranks for a public server? Choose Paper. Want a technology or magic modpack for a group of friends? Choose Fabric, or Forge and NeoForge for older modpacks.
04Installing a Paper server step by step
These steps build a Paper server on Ubuntu 24.04 or Debian 12 and 13, running as its own user and starting with the system. First, Java 25 from the Eclipse Temurin repository:
# Java 25 from Eclipse Temurin (Ubuntu and Debian)sudo apt install -y wget gpgwget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | sudo tee /usr/share/keyrings/adoptium.gpg > /dev/nullecho "deb [signed-by=/usr/share/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb $(. /etc/os-release; echo $VERSION_CODENAME) main" | sudo tee /etc/apt/sources.list.d/adoptium.listsudo apt update && sudo apt install -y temurin-25-jrejava -version
On AlmaLinux 9 the same repository has an RPM version:
sudo tee /etc/yum.repos.d/adoptium.repo > /dev/null << "EOF"[Adoptium]name=Adoptiumbaseurl=https://packages.adoptium.net/artifactory/rpm/rhel/$releasever/$basearchenabled=1gpgcheck=1gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/publicEOFsudo dnf install -y temurin-25-jre
Then a user and a folder for the server. Copy the link of the latest stable build from papermc.io/downloads and put it in place of PAPER_URL:
sudo useradd -r -m -d /opt/minecraft -s /bin/bash minecraftsudo -u minecraft wget -O /opt/minecraft/paper.jar PAPER_URL# The first start creates eula.txt and stopscd /opt/minecraft && sudo -u minecraft java -Xms1G -Xmx1G -jar paper.jar --nogui# Accept Minecraft’s licence, then start againsudo -u minecraft sed -i "s/eula=false/eula=true/" /opt/minecraft/eula.txt
Setting eula=true means you accept the Minecraft End User License Agreement, so read it first. Now a systemd service, so the server starts with the system and restarts if it crashes:
# /etc/systemd/system/minecraft.service[Unit]Description=Minecraft serverAfter=network-online.targetWants=network-online.target[Service]User=minecraftWorkingDirectory=/opt/minecraftExecStart=/usr/bin/java -Xms3G -Xmx3G -jar paper.jar --noguiRestart=on-failureSuccessExitStatus=0 143[Install]WantedBy=multi-user.target
Enable it with sudo systemctl daemon-reload then sudo systemctl enable --now minecraft, and follow its log with journalctl -u minecraft -f. When you stop the service, the server saves the world before it exits.
The ports involved
A game server listens on a port, and players connect to the server’s address on that port. For Java it is 25565 over TCP by default, set by server-port in server.properties. For Bedrock it is 19132 over UDP. If a firewall runs on your server, allow only the game port and keep everything else closed:
# Ubuntu and Debian with ufwsudo ufw allow 25565/tcp# Bedrock insteadsudo ufw allow 19132/udp# AlmaLinux with firewalldsudo firewall-cmd --permanent --add-port=25565/tcp && sudo firewall-cmd --reload
Leave the port, 25575, closed to the internet: it gives full control of the server, so use it only from the server itself.
Settings that protect your world
- white-list=true: Only players you add with whitelist add Name can join. For a private group, turn this on before you share the address.
- online-mode=true: Keep it on: it checks each player’s account with Mojang, so nobody can join under someone else’s name.
- view-distance and simulation-distance: Lowering them, for example to 8 and 6, is the quickest way to save memory and processor when the server struggles.
- Operators: Give op only to people you trust, as it allows every command, including changing the world.
05Backing up the world
A world that took months to build can be lost to a broken plugin, a griefer or a failed update. Back up the world folder every day, and keep several days, because sometimes you only notice damage after a while. Copying files while the server writes to them can give a broken copy, so either stop the server for a moment, or pause saving while you copy:
#!/bin/sh# /usr/local/bin/mc-backup: a daily world backup with the server stopped for a momentmkdir -p /var/backups/minecraftsystemctl stop minecraftcd /opt/minecraft && tar -czf /var/backups/minecraft/world-$(date +%F).tar.gz world*# Start again even if the copy failedsystemctl start minecraft# Keep the last 14 daysfind /var/backups/minecraft -name "world-*.tar.gz" -mtime +14 -delete
Make it executable with sudo chmod +x /usr/local/bin/mc-backup, and run it from root’s crontab at a quiet hour, such as 30 4 * * * /usr/local/bin/mc-backup. If you cannot stop the server, send save-off and then save-all flush through the console before copying, and save-on after. The world* pattern catches the three folders Paper keeps, world, world_nether and world_the_end, as well as vanilla’s single world folder. And copy the backups off the server, because a backup on the same disk does not survive the loss of that disk.
06Ping: what to expect from a server in Germany
Our CoreVPS plans currently run in our Germany data centre. So let us be clear about what that means for players in Saudi Arabia and the region. depends on the route your internet provider takes, not on distance on the map. As a reference, WonderNetwork’s measurements between data centres show about 45 milliseconds from Frankfurt to Ankara, about 90 to Manama, and between 115 and 130 to Muscat and Doha. A home or mobile connection adds to that, and so do the routes some providers in the region take through other countries.
What this means in practice:
- Building and survival games: Minecraft, Terraria, Valheim and Factorio play well at 60 to 120 ms. You may notice a slight delay in fast combat, but the game stays enjoyable.
- Competitive shooters: In CS2 or Rust, every tens of milliseconds count against you. A server in Germany suits a group in Europe, or friends who accept the delay; for serious matches between players in Saudi Arabia, the delay is a real handicap.
- Measure before you invite everyone: Once the server is running, have each player ping its address from home, at peak evening hours, and look at the jitter as well as the average. A stable 90 ms feels better than one that jumps between 50 and 200.
07Other games and what each needs
Minecraft is only the start. These games run as dedicated servers on Linux, and the table shows the smallest CoreVPS plan the order form allows for each one:
| Game | Smallest plan | Monthly from |
|---|---|---|
| Minecraft Bedrock, Factorio, TeamSpeak 3, Mumble | VPS Start (1 vCPU, 1 GB) | $3.50 |
| Minecraft Java, Terraria, Don’t Starve Together, TF2 and L4D2 | VPS Plus (2 vCPU, 2 GB) | $6 |
| Valheim, Project Zomboid, LinuxGSM with Web-LGSM | VPS Pro (3 vCPU, 4 GB) | $10.50 |
| Counter-Strike 2, Rust, ARK, 7 Days to Die, Satisfactory | VPS Max (4 vCPU, 8 GB) | $17 |
| Palworld | VPS Ultra+ (12 vCPU, 24 GB) | $43 |
The smallest plan is a floor, not a recommendation for a full server: a Rust map with fifty players or ARK with mods needs well beyond it. Add memory with the players, and watch the disk, because games such as CS2 and ARK need tens of gigabytes before their first map.
08LinuxGSM: most games with one tool
LinuxGSM is a free command-line tool that installs and manages about 148 game servers in the same way: one script per game that checks dependencies, downloads the server, writes its default settings, and gives you the same commands for each game. That saves you learning each game’s own way of doing things. Here is Valheim as an example, on its own user:
# A separate user for each game serversudo adduser vhserversudo su - vhserver# Download LinuxGSM and create the Valheim scriptcurl -Lo linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh vhserver# Install the game server (it tells you which packages to add first, if any)./vhserver install./vhserver start# Ports, passwords, file paths and state./vhserver details
The same commands work for every game: stop, restart, update, backup and console. Two cron lines in the game user’s crontab keep things running on their own:
# crontab -e as the game user# Restart the server if it stops responding*/5 * * * * /home/vhserver/vhserver monitor > /dev/null 2>&1# Check for game updates every night0 5 * * * /home/vhserver/vhserver update > /dev/null 2>&1
The details command is also the quickest way to know which ports a game uses, so you can allow them in the firewall. And if you would rather manage servers from a browser than the terminal, Web-LGSM is a web panel that drives LinuxGSM: you install, start, stop and update game servers with buttons.
- ProblemPlayers see “Connection timed out”
- FixCheck that the server is running with systemctl status, that it listens on the port with sudo ss -lntup, and that the firewall allows that port with the right protocol, TCP for Java and UDP for Bedrock.
- Problem“Can’t keep up! Is the server overloaded?” in the log
- FixThe tick rate fell below 20. Lower view-distance and simulation-distance, pre-generate the world, and look for heavy farms or plugins before buying more memory.
- ProblemThe server stops with an OutOfMemoryError
- FixThe heap is too small for the world. Raise -Xmx, but keep about a gigabyte outside it for the system; if you cannot, move to a larger plan.
- ProblemAfter an update the server will not start
- FixA plugin or mod does not support the new version yet. Move it out of the plugins or mods folder, start the server, and wait for its update. Restore the world backup if it was damaged.
- ProblemBedrock players cannot see the server
- FixBedrock uses UDP. Make sure 19132/udp is allowed, and that players add the server by address and port, not through the LAN list.
09Your game server ready on CoreVPS
If you would rather skip the steps above, CoreVPS has nearly 100 ready apps, among them Minecraft Java and Bedrock, Counter-Strike 2, Rust, ARK, 7 Days to Die, Valheim, Palworld, Satisfactory, Terraria, Factorio, Project Zomboid, Don’t Starve Together, TF2 and L4D2, LinuxGSM with Web-LGSM, and TeamSpeak 3 and Mumble for voice chat. On the order form choose the operating system, Ubuntu 24.04 by default, then the game under “Preinstalled software”. The list only shows games that support that system and fit your plan.
Once the server is delivered, the installation runs on its own, and an email reaches you with the server’s address and how to manage it. The Minecraft Java app, for example, lets you choose vanilla, Paper, Purpur, Fabric, Forge or NeoForge when you order, installs the Java version that release needs, and gives the server 75% of the memory, recalculated at every start. The Bedrock app updates the server daily and backs up the world.
Start with the smallest plan in the table and grow with your players: the CoreVPS builder takes you up to 32 vCPU and 64 GB of memory, and you add resources from the control panel without reinstalling. Each plan includes a monthly data allowance, from 200 GiB on VPS Start to 8000 GiB on VPS Ultra+, and a game server’s traffic is usually small next to that. And if you are not sure which plan suits your game and your group, ask our technical support team.




