To make a Minecraft server, install Java, download the free server.jar from Minecraft.net, run it once, set eula=true in eula.txt, and start it again. That gives you a dedicated Minecraft: Java Edition server on your own PC. Friends on your Wi-Fi join with your local IP; friends elsewhere need TCP port 25565 forwarded on your router. The whole setup takes about 15 minutes on Windows, Linux or Mac, and every step is below, from the first start to inviting friends and fixing what goes wrong.
Minecraft server setup: what you need
A Minecraft server is just a Java program, so the list is short: a PC that stays on while people play, the right Java version, 2 GB or more of free RAM, and a wired internet connection. You don’t need a graphics card. The one thing that trips people up is Java: each Minecraft version needs a minimum Java release, and the wrong one stops the server before it starts.
| Minecraft version | Java needed |
|---|---|
| 26.1 and newer (current release: 26.3) | Java 25 |
| 1.20.5 to 1.21.11 | Java 21 |
| 1.18 to 1.20.4 | Java 17 |
| 1.12 to 1.16.5 (most older modpacks) | Java 8 |
Newer Java can usually run older Minecraft, but not the other way round. Since 2026 Mojang numbers releases by year (26.1, 26.2, 26.3), so “the latest version” is no longer a 1.21.x number.
Hardware. The server mostly runs on one CPU core, so a fast core matters more than many cores. For a small survival group, the Minecraft Wiki recommends at least 2 GB of RAM for the server, 4 GB for larger ones, and 5 GB or more of disk for the world. Modpacks need far more (see the RAM section below). Leave RAM for Windows too: if you play on the same PC, the game and the server share it.
Internet. Use Ethernet, not Wi-Fi, if you can. Upload speed is the limit at home: the wiki’s guideline for 1 to 3 players on Windows 10 or 11 is about 6 Mbit/s up.
Java or Bedrock: which server do you need?
Pick the server that matches the edition your friends play. Java Edition is the PC version with mods and plugins; this guide sets up a Java server. Bedrock Edition runs on Xbox, PlayStation, Switch, phones (what people used to call MCPE) and the Windows Bedrock app, and it needs the separate Bedrock Dedicated Server, which listens on UDP port 19132 instead of 25565.
- Everyone on PC Java: follow this guide.
- Friends on Xbox or mobile: you need a Bedrock server. See how to set up a Minecraft Bedrock server, or skip the install with Bedrock server hosting.
- A cross-platform server for both: run a Paper server with Geyser, a bridge that lets Bedrock players join a Java server. It needs its own port (19132 by default), separate from the Java one.
How to make a Minecraft server on PC (Windows 10 and 11)
On Windows 10 or 11 it’s six steps: install Java, make a folder, download server.jar, write a two-line start.bat, accept the EULA, and start the server. Use the Java version from the table above for the Minecraft version you want. Here’s the exact routine for the current release.
- Install Java. Open Command Prompt or PowerShell and run
winget install EclipseAdoptium.Temurin.25.JRE(Temurin 25 for Minecraft 26.x). Winget ships with Windows 10 and 11. Or download the installer from adoptium.net. Check it worked withjava -version. - Make a server folder, for example
C:\MinecraftServer. Everything the server creates (the world, configs, logs) lands here. - Download the server jar from the official Minecraft server download page and put it in the folder. This Minecraft server jar file is the whole server. Rename it to
server.jarso the script below matches. Only download it from Minecraft.net. - Create
start.batin the same folder (Notepad, save as “All files”):@ECHO OFF java -Xms1G -Xmx2G -jar server.jar --nogui pause-Xmx2Glets the server use up to 2 GB of RAM; raise it for more players or mods.pausekeeps the window open so you can read any error. - Run
start.batonce. The server stops straight away and createseula.txt. Open it, changeeula=falsetoeula=trueand save. That confirms you accept the Minecraft EULA. - Run
start.batagain. When the console printsDone, the world is generated and the server is online. If Windows Defender Firewall asks about “OpenJDK Platform binary”, tick both private and public networks and allow it.
Now open Minecraft on the same PC, go to Multiplayer → Direct Connection and type localhost. You’re on your own server. To stop it, type stop in the console window, which saves the world first. Closing the window without stop risks losing the last few minutes.
Playing on the same PC, or hosting on a laptop
You can host and play on one machine; the server and the game just share its RAM and CPU. A laptop works the same way as a desktop, with two catches: it has to stay awake (set the power plan so it never sleeps while plugged in), and laptops throttle when hot. For more than a few friends, a spare PC or a host is the calmer option.
How to set up a Minecraft server on Linux (Ubuntu) or Mac
On Linux and macOS the steps are the same, only the commands change: install Java, put server.jar in a folder, run it once, accept the EULA, and start it with a shell script. On a headless Ubuntu box, the headless Java package is all you need.
- Install Java. On Ubuntu or Debian:
sudo apt update, thensudo apt install openjdk-25-jdk-headless(use 21 for Minecraft 1.20.5 to 1.21.11). If your release doesn’t package Java 25 yet, install Temurin from adoptium.net instead. On a Mac, use the Temurin installer. - Create the folder and fetch the jar:
mkdir ~/minecraft && cd ~/minecraft, then copy the download link from the Minecraft.net server page and save it asserver.jar. - Write
start.sh:#!/bin/sh cd "$(dirname "$0")" exec java -Xms1G -Xmx2G -jar server.jar --noguiMake it executable with
chmod a+x start.shand run./start.sh. - Accept the EULA (
nano eula.txt, seteula=true) and run./start.shagain. - Open the firewall if you use UFW:
sudo ufw allow 25565/tcp.
On a remote Linux server, run it inside tmux or screen so it keeps running after you log out. Prefer containers? The community itzg/minecraft-server Docker image runs the same thing with EULA: "TRUE" set in docker-compose.yml, port 25565:25565 and a ./data volume for the world.
Set up the basics in server.properties
After the first start, the server writes server.properties next to server.jar. It holds the server’s main settings as key=value lines. Stop the server, edit the file in a plain-text editor, and start it again: changes only apply on restart. These are the ones worth setting on day one.
| Setting | Default | What to set |
|---|---|---|
motd |
A Minecraft Server | The line shown under your server’s name in the list |
max-players |
20 | The most players online at once |
difficulty |
easy | peaceful, easy, normal or hard |
gamemode |
survival | Default mode for new players |
white-list |
true (since 26.3) | Only listed players can join; add friends with whitelist add Name |
online-mode |
true | Leave on: it checks every player owns the game |
level-seed |
blank (random) | A seed, if you want a specific world |
view-distance / simulation-distance |
10 / 10 | Lower them first if the server lags |
Heads-up for 26.3: the whitelist is now on by default. On a fresh 26.3 server, friends get “You are not whitelisted on this server” until you add them, or set white-list=false. And since 1.21.9, PvP, command blocks, Nether access and monster spawning are game rules, not properties: change PvP with /gamerule pvp false. Every setting is explained in the Minecraft server properties guide.
Make yourself operator (admin)
Type op YourName into the server console. That adds you to ops.json and gives you full admin rights in-game: game modes, teleporting, bans, /stop. Operators can join even with the whitelist on. Only op people you trust, since an operator can de-op you too. The full command list is in the Minecraft server commands guide.
How to host a Minecraft server for friends (multiplayer)
How friends connect depends on where they are. On the same home network they type your PC’s local IP. From their own homes they need your public IP, and that only works after you forward TCP 25565 on your router and allow it through your firewall. If you can’t port forward, a VPN tool or a hosted server gets around it.
Friends on the same network
Run ipconfig in Command Prompt and note the IPv4 Address, something like 192.168.1.50. Friends on your Wi-Fi add 192.168.1.50 (plus :port if you changed it) in Multiplayer → Add Server. No port forwarding needed.
Friends over the internet
- Give your PC a fixed local IP (a DHCP reservation in the router), so the forward doesn’t break after a reboot.
- In the router’s admin page, forward port
25565(TCP, or TCP/UDP) to that IP. - If you didn’t accept the firewall prompt, add a rule from an admin Command Prompt:
netsh advfirewall firewall add rule name="Minecraft Server" dir=in action=allow protocol=TCP localport=25565 - Search “what is my IP” and send that address to your friends.
Router menus, CGNAT, “connection refused” and the other ways this goes wrong are covered step by step in how to port forward a Minecraft server. No access to the router? Hamachi, Radmin VPN or ZeroTier put everyone on one virtual LAN, but every player has to install the same tool.
A private server for 2 players
A two-player world is the easiest case: 2 GB of RAM, the default settings, and the whitelist on with just the two of you on it. If you only play when you’re both online, the PC hosting it doesn’t even need to stay on the rest of the time.
How to make a new world on a Minecraft server
The server loads the folder named in level-name (default world). If that folder doesn’t exist, it generates a new world. So to start fresh: stop the server, change level-name to something new (or move the old world folder out as a backup), optionally set level-seed, and start it. Want a hardcore world? Set hardcore=true before that start; it applies to newly created worlds.
Plugins, mods and modpacks (Paper, Fabric, Forge)
The vanilla server.jar runs no plugins or mods. For plugins (EssentialsX, LuckPerms and so on), swap it for Paper, a drop-in replacement with better performance. For mods, run a mod loader server: Fabric, Forge or NeoForge. Every player then needs the same mods and loader version.
- Cobblemon and Pixelmon (Pokémon in Minecraft) are mods, so they need a modded server, not plugins. Cobblemon is published for Fabric, Forge and NeoForge.
- GregTech: New Horizons (GTNH) is a heavy pack: its wiki asks for 6 GB of RAM plus 0.5 GB per extra player early on, and recommends its Java 17+ build.
Step-by-step guides: Fabric server setup and how to make a modded Minecraft server. If you’d rather not install loaders by hand, modded Minecraft server hosting does it from a list.
How much RAM does a Minecraft server need?
For vanilla or Paper with a handful of friends, 2 to 4 GB is plenty; the wiki notes 2 GB covers about 5 players at the default simulation distance. Plugin-heavy servers want around 6 GB, and big Forge or NeoForge modpacks start at 8 to 10 GB. Busy farms matter too: hopper chains, mob farms and observer clocks keep chunks working every tick, and a base full of observers can cost more than another player. The numbers per player count are in the Minecraft server RAM guide, and if the server stutters, the lag fix guide walks through it.
How to make a Minecraft server for free (and 24/7)
Yes. Mojang’s server software is free for Java and Bedrock, and hosting on your own PC costs only electricity. What isn’t free is keeping it online 24/7: a home server is only up while your PC is on and awake, and your upload speed limits how many friends it can carry. Free hosting services exist, but they usually come with limits such as queues, sleeping servers or small RAM caps.
| Option | Cost | Online 24/7? | Good for |
|---|---|---|---|
| Your own PC or laptop | Free (electricity) | Only while it’s on | Small groups who play together |
| Free hosting services | Free, with limits | Usually not | Trying things out |
| Realms (Mojang) | Subscription | Yes | Vanilla only; Java Realms fit the owner plus up to 10 players at once |
| Paid hosting | From a few dollars | Yes | Mods, plugins, bigger groups |
For a sense of paid cost: on GameTeam you pay per GB of RAM, so a 4 GB server is $1.96 a week on the Budget plan ($0.49/GB a week), or $7.96 a month billed monthly ($1.99/GB).
Troubleshooting a new Minecraft server
| Problem | Likely cause | Fix |
|---|---|---|
server.jar not opening when double-clicked |
Java missing, or Windows opens the jar with an archive app | Run it from start.bat; check java -version |
UnsupportedClassVersionError |
Java too old for this Minecraft version | Install the Java version from the table above |
| Window closes right away | EULA not accepted | Set eula=true in eula.txt |
| “Failed to bind to port” | Another program, or a second server, already uses 25565 | Close it, or change server-port |
| Friends get “Connection timed out” | Port not forwarded, firewall, or CGNAT | See the port forwarding guide |
| “You are not whitelisted on this server” | Whitelist on (default since 26.3) | whitelist add Name in the console |
| “Outdated client” or “Outdated server” | Server and player are on different versions | Match versions; see how to update a Minecraft server |
Crash with OutOfMemoryError |
-Xmx too low for the world or mods |
Raise -Xmx, keeping RAM free for the OS |
FAQ
Is making a Minecraft server hard?
No. Making an MC server is mostly following steps: a vanilla server is a download, a two-line script and one edited file. The fiddly part is letting friends in from outside your home, which means router port forwarding. Mods add a loader on top, but the routine stays the same.
Can I host a Minecraft server on my own PC?
Yes, any PC that runs Java and has a couple of GB of RAM to spare can host one, Windows, Linux or Mac. It stays online only as long as the PC does.
Is 1 GB of RAM enough for a Minecraft server?
Only for one or two players in a small, fresh world. Give it 2 GB for a small group and more as the world, the player count or the mod list grows.
How do I start a Minecraft server after the first setup?
Double-click start.bat (Windows) or run ./start.sh (Linux, Mac). Stop it with stop in the console so the world saves.
Can Xbox or mobile players join my server?
Not a plain Java server. Console and phone players are on Bedrock Edition, so they need a Bedrock server, or a Java server running Geyser.
How do I update the server later?
Stop it, back up the folder, replace server.jar with the new version and start it. The full routine, including Paper and modpacks, is in how to update a Minecraft server.
Is hosting a Minecraft server legal?
Yes. Mojang distributes the server software for free so people can run their own; you agree to the Minecraft EULA when you set eula=true, and you follow its rules.
Skip the setup: let the AI run it
If you’d rather spend the evening playing than forwarding ports, GameTeam’s Minecraft server hosting starts the server in seconds with a public address, so there is nothing to forward and no Java to install. The version changer swaps between Vanilla, Paper, Purpur, Forge, NeoForge, Fabric and full modpacks without a rebuild. And the AI copilot, included on every plan, does the admin for you: type “Set max-players to 10, turn PvP off and whitelist Steve and Alex” and it edits server.properties, runs the game rule and whitelist commands, and restarts the server. If it crashes, it reads latest.log and the crash report and tells you which mod or setting caused it. You pay per GB of RAM, from $0.49/GB a week, with unlimited player slots, on Ryzen 9 7950X CPUs with NVMe storage and DDoS protection included. Start with Minecraft server hosting, or keep building your own with the server properties guide next.
