A complete, beginner-friendly walkthrough for setting up your own Minecraft Java server — pick a version, configure it, accept the EULA and invite your friends. Plus the one-click hosted route if you'd rather skip the setup.
There are two ways to run a Minecraft server: self-host it on your own PC, or use a managed host. Self-hosting is free but ties up your computer, exposes your home IP and needs port-forwarding; a managed host gives you a 24/7 online server with a control panel, DDoS protection and a clean IP — for the price of a couple of coffees a month.
This guide covers the self-hosted route step by step so you understand exactly how it works, and points out where a host saves you the hassle. Wondering about price first? See how much a Minecraft server costs.
What you'll need
- A device to run the server (your PC for testing, or a host for 24/7 uptime).
- The correct Java version for your Minecraft version (Java 17+ for 1.18 and newer).
- The server software you want — Vanilla, Paper/Spigot, Forge or Fabric.
- A way for friends to connect — port-forwarding at home, or a clean IP from a host.
- 2–4 GB of free RAM for vanilla; more for modpacks.
Set up a Minecraft Java server, step by step
Step 1: Choose self-host or a managed host
Self-hosting needs Java, port-forwarding and your PC left on 24/7. A managed host gives you an always-online server, a panel and DDoS protection in minutes. If you want zero hassle, pick a host and skip to step 6.
Step 2: Pick your version and server software
Decide between Vanilla (pure Minecraft), Paper/Spigot (plugins, much better performance), or Forge/Fabric (mods). Paper is the best choice for most public servers.
Step 3: Install Java and download the server
Install the Java version your Minecraft version needs (Java 17+ for modern versions), then download the matching server .jar (Vanilla from minecraft.net, or Paper from papermc.io).
Step 4: Accept the EULA
Run the server once; it creates an eula.txt. Open it and set eula=true to accept Mojang's End User License Agreement. The server won't start until you do.
eula=trueStep 5: Configure server.properties
Open server.properties and set the key options. The defaults are fine to start; tune max-players, view-distance and the MOTD to taste.
server-port=25565 max-players=20 view-distance=10 simulation-distance=8 online-mode=true motd=My ESAGAMES ServerStep 6: Start the server and get your address
Start the server with enough RAM (see our flags below). On a host, your IP is shown in the panel instantly. Self-hosting at home means port-forwarding TCP 25565 on your router and sharing your public IP.
java -Xms2G -Xmx4G -jar server.jar noguiStep 7: Invite friends and add plugins
Share your address (IP or domain:port). On Paper, drop plugins into the /plugins folder and restart. Use a whitelist or online-mode to keep your server safe.
Keep your server fast and safe
Right-size your RAM
2–4 GB for vanilla/SMP, 6–10 GB for heavy modpacks. Too little RAM causes lag; too much wastes money.
Use Paper
Paper dramatically outperforms Vanilla for multiplayer — higher TPS with the same hardware.
Enable backups
Schedule world backups so a bad plugin or a griefer never costs you your build.
Protect your IP
Self-hosting exposes your home IP to attacks. A managed host puts a clean, DDoS-protected IP in front.
Common problems & fixes
The server closes instantly on start
You haven't accepted the EULA. Open eula.txt and set eula=true, then start again.
"Failed to bind to port"
Another program is using port 25565, or a previous server instance is still running. Close it or change server-port.
Friends can't connect to my home server
Port 25565 isn't forwarded, or you gave out your local IP. Forward TCP 25565 on your router and share your public IP, or use a host with a clean public IP.
"Unsupported Java" or crash on launch
You're running the wrong Java version. Match Java to your Minecraft version (Java 17+ for modern versions).
Minecraft is a trademark of Mojang Synergies AB / Microsoft. ESAGAMES is an independent hosting provider and is not affiliated with or endorsed by Mojang or Microsoft. You must own a legitimate copy of Minecraft and accept Mojang's EULA.