How do I set up a Minecraft server on a VPS, and how much does it cost vs. Minecraft hosting?
How much RAM a Minecraft server needs, when a VPS beats specialized Minecraft hosting and how to set it up on Linux step by step.

To set up a Minecraft Java server on a VPS, you need Linux, Java, the server file, and port 25565 open. A small server runs on 2 to 4 GB of RAM. Specialized Minecraft hosting is easier and usually cheaper for a small group of friends. A VPS such as Dongee Cloud, with root access and a dedicated IP address, makes sense when you want full control or need to run more on the same machine.
Updated December 1, 2026 · Dongee Team
How much RAM you need (estimates)
These are rough estimates from Minecraft hosting providers’ guides. Requirements vary with the version, plugins, and view distance.
| Server type | Players | Approximate RAM |
|---|---|---|
| Vanilla | 1 to 4 | 1 to 2 GB |
| Vanilla | 5 to 10 | 2 to 4 GB |
| With plugins (Paper) | 10 to 20 | 6 to 8 GB |
| With mods (modpacks) | Any number | 6 to 8 GB or more, depending on the modpack |
VPS vs. Minecraft hosting: an honest comparison
| Minecraft hosting | VPS | |
|---|---|---|
| Setup | One click in a game control panel | You install Java and the server |
| Cost for a few players | Usually lower | Higher for the same amount of RAM |
| Control | Limited to the control panel | Full control with root access |
| Other uses | Just the game | A website, Discord bot, or database |
| Best for | Playing with friends without a complicated setup | Communities, heavily modded servers, or learning Linux |
How to set it up on a Linux VPS in 6 steps
- Create the server with at least 4 GB of RAM and connect via SSH. See how to connect via SSH from Windows or Mac.
- Install Java. Check the release notes for the Java version your Minecraft version requires.
- Download the server. Put the official server from minecraft.net, or Paper if you plan to use plugins, in its own folder.
- Accept the EULA. Start the server once, edit
eula.txt, and seteula=true. - Start the server with memory limits set:
java -Xms2G -Xmx3G -jar server.jar nogui. Run it inscreenor as a service so it keeps running when you disconnect from SSH. - Open TCP port 25565 in the firewall and share the server’s IP address with your players.
Back up the world folder regularly. To work out the exact cost based on vCPU and RAM, see how to calculate the price of a custom cloud server. If you’re unsure which server size to choose, ask in the Dongee sales chat.
Frequently asked questions
How much RAM does a Minecraft server need?
As a rough guide from hosting providers, a vanilla server for 1 to 10 players runs on 2 to 4 GB. With plugins (Paper) or mods, plan for 6 to 8 GB or more. It depends on the version, plugins, and view distance.
Which is better, a VPS or Minecraft hosting?
Minecraft hosting is easier and usually cheaper for small servers. A VPS makes sense if you want full control, need to run other things on the same machine, or want a dedicated IP address.
What port does Minecraft Java use?
The default port is 25565 (TCP). Allow it in the server firewall.
Can I run a Minecraft server on Dongee Cloud?
Yes. Dongee Cloud provides root access and a dedicated IP address, so you can install Java and the Minecraft server yourself. Choose a plan based on vCPU, RAM, and disk space.
Comenta lo que quieras
Unete a la charla
Solo ingresa tu email