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.

Block landscape connected to a cloud server with RAM and CPU chips

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 typePlayersApproximate RAM
Vanilla1 to 41 to 2 GB
Vanilla5 to 102 to 4 GB
With plugins (Paper)10 to 206 to 8 GB
With mods (modpacks)Any number6 to 8 GB or more, depending on the modpack

VPS vs. Minecraft hosting: an honest comparison

Minecraft hostingVPS
SetupOne click in a game control panelYou install Java and the server
Cost for a few playersUsually lowerHigher for the same amount of RAM
ControlLimited to the control panelFull control with root access
Other usesJust the gameA website, Discord bot, or database
Best forPlaying with friends without a complicated setupCommunities, heavily modded servers, or learning Linux

How to set it up on a Linux VPS in 6 steps

  1. Create the server with at least 4 GB of RAM and connect via SSH. See how to connect via SSH from Windows or Mac.
  2. Install Java. Check the release notes for the Java version your Minecraft version requires.
  3. Download the server. Put the official server from minecraft.net, or Paper if you plan to use plugins, in its own folder.
  4. Accept the EULA. Start the server once, edit eula.txt, and set eula=true.
  5. Start the server with memory limits set: java -Xms2G -Xmx3G -jar server.jar nogui. Run it in screen or as a service so it keeps running when you disconnect from SSH.
  6. 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