How to Make a Minecraft Server to Play With Friends
There are two routes: running it on your computer, which is free but only works while your PC is on, or renting a server, which is always running. Here are both, no tricks.
Option 1: on your own PC (free)
It's good for trying things out or playing for a while with two or three friends. The server lives on your computer: if you turn it off, the game is over for everyone, and your home connection has to cope with the players.
Install Java
Current versions of Minecraft (26.1 onwards) need Java 25. Download it from adoptium.net (Temurin 25) and install it. For an older version, see which Java it needs in the Java guide.
Download the server
On minecraft.net, in the “Download server” section, get the server.jar file for the same version as your game. Put it in an empty folder.
Run it once
Open a terminal in that folder and run: java -Xmx2G -jar server.jar nogui. It will stop straight away and create the eula.txt file.
Accept the EULA
Open eula.txt, change eula=false to eula=true and start it again. This time it will generate the world.
Open port 25565
For people outside your home to join, you have to forward TCP port 25565 on your router to your PC's local IP. Every router calls it something different (“Port forwarding”, “NAT”, “Virtual servers”). Some ISPs (CG-NAT) don't allow it: in that case see how to play without port forwarding.
Share your public IP
Your friends join with your public IP (search for “what is my IP”). If your ISP changes it, you'll have to share it again. How they add it is in the guide to joining and inviting your friends.
Rather not set it up yourself? Minecraft servers from €6 a month, no contract and a full refund within 72 hours. Or create a free Minecraft server, no card needed.
Option 2: rented (always on)
If you want to play whenever you feel like it, without depending on the host being online, you need a rented server. On NapNodes it works like this:
Choose the plan by RAM
4 GB (Stone plan) is enough for a group of friends with plugins. For modpacks, 6 or 8 GB. If in doubt, read the RAM guide or start with the free server.
Pay and wait a couple of minutes
The server is created on its own, with Paper (faster than Vanilla and compatible with plugins). Meanwhile, we generate the terrain around the spawn point and email you when it's ready.
Join with your address
You get your own address, like yourserver.play.napnodes.com, which you type into “Multiplayer” → “Add Server”, without a port.
Manage it from the panel
Console, files, backups and version, from panel.napnodes.com. Your RAM is yours alone: we don't oversell it to other customers.
Which one is worth it?
For an afternoon with two friends, your PC. For a game that lasts weeks, with people joining at different times, rented: your PC doesn't have to be on, nobody sees your home IP and the world has backups.
Frequently asked questions
Can you make a Minecraft server for free?
Yes, on your own PC with the official server.jar. It works while your computer is on, and you have to open port 25565 on the router.
How much RAM does a Minecraft server need?
For a group of friends with Paper and a few plugins, 4 GB is plenty. For medium modpacks, 6 GB; for heavy ones, 8 GB or more.
Do I need to own the real Minecraft?
Yes: every player needs their own Minecraft Java account to join a regular server.
Shall we set it up for you?
Minecraft servers from €6 a month, never oversold: your RAM is yours alone. And if you'd rather start without paying, there's a free Minecraft server, no card needed.
Your server doesn't show up in the game? Check it in a second with “Is my Minecraft server online?”: players, version and MOTD, free. Need a player's UUID for the whitelist or permissions? Look it up here. Handing out enchanted items? Build the command with the /give generator.
Linking portals? Convert coordinates to the Nether and back with the Nether calculator: paste what F3 shows and you get where to build the other one.
Free tool: Server name generator. Name ideas for your server by game and style, with your own word if you like, and what its address would look like.
Free tool: start.bat generator. The start.bat or start.sh for your Minecraft server with the RAM set right and Aikar's flags, ready to download.
Keep reading
- Play Minecraft with Friends Without Port Forwarding: Hamachi, Radmin VPN, playit.gg and Hosting
Play Minecraft with friends without touching the router: Hamachi, Radmin VPN, tunnels like playit.gg and a rented server. What each does and when to switch.
- Minecraft Realms vs a Rented Server: Which Is Better?
Realms is the easiest option for a few friends; a rented server lets you add mods and plugins and have more players. What changes and how to choose well.
- How Much RAM Does a Minecraft Server Need?
How many GB of RAM your Minecraft server needs depending on players, plugins and modpacks. With real numbers and without overselling you.