How to Make a Minecraft Server: Hosting Your Own for Friends on Java and Bedrock
By the MinecraftRanking team · · Live numbers from our own server pings
The real steps to start your own Minecraft server: the official server file, the EULA, port forwarding, hosting companies and Realms, plus when joining an existing server makes more sense.
Want a world where you and your friends make the rules? You can run your own Minecraft server, and the basic version takes less than half an hour. This guide covers the three real options, the steps for hosting one yourself on Java and Bedrock, and the mistakes that stop most first servers from working.
If you only want to play with other people, you may not need your own server at all. Our list tracks 25,385 servers, and 8,820 answered our latest pings. Skip to the end if that sounds easier.
Your three options
- Realms: Mojang's own paid subscription. It is the easiest choice, runs all the time and works on consoles, but you get far fewer settings and no plugins. Read Realms vs servers for the full comparison.
- Self-hosting: run the free official server software on your own PC. It costs nothing extra, but the world is only online while your computer is on, and you have to open a port on your router.
- A hosting company: rent a server that stays online around the clock. You get a control panel, and plugins or mods are usually one click away. Prices depend mostly on how much memory you rent.
For two or three friends on a weekend, Realms or self-hosting is plenty. For a public server with plugins, a host is the normal choice.
How to host a Java server yourself
- Install Java. The server runs on Java, and new Minecraft releases need a recent Java version. If the server will not start, an old Java install is a common reason.
- Download the server file. Get the official Java Edition server from the download page on minecraft.net. It is a single
.jarfile. Put it in its own empty folder, because it creates many files around it. - Run it once. Start it from a command line in that folder, for example
java -Xmx2G -Xms2G -jar server.jar nogui. The-Xmxpart sets how much memory it can use. On the first run it stops almost straight away and creates a file calledeula.txt. - Accept the EULA. Read the Minecraft End User License Agreement, then open
eula.txt, changeeula=falsetoeula=trueand save it. - Start it again. This time it generates a world and keeps running. Type
stopin its window when you want to shut it down safely. - Join it yourself. In Multiplayer, add a server with the address
localhost. Anyone on the same home network can use your computer's local IP address instead.
Letting friends join from outside your house
This is the step where most first servers fail. Your router blocks incoming connections by default, so friends elsewhere get "Connection timed out".
- Port forwarding: in your router settings, forward TCP port
25565to the computer running the server. Every router's menu looks different, so search for your router model plus "port forwarding". - Firewall: allow Java through your computer's firewall, or the forwarded port will still be blocked.
- Share your public IP: friends connect with your public IP address, not the local one. It can change when your router restarts, so check it again if joining suddenly stops working.
Some internet providers do not let you open ports at all. If forwarding is set up correctly and nobody can still connect, a hosting company or Realms is the simplest way around it. Our guide to fixing "Can't connect to server" explains what each error means.
Bedrock: the Bedrock Dedicated Server
Bedrock players need different software: the Bedrock Dedicated Server, which Mojang also offers for download on minecraft.net for Windows and Linux. The steps are similar. Unzip it into a folder, run it, and forward UDP port 19132 instead of 25565.
One catch: consoles cannot type in a custom server address from the Servers tab. Friends on Xbox, PlayStation or Switch will find Realms much easier, while players on Windows, phones and tablets can add your address directly.
Settings worth changing first
Most settings live in server.properties, a plain text file in the server folder. Stop the server before editing it.
- Whitelist: turn on
white-listso only people you add can join, then add them with thewhitelist addcommand. Our guide to whitelisted servers explains how this works. - Difficulty and game mode: set
difficultyandgamemodeto what your group wants. - Operators: use the
opcommand on your own name so you can run admin commands in game. Only op people you fully trust. - Backups: copy the world folder regularly. It is the only thing standing between you and a lost world.
Plugins and mods
The official server software runs vanilla Minecraft only. Land claims, shops, ranks and the commands you see on public servers come from plugins, which need plugin-ready server software instead of the official jar. Mods need a mod loader on both the server and every player's game. Start vanilla, get it working, then add one thing at a time so you know what broke if something does.
Or skip the setup and join a server
Running a server means you are the admin, the tech support and the backup plan. If what you really want is a busy world with other players, a public server already has all of that. SMP servers are the closest thing to a friends' world: our list has 6,674 of them, with 193,756 players on them right now. Browse the best SMP servers, the best survival servers or every SMP server on our list, and read how to find a good server first.
Our pick
Where to play: EvadeCraft
If you would rather play than run the server yourself, EvadeCraft is our pick. It does not run SMP, but it gives you a full team-based world with no setup at all.
mc.evadecraft.com Vote- Monthly payouts: $1,550 in prizes every month: $550 in real cash plus $1,000 in store credit, for Factions, Skyblock, Prison, KitPvP and Survival players.
- Monthly Factions maps: land claims, base raids, KOTH, Outposts and Warden fights, with each map ending on the last day of the month at 8 PM Eastern.
- Skyblock with your friends: generators, missions and island upgrades.
- More on the same network: KitPvP and Farm King.
- Easy to join: Java and Bedrock (1.10 - 26.3), no mods or downloads.
- Active: 1,172 players on average over the last 7 days.
Player numbers in this article come from our own server pings.
More reading: Minecraft Realms vs servers · How to join a Minecraft server · What is a Minecraft SMP?
Frequently asked questions
Is it free to make a Minecraft server?
Running the official server software on your own computer costs nothing beyond your electricity and internet. Each player still needs their own copy of Minecraft. Paid options, such as Realms or a hosting company, cost a monthly fee but stay online when your computer is off.
Why does my Minecraft server close as soon as I start it?
The most common reason is that the EULA has not been accepted. Open eula.txt in the server folder, change eula=false to eula=true after reading the agreement, save it and start the server again. A Java version that is too old for the server release is the next most common cause.
Can Bedrock players join a Java server?
Not with the official Java server alone, because Java and Bedrock use different network protocols. Many public servers add a bridge plugin so both editions can join, but a simple home server is usually one edition or the other.