Want to play with friends on your own world, with your own rules? Running your own Minecraft server is the best way to do it — and it is far easier than most people think. This guide walks you through the whole thing, from the fastest free option to a proper server that stays online 24/7. You can be up and running in about 15 minutes.

Free vs. your own server: which should you pick?

There are two realistic ways to host a Minecraft server.

Free, browser-based hosting (services like Aternos or Minehut) is great for a quick test. You click a button and get a server with no cost. The catch: the server sleeps when nobody is online, you share resources with thousands of other players, performance is unpredictable, and you wait in a queue to start it. Perfect for a one-evening session, frustrating for a real community.

Your own server on a VPS removes every one of those limits. It runs 24/7, nobody else touches your resources, you get full control over plugins and config, and the performance is yours alone. The best part: a VPS capable of running a smooth Minecraft server costs only a few dollars a month — often less than a single coffee.

If you are just curious, start free. If you want a world that is always there for your friends, get a VPS. The rest of this guide covers the VPS route, because that is the setup that actually lasts.

Step 1 — Get a VPS

A VPS (Virtual Private Server) is just a small computer in a data center that is always on. For Minecraft, what matters is fast CPU single-core performance, enough RAM (2 GB for a few friends, 4 GB+ for a busy server with plugins), and NVMe SSD storage so chunks load instantly.

For this I always use Fornex — the plans are cheap, the NVMe disks are genuinely fast, and a fresh VPS is ready in a couple of minutes. Pick an Ubuntu 22.04 (or newer) instance close to where your players live to keep ping low, and you are set. Once you order, you will receive an IP address and a root password — that is everything you need for the next steps.

Tip: Choose a location near your players. A server in the wrong region adds 100+ ms of lag no amount of optimization can fix.

Step 2 — Connect and install Java

Connect to your VPS over SSH (use the built-in terminal on macOS/Linux, or PowerShell / PuTTY on Windows):

ssh root@YOUR_SERVER_IP

Modern Minecraft needs Java 21. Install it and a few helpers:

sudo apt update && sudo apt upgrade -y
sudo apt install openjdk-21-jre-headless screen wget -y

Verify it worked:

java -version

Step 3 — Download the server

Vanilla works, but Paper is the smart choice: it is a drop-in replacement that is dramatically faster, fixes bugs, and supports plugins. Create a folder and grab the latest build:

mkdir minecraft && cd minecraft
wget -O server.jar https://api.papermc.io/v2/projects/paper/versions/1.21.4/builds/latest/downloads/paper.jar

Run it once to generate the config files:

java -Xms2G -Xmx2G -jar server.jar nogui

Step 4 — Accept the EULA and configure

The first run stops and asks you to accept Mojang’s licence. Open the file and set it to true:

sed -i 's/eula=false/eula=true/' eula.txt

Now tweak server.properties to taste — the most common settings:

Step 5 — Open the firewall and start it

Allow the Minecraft port, then launch the server inside a screen session so it keeps running after you disconnect:

sudo ufw allow 25565
screen -S minecraft
java -Xms2G -Xmx2G -jar server.jar nogui

Press Ctrl+A then D to detach and leave it running. Reattach any time with screen -r minecraft.

Step 6 — Connect and play

Open Minecraft → MultiplayerAdd Server, and enter your VPS IP address (for example 203.0.113.10:25565). Hit join — you are in your own world. Share that IP with your friends and they can join from anywhere.

Keep it online 24/7

screen is fine to start, but for a server that survives reboots, create a small systemd service so Minecraft launches automatically when the VPS restarts. Combine that with an automatic daily backup of your world folder and you have a setup you never have to babysit.

Make it faster

A few quick wins:

Frequently asked questions

Is a free Minecraft server good enough? For a quick session with one or two friends, yes. For anything persistent — a community, a modpack, a world you care about — a low-cost VPS is far more reliable because it never sleeps and the resources are yours.

How much RAM do I need? 2 GB handles a handful of friends on vanilla or Paper. Plugins, mods, and more players push you toward 4 GB and up.

Can my friends join from another country? Yes. Once the port is open, anyone with your IP can connect from anywhere. Lower ping comes from choosing a VPS location central to your group.

Do I need a static IP or a domain? No. The VPS IP works out of the box. Later you can point a domain at it for a cleaner address, but it is optional.


That is the whole process: pick a fast VPS, install Paper, open the port, and play. Fifteen minutes of setup buys you a Minecraft world that is always online, always yours, and ready whenever your friends are.