How to Make a Minecraft Server (2026 Guide)

Quick answer: There are two ways to make a Minecraft server. Rent a hosted server (easiest — no port forwarding, runs 24/7, ready in minutes) or self-host by downloading the official server.jar, installing Java, accepting the EULA, and forwarding port 25565 on your router. This guide covers both.

Running your own Minecraft server means you and your friends get a persistent world that’s always online, with full control over settings, plugins, and mods. Here’s how to set one up.

Option 1: Rent a Hosted Server (Easiest)

Hosting a server on your own PC means it’s only online when your computer is, it eats your bandwidth, and it exposes your home IP. A hosting provider solves all of that. With Minecraft server hosting you get:

  • 24/7 uptime — the world stays online even when your PC is off.
  • No port forwarding — you get a ready-to-share IP instantly.
  • One-click server types — swap between Vanilla, Paper, Forge, Fabric and more from a control panel.
  • Easy RAM/plugin management — no command line required.

This is the route most communities take. Pick a plan with enough RAM for your player count, choose your server type, and share the IP.

Option 2: Self-Host on Your Own PC

  1. Install Java. Modern Minecraft needs a current version of Java (Java 21 for the latest releases). Download it and confirm with java -version.
  2. Download the server. Get the official server.jar from minecraft.net (or a Paper jar for better performance), and put it in its own folder.
  3. Run it once. Launch it with a command like java -Xmx4G -Xms4G -jar server.jar nogui. It’ll stop and create files.
  4. Accept the EULA. Open eula.txt and change eula=false to eula=true, then save.
  5. Start it again. Run the same command; the world generates and the server comes online locally.
  6. Forward port 25565. To let friends outside your network join, forward TCP port 25565 to your PC’s local IP in your router settings, and share your public IP.

If it won’t start, check our server won’t start guide; if friends can’t join, see can’t connect to server. Once it’s online, make yourself an admin (op) so you can run commands.

Which Should You Choose?

Self-hosting is free but fragile — your PC has to stay on, you deal with port forwarding and firewalls, and performance competes with whatever else you’re running. For anything beyond a quick test with one or two friends, a hosted Minecraft server is far less hassle and keeps your world online around the clock.

FAQ

How much RAM does a Minecraft server need?

A small vanilla server for a few friends runs on 2–4 GB. Add more for bigger player counts, plugins, or modpacks — see how much RAM you need.

Do I need to port forward for a Minecraft server?

Only if you self-host and want people outside your home network to join — you’d forward TCP port 25565. Rented hosting gives you a public IP with no port forwarding needed.

Ready to play?

Run your own Minecraft server with XGamingServer

Spin up an always-on Minecraft server your friends can join in minutes — no port-forwarding, no tech headaches.

99.9%Uptime SLA
< 5 minInstant setup
24/7Human support
DDoSProtected
Instant setup Your server is live in minutes with a one-click control panel.
Mods & plugins Install mods, plugins and workshop content in a few clicks.
DDoS protected Enterprise DDoS mitigation keeps your server online 24/7.
Low-latency hardware Premium CPUs & NVMe SSDs for lag-free multiplayer.
Free backups Automatic backups so your world is never lost.
Real human support Gamers helping gamers — 24/7, no bots, no scripts.

Pick your Minecraft plan & play in minutes

See all plans
Starter $8.40/mo 4 GB RAM Renews $12/mo Buy now
Rookie $17.50/mo 8 GB RAM Renews $25/mo Buy now
Pro $24.50/mo 12 GB RAM Renews $35/mo Buy now