How to make a Minecraft server
Want to play Minecraft with friends on your own world? A server lets everyone join whenever they like. This guide shows you how to make a Minecraft server two ways: on your own computer for free, or with a host that keeps it online 24/7.
What you need before you start
- A copy of Minecraft (Java Edition for the steps below).
- A computer that can stay on, or a hosting plan.
- The right version of Java. Current Minecraft versions need Java 21, and older versions need an older Java, so check the requirement for your version.
- About 15 minutes.
Option 1: Host a server on your own computer
Step 1: Create a folder. Make a new folder called minecraft-server so all the world and config files stay in one place.
Step 2: Download the server file. Get the official server.jar from Minecraft's website, or download Paper from papermc.io if you want better performance and plugin support. Put the file in your folder.
Step 3: Start the server. Open a terminal in the folder and run:
java -Xms2G -Xmx2G -jar server.jar nogui
The first run stops quickly and creates a file called eula.txt. Open it, change eula=false to eula=true, save it, and run the command again. The server then builds your world.
Step 4: Let friends connect. On the same network, friends join using your local IP address. For friends elsewhere you must forward TCP port 25565 on your router to your computer. Be aware this exposes your home IP address, which is the main reason many people choose a hosted server instead.
Option 2: Use a hosted server
A host runs the server for you on always-on hardware. You pick a plan, choose a server type and get an address to share. There is no port forwarding, your computer can be off, and DDoS protection and backups are usually included. Bytebath plans start at $3/month and are ready in about a minute.
Choose your server type
| Type | Best for |
|---|---|
| Vanilla | The plain, unmodified game |
| Paper | Faster survival servers with plugins |
| Fabric | Lightweight mods |
| Forge / NeoForge | Big modpacks |
Configure server.properties
This file controls how your world works. The settings most people change are:
gamemode: survival, creative or adventure.difficulty: peaceful, easy, normal or hard.max-players: how many people can be online at once.view-distance: lower it (for example to 8) to reduce lag.white-list: set totrueso only approved players can join.online-mode: leave it astrueso only real Minecraft accounts can log in.
Add friends and set admins
In the server console, use whitelist add PlayerName to approve a friend and op PlayerName to give someone admin powers. Only give operator status to people you trust.
Add plugins or mods
On Paper, drop plugin .jar files into the plugins folder. On Fabric or Forge, add mods to the mods folder. Every player needs the same mods installed, but plugins only need to be on the server.
Back up your world
Copy your world folder regularly, and always before installing a new mod or updating. Many hosts, including Bytebath, take daily backups so you can roll back after a crash or griefing.
Fixing common problems
- Friends cannot connect: check the port forward, your firewall and that everyone uses the same Minecraft version.
- Server lags: lower
view-distance, give it more RAM (see our RAM guide), or switch to Paper. - Server will not start: make sure
eula=trueand that you are using the right Java version.
Frequently asked questions
Is it free to make a Minecraft server?
Running one on your own computer is free, but it only stays online while your computer is on. A hosted server costs a monthly fee and runs 24/7.
Which Minecraft server type is best for beginners?
Paper is a good start because it is fast and supports plugins. Choose vanilla if you want an unmodified game.
What port does a Minecraft Java server use?
Java servers use TCP port 25565 by default.
Ready to host your own Minecraft server? Plans start at $3/mo with instant setup, DDoS protection and daily backups.
View plans