Getting started
How to make a Minecraft server on your own PC
Running your own Minecraft server sounds like a job for someone with a rack of machines in a basement. It isn’t. Any reasonably recent Windows PC can host a world for a handful of friends, and the whole thing costs nothing beyond the electricity.
This guide walks through what a server actually is, what you need before you start, and the steps in order. It covers the manual way first, so you know what’s going on underneath, and then the shortcut.
What a server really is
Strip away the mystery and a Minecraft server is a program, nothing more. It keeps the world, notices who’s connected, and settles arguments such as two players hitting the same zombie. Your game is only the screen.
You’ve already used one without knowing. A single-player world makes the game start a tiny server inside itself. A dedicated server is that same thing running alone, minus the game window, so it can stay up while you’re off doing something else.
What you need first
Before you start, line up a computer that can stay on while people play, enough memory, and Java.
- A PC with 8 GB of RAM or more. The server usually asks for 2 to 4 GB, and Windows plus your own game want the rest.
- A reasonably quick processor. Minecraft’s server leans on one core far more than the others, so a high clock speed matters more than a high core count.
- Java. Each Minecraft release wants a particular Java version, newer releases want newer ones, and the wrong one stops the server on the very first line.
You also need a copy of the game if you want to play on it, but the server software itself is free to download from Mojang.
The manual way, step by step
Make a new empty folder somewhere you’ll remember, such as one called “my-server” on your desktop. Everything the server creates will live in there, so keep it tidy.
Grab the server file for your Minecraft version from Mojang’s official download page and drop it into that folder. Then open a command window there and run something like this, with your real file name in place of server.jar:
java -Xmx2G -Xms2G -jar server.jar noguiThe first run stops almost at once and creates a file called eula.txt. Open it, change “eula=false” to “eula=true”, and save. That’s you agreeing to Mojang’s terms for running a server. Start it again and it builds the world, which takes a minute.
When you see a line saying the server is done, it’s ready. In the game, choose Multiplayer, add a server, and type “localhost” as the address. You’re in.
Where beginners get stuck
The command window closes by itself. Usually that means Java isn’t installed, or it’s the wrong version. Run the command from an open window so you can read the message before it vanishes.
A friend can’t connect. This one is by far the most common, and it isn’t about the server at all. Your router sits between the internet and your PC and blocks incoming connections by default. We’ve written separate guides on port forwarding and on letting friends in without touching the router, because it deserves more space than a paragraph.
It runs, but it stutters. Look at memory and view distance before you blame the hardware. A server given too little RAM freezes in bursts, and a high view distance multiplies the work the server does for every player.
The shortcut
Everything above is doable, and it’s worth doing once to see how the pieces fit. After that it’s a lot of repeating yourself: another folder, another command, another eula file, another round of editing a settings file in Notepad.
Mineshire does those steps for you. You pick the software and the Minecraft version, and it downloads the server, fetches the right Java, accepts the setup, and starts it. You get a console, a player list and the settings in one window. It’s free and runs on Windows, macOS and Linux.
Whichever way you go, start small. One world, a few friends, default settings. You can add plugins, tune the view distance and move to better hardware later, and none of that needs to be figured out on day one.
Quick answers
Can I play on the same PC that hosts the server? Yes, plenty of people do. Both will share the processor and the memory, though, so with 8 GB of RAM it gets tight and with 16 GB it’s comfortable.
Do my friends need to buy anything? They need their own copy of Minecraft Java Edition to join, since the server checks accounts by default. You don’t pay for the server software.
Does it cost anything to run? Only the electricity your PC uses while it’s on, and the internet you’re already paying for.