How to Make a Minecraft Server: Java Edition, Step by Step
To make a Minecraft server you need three things: the server software, enough RAM to run it, and a way for your friends to reach it. You can run all three on your own PC for free, or rent a server that is online around the clock and does not depend on your computer being on.
This guide covers both routes for Minecraft: Java Edition. It starts with the decisions that matter (software and RAM), then walks through setup, the first start, adding players and joining.
- Pick the software first: vanilla for the pure game, Paper for plugins and better performance, or Forge, NeoForge or Fabric for mods.
- Plan RAM by use: about 4 GB for a small vanilla server, 6 GB with plugins, 8 GB for a modpack and 16 GB for a large one.
- On your own PC you must accept the EULA, forward TCP port 25565 on your router and leave the PC on. On a host the panel does those parts for you.
- Turn on the whitelist before you share the address, and give operator rights to as few people as possible.
- Players join with Multiplayer, then Add Server, then the address. If the port is not 25565, add it after a colon.
On this page
Step 1: Decide what kind of server you want
Everything else follows from this choice, so make it first. All of these run Minecraft: Java Edition, and all of them can be run at home or on a host.
| Server type | Best for | Players need |
|---|---|---|
| Vanilla | The unmodified game, small groups, a quick start | The same game version, nothing else |
| Paper (or Purpur) | Plugins, claims, economy, minigames and better performance | The same game version, nothing else |
| Forge, NeoForge or Fabric | Mods and modpacks that add new blocks, items and dimensions | The same loader and the same mods installed |
Most friend groups should start with vanilla or Paper. Plugins run on the server only, so your friends do not install anything. Mods change the game itself, so every player has to install them. For a detailed comparison read Paper vs Spigot vs Purpur vs Vanilla; for mods read How to Set Up a Modded Minecraft Server.
Step 2: Choose how much RAM to give it
RAM is the setting people get wrong most often. Too little causes lag and crashes. Far too much does not make the server faster and can make garbage collection pauses worse. These starting points match the RAM picker on our Minecraft hosting page:
| Setup | Starting RAM |
|---|---|
| Vanilla, a few friends | About 4 GB |
| Paper with plugins | About 6 GB |
| A typical modpack | About 8 GB |
| A large modpack or a big community | About 16 GB |
Number of players, the view distance you allow and the plugins or mods you add all move these numbers. The full reasoning is in How Much RAM Does a Minecraft Server Need?, and the server RAM and slot calculator gives a quick estimate.
Step 3: Make the server on a ChicagoServers host
Hosting is the easier route because the panel handles Java, ports and restarts for you.
- Order and open the panel
Choose your RAM on the Minecraft hosting page and check out. Your server appears in the panel right away. Open it from the server list.
- Choose the software and version
Open the Mods tab and pick the server software (for example Paper, or Fabric for mods) and the Minecraft version. Pick the version your friends will play on. On the same tab, pick the Java version that version needs.
- Start the server
Click Start or Restart at the top of the page and watch the Console tab. The first start creates the world and can take a minute. When you see the line that says the server is done loading, it is ready.
- Set the rules
Open the Configs tab and pick Server properties to change difficulty, game mode, view distance and more, then Save and Restart. Every setting is explained in Minecraft server.properties Explained.
- Add your friends
Open the Whitelist tab and add each player's Minecraft username. To make yourself an operator, type
op YourNameon the Console tab.op YourName - Turn on backups
Open the Backups tab and set up Automatic backups, then use Back up now before you try anything risky.
Alternative to step 3: run the server on your own PC
Running at home costs nothing extra and is fine for a short test or a LAN party. The steps are the same everywhere; only the folder and commands change.
- Install Java
Install the Java version your Minecraft version requires. Minecraft 1.20.5 through 1.21.11 uses Java 21, and the new 26.x versions use Java 25. Running the wrong one is the most common first-start failure.
- Download the server file
Download the official server
.jarfrom Minecraft's download page, or a Paper build from Paper's site. Put it in its own empty folder. - Run it once, then accept the EULA
The first run stops and creates
eula.txt. Open it and changeeula=falsetoeula=true, then save.java -Xms4G -Xmx4G -jar server.jar nogui - Forward the port
In your router, forward TCP port 25565 to the PC running the server. Without this, only people on your home network can join. Some internet providers use CGNAT and do not allow inbound connections at all, which is covered in Game Server Hosting vs Hosting at Home.
- Share your public IP
Your friends use your public IP address, not the local 192.168.x.x one. Check it with the port checker after the server is running.
Step 4: Join the server
In Minecraft: Java Edition choose Multiplayer, then Add Server, paste the address and click Done. The default Minecraft port is 25565, and it can be left off the address. If the panel shows a different port, add it after a colon, for example 123.45.67.89:25570. Copy the exact address from the top of your server page.
If a player cannot connect, the cause is almost always a version mismatch, the whitelist, or a typo. How to Fix Can't Connect to Game Server Errors goes through them in order.
What to do after the first night
- Install your first plugin: How to Install Plugins on a Paper Server.
- Control who can build and moderate: Whitelist, Ops and Bans.
- Keep players from lagging each other: Minecraft Server Lag, TPS and Spark.
- Learn how restores work before you need one: Minecraft Server Backup and Restore.
- Cross-platform friends on phones or consoles can join through Geyser.
Frequently asked questions
Can I make a Minecraft server for free?
Yes. You can run the free server software on your own PC at no cost beyond electricity. It is only online while your PC is on and the server is running, and you need to forward a port on your router for friends outside your home. A rented server costs money but stays online without your PC.
What port does a Minecraft Java server use?
The default is TCP port 25565. When you host with ChicagoServers the panel assigns the port and shows the full address at the top of your server page, so you only copy and paste it.
How much RAM do I need for a Minecraft server?
About 4 GB for a small vanilla server, 6 GB with plugins, 8 GB for a typical modpack and 16 GB for a large modpack or big community. Players, view distance, plugins and mods all push this up.
Do my friends need to install anything?
Not for vanilla or Paper servers, they only need the same Minecraft version. For Forge, NeoForge or Fabric servers every player must install the same loader and the same required mods.
Can Bedrock players join a Java server?
Not by default. The Geyser plugin lets Bedrock players on phones, consoles and Windows join a Java server. Our Geyser and Floodgate guides explain the setup.
Not sure what a term means? See the game server glossary.