How to Make a Minecraft Server, Step by Step
How to make a Minecraft server step by step: Java and RAM requirements, setup on your own PC, plugins with Paper and how your friends connect to it.

Contents
Learning how to make a Minecraft server is easier than most people expect: you download Mojang's free server file, run it with the right Java version, change a few settings and give your friends the address. The real question is where the server should run. Your own computer is fine for a few friends and short sessions; as your community grows, you will want a server that is online 24/7, fast and protected.
This guide covers the three ways to host a Minecraft server, the requirements, a step-by-step setup on your own PC, adding plugins with Paper and how your friends connect. It is written for Java Edition; you will find how to let Bedrock players join the same server in the FAQ.
Three ways to host a Minecraft server
- On your own computer: Free and fully under your control. But the server goes offline when the computer does, and your home upload speed and IP address set the limits.
- Free hosting services: You can start a server in a few minutes without installing anything. In return, resources are tight, you may wait in a queue at busy times and the server is usually shut down when nobody is playing. Good for trying things out, not for a lasting community.
- A rented server: The server stays online in a data center around the clock, the CPU, RAM and connection serve only your game, and it sits behind DDoS protection. It costs a monthly fee.
Most of this guide walks through the first option, because the steps are almost the same on a rented server.
Requirements: Java, RAM and port 25565
Java version. The Minecraft server runs on Java, and each Minecraft version needs a specific Java version. Versions 1.18 to 1.20.4 need Java 17, and 1.20.5 and later need Java 21. Check the release notes for the version you want. You can download Java from a free OpenJDK build such as Eclipse Temurin.
RAM. How much memory to give the server depends on player count and on plugins or mods:
| Use case | Players | Recommended RAM |
|---|---|---|
| Vanilla or Paper, friends server | 1–10 | 2–4 GB |
| Paper with 10–20 plugins | 20–50 | 6–8 GB |
| Light modpack (Fabric) | 5–15 | 6–8 GB |
| Heavy modpack | 10–20 | 10–16 GB |
Memory you give the server is separate from the memory the game itself uses. If you play and host on the same machine, make sure it has enough RAM for both.
Java or Bedrock? Minecraft comes in two editions. Java Edition, the usual PC version, has the full plugin and mod ecosystem, and the server in this guide is a Java server. The version on phones, tablets, consoles and the Microsoft Store is Bedrock Edition. Even if most of your friends play Bedrock, you can run a Java server and let them in with the Geyser plugin; see the FAQ for details.
Port. Java Edition servers use TCP port 25565 by default. For friends to connect over the internet, that port has to be forwarded from your router to your computer.
How to make a Minecraft server on your PC
- Install Java. Download and install the Java version your Minecraft version needs. Check it by typing
java -versionin a terminal. - Create a folder. For example, a folder named
minecraft-serveron your desktop. All server files will live here. - Download the server file. Get
server.jarfrom the server download page on minecraft.net and put it in the folder. - Run the server for the first time. Open a terminal in the folder and run:
java -Xms2G -Xmx2G -jar server.jar nogui-Xmsand-Xmxset how much memory the server gets. On the first run, the server creates a few files and stops. - Accept the EULA. Open the new
eula.txtfile and changeeula=falsetoeula=true. This means you accept the Minecraft End User License Agreement. - Adjust the settings. These are the most used lines in
server.properties:motd: the description shown in the server list.max-players: the player limit.difficultyandgamemode: difficulty and game mode.white-list: set it totrueso only players you add can join.online-mode: keep ittrue; it checks that players use real Minecraft accounts.
- Start the server again. Run the same command; the world is generated. When you see "Done" in the console, the server is ready.
- Make yourself an operator. Type
op yournamein the console to use admin commands in game.
Create a start script
Instead of typing the command each time, create a start script. On Windows, make a file named start.bat in the server folder with:
java -Xms2G -Xmx2G -jar server.jar nogui
pause
On Linux, put the same command in start.sh and make it executable with chmod +x start.sh. To give the server more memory later, just change the -Xms and -Xmx values. Keeping both the same makes Java's garbage collector behave more predictably.
To shut the server down, type stop in the console. Closing the window directly can stop the server without saving the world.
Adding plugins with Paper or Spigot
The vanilla server does not support plugins. For economy, land claiming, teleport or admin plugins, you need Bukkit-compatible server software. The most common are Spigot and Paper, which is built on Spigot and is faster.
- Download the Paper
.jarfor your Minecraft version from papermc.io. - Use it in your server folder instead of
server.jar; the start command is the same, only the file name changes. - A
pluginsfolder appears on the first run. Download plugin.jarfiles from sources such as Hangar, Modrinth or SpigotMC and put them in this folder. - Restart the server and type
/pluginsin game or in the console to check that they loaded.
Useful plugins to start with
Every server is different, but many owners start with these common plugins:
- LuckPerms: to manage player groups and permissions.
- EssentialsX: for basic commands like
/home,/spawnand/tpa. - WorldGuard (with WorldEdit): to protect spawn and other important areas.
- CoreProtect: to log who broke which block and roll back griefing.
More plugins mean more RAM and CPU. Installing only what you actually use keeps your server faster and safer.
Always make sure a plugin matches your server's Minecraft version. An incompatible plugin can stop the server from starting; the error in the console tells you which plugin caused it.
How your friends join your server
On the same network (same home, same router), friends connect with your computer's local IP address. On Windows you can see it with ipconfig; it usually looks like 192.168.x.x. They enter it under "Multiplayer" > "Add Server" in Minecraft.
Over the internet, you need these steps:
- In your router's admin page, forward TCP port 25565 to your computer's local IP address (port forwarding).
- Make sure Windows Firewall allows incoming connections for Java.
- Give your friends your public IP address. You can find it in your router or on any "what is my IP" site.
Some internet providers use CGNAT, where many customers share one public IP address, and port forwarding does not work. If the port is forwarded correctly but nobody can connect from outside, you may need to ask your provider for a public or static IP.
The limits of hosting on your own PC
Hosting on your own computer is a great way to learn, but some limits show up as your community grows:
- The computer has to stay on. When you shut it down or restart it, everyone is disconnected.
- Upload speed is limited. Home connections upload far slower than they download, and every player shares that upload.
- Your IP address is exposed. The address you give players is your home connection's address. In an attack, not just the server but your whole home internet goes down. Our guide What is a DDoS attack? explains why.
- Performance is shared. If you play on the same machine, the server competes with the game for CPU and memory.
- A computer that is always on also costs electricity and wears out faster.
Don't forget backups
When the server runs on your own computer, backups are entirely up to you. Regularly stop the server with stop and copy the world, world_nether and world_the_end folders to another disk or to the cloud. Backing up before a big update or a new plugin means a mistake never costs you your world.
Renting a Minecraft server
Once your community is here to stay, moving the server to a data center removes all of these limits. You still do most of the steps above yourself, but the server stays online 24/7, your home IP stays private and the connection serves only your players.
Nodesty's Minecraft server hosting runs on the Ryzen 9 9950X, which boosts to 5.7 GHz for Minecraft's largely single-threaded main loop, with NVMe storage and DDoS protection. Choose Minecraft when installing the operating system and the server files and Java come preinstalled; you only need to bring your world and plugins. Thinking about a GTA V roleplay server too? Read our guide on how to make a FiveM server.
Frequently Asked Questions
Is it free to make a Minecraft server?
Yes. Mojang's Java Edition server software is free and you can run it on your own computer. Costs only come in when you rent a server to keep it online around the clock. Every player still needs their own Minecraft account.
How much RAM does a Minecraft server need?
For a vanilla or Paper server with a few friends, 2–4 GB is usually enough. As player count, plugins and especially modpacks grow, the requirement rises to 8 GB and beyond.
Why can't my friends join my server?
The most common causes are port 25565 not being forwarded on your router, Windows Firewall blocking Java, and an internet provider that uses CGNAT. First try connecting from a device on the same network using the local IP, then check port forwarding.
Can Bedrock players join a Java server?
Yes. Install the Geyser and Floodgate plugins on a Paper server and players on phones, consoles and Windows Bedrock can join too. UDP port 19132 also needs to be open.
Should I use Paper or Spigot?
For a new server we recommend Paper. It runs Spigot plugins and is noticeably faster. A few older plugins only work on Spigot; if you need one of those, Spigot is the fallback.
Can I move my world to a rented server later?
Yes. Copy the world, world_nether and world_the_end folders from your server folder, together with your plugin folders, to the new server. At Nodesty our support team does the migration for free.
About the author
Nodesty Team · Infrastructure & Support
The Nodesty team runs our servers, network and DDoS protection day to day and answers customer support requests around the clock. These guides come from that work.
Related articles

How to Make a FiveM Server with txAdmin
How to make a FiveM server: license key, server artifacts, ESX or QBCore through txAdmin, MariaDB, port 30120 and the most common errors, step by step.

SPF, DKIM and DMARC Explained: Setup Guide
SPF, DKIM and DMARC explained: how these DNS records keep your email out of spam, what each record looks like, how to set them up and mistakes to avoid.

What Is a Dedicated Server? A Plain Guide
What is a dedicated server? How bare-metal servers work, how they compare with a VPS, when you need one and which hardware to check before you rent one.