1. Home
  2. Hosting guides
  3. How to make a Minecraft server

How to make a Minecraft server

You can make a Minecraft server in 3 ways: rent one from a host, run Mojang's free server software on your own computer, or pay for a Realm. This guide gives the steps for each, with the commands, the ports your router needs and the 6 reasons friends can't join.

Prices checked on 10 October 2026 on the hosts' own order pages. All prices include VAT.

A Minecraft server with a RAM stick, a grass block and a map

The short answer

To make a Minecraft server, rent a 4 GB plan from a host, or run the free server software on a computer that stays on. A host installs the server and gives you an address to share, from €3.20 a month for 4 GB. At home you install Java, run the server .jar once, accept the EULA in eula.txt and forward port 25565 so friends outside your network can join.

Compare plans for your first Minecraft server

A first Minecraft server for up to five friends on vanilla needs about 4 GB of RAM, so each row is the plan that fits it best at that host. The plan each host would give a first server for 2 to 5 players on vanilla Java, in Poland (Warsaw), starting with the finder's pick.

The best Minecraft server plan at each host for 2 to 5 players on Java in Poland (Warsaw)
ProviderMemoryCPU & storageMonthly priceOrder page
Lodehost Mini, performance line4 GBRyzen 9 7950X with DDR5, Poland (Warsaw) 2 reserved vCPU, 50 GB Enterprise NVMe€3.18 /mo First 3 months, then €7.95/mo, €6.95 on 24 months 60% off for new customersView plan Lodehost Mini (opens Lodehost)
Astroworld Hosting Mini Performance4 GBRyzen 9 7950X with DDR5, Poland (Warsaw) 2 reserved vCPU, 50 GB Enterprise NVMe€3.18 /mo First 3 months, then €7.95/mo, €6.95 on 24 months 60% off for new customersView plan Astroworld Mini Performance (opens Astroworld Hosting)
Cheapest Minecraft Hosting Starter, budget line4 GBRyzen 9 7950X with DDR5, Poland (Warsaw) 1 shared vCPU, 20 GB NVMe€3.20 /mo Same price on every termView plan CheapestMinecraftHosting Starter (opens Cheapest Minecraft Hosting)

On the Performance lines the large price is what a new customer pays a month at the start: for the first 3 months at both Astroworld Hosting and Lodehost, when you pay monthly. The regular monthly price comes after it, and the last price in each row is the monthly price on the host's longest term.

Compare the same billing term and location before you order.

Every price is taken from the host's own order page. How we compare

What do you need to make a Minecraft server?

To make a Minecraft server you need 3 things: a computer that stays on, the server software for your edition and a way for players to reach it.

  • About 4 GB of RAM

    Up to five players on vanilla need about 4 GB, and about 8 GB with mods. At home that comes on top of what the PC itself uses.

  • The server software

    A Java server is a .jar file that needs Java 25 from Minecraft 26.1 on. A Bedrock server is Bedrock Dedicated Server, for Windows or Ubuntu.

  • A way in for players

    A host gives the server a public address. At home you forward port 25565 for Java or 19132 for Bedrock, or put everyone on one VPN.

A server on your own PC is only online while that PC is on and awake, so turn off sleep mode for the hours your friends play.

3 ways to host a Minecraft server

There are 3 ways to host a Minecraft server: rent one from a hosting company, run the free server software on a computer you own, or pay Mojang for a Realm. They differ in what they cost, who keeps the server online and what you can install on it:

Three ways to host a Minecraft server compared
A hostYour own PCA Realm
What it costsFrom €1.60 a month for 2 GBNothing for the software, only the powerUS$3.99 or US$7.99 a month in the US store
Online while you are awayYes, around the clockOnly while the PC is onYes
Plugins and modsYesYesNo plugins or Java mods
Java and Bedrock in one worldYes, on a crossplay planYes, with GeyserNo
Who sees your home IP addressNobodyEvery player who joinsNobody
SetupChoose a plan, then the software in a panelJava, a start script and port forwardingStart it from the game

Start at home if you want to try it for free, and move to a host when someone wants to play while your PC is off. A Realm suits a small group that wants no setup at all; Minecraft Realms alternatives compares what each Realm costs against a server.

How to make a Minecraft server with a host

To make a Minecraft server with a host, you choose a plan, wait for the server to be delivered and set it up in the host's panel in 6 steps:

  1. Choose the RAM. About 4 GB for up to five friends on vanilla, 8 GB for ten players with plugins. The Minecraft RAM calculator works it out for other groups.
  2. Choose the edition and a location: Java for PC players, Bedrock for phones, Windows and consoles, crossplay for both, in a location close to most of the group.
  3. Order and wait for delivery. Cheapest Minecraft Hosting delivers every plan instantly. A Performance plan in Poland can take up to 12 hours at Astroworld Hosting and Lodehost.
  4. Pick the server software in the panel: Vanilla for the game as it is, Paper for plugins, Fabric, Forge or NeoForge for mods. At Astroworld Hosting and Lodehost you can switch later from the panel, which takes a backup before it changes anything.
  5. Start the server and make yourself an operator by typing op and your player name in the console.
  6. Turn on the whitelist and share the address. Type whitelist on, then whitelist add with each friend's name. All three hosts give the server a free address with a name you pick, so nobody types an IP address and a port.

If you would rather not do the setup yourself, Astroworld Hosting does it for free when you order: it installs plugins, mods, a modpack or your own world within 24 hours.

How to make a Minecraft server on your PC

To make a Minecraft Java server on your PC, you need Java and the free server .jar from minecraft.net, and the setup on Windows takes 7 steps:

  1. Install Java. Minecraft 26.1 and later need Java 25, and versions from 1.20.5 to 1.21.11 need Java 21 or newer. Type java -version in a command prompt to see which one you have.
  2. Download the server .jar from the Minecraft server download page, put it in an empty folder and name it server.jar.
  3. Run it once with java -jar server.jar --nogui from a command prompt in that folder. The server stops right away and writes a file called eula.txt.
  4. Accept the EULA: open eula.txt and change eula=false to eula=true.
  5. Make a start script. Create start.bat in the folder with three lines: @ECHO OFF, java -Xms1024M -Xmx2048M -jar server.jar --nogui and pause. The -Xmx part is the most memory the server may use; change it to -Xmx4G for five players.
  6. Start the server by double-clicking start.bat. Allow Java through the Windows firewall when Windows asks, then join with localhost under Multiplayer and Direct Connection.
  7. Stop it with stop in the server window, so the world is saved before the server closes.

Players on the same Wi-Fi or router join with the PC's internal address, such as 192.168.0.168:25565. Everyone else needs port forwarding or a VPN, both explained below. On a Mac the steps are the same in Terminal, with the start.sh script from the Linux section in place of start.bat.

How to make a Minecraft server on Linux

On Linux, a Minecraft Java server takes the same .jar and EULA steps, with a start.sh script of 3 lines in place of start.bat:

  • #!/bin/sh
  • cd "$(dirname "$0")"
  • exec java -Xms1024M -Xmx2048M -jar server.jar --nogui

Make it executable with chmod a+x start.sh and start it with ./start.sh. A machine without a desktop only needs a headless Java package. To keep the server running after you close the SSH session, start it inside screen or tmux, or as a systemd service.

The Bedrock server runs on Ubuntu 22.04 or later, and Mojang supports no other distribution. Unzip the Linux download into an empty folder and start it with LD_LIBRARY_PATH=. ./bedrock_server.

How to make a Minecraft Bedrock server

To make a Minecraft Bedrock server, download Bedrock Dedicated Server from minecraft.net, unzip it into an empty folder and start it on Windows 10 or later, or on Ubuntu 22.04 or later. Mojang's requirements list 4 GB of RAM and 180 MB to 1 GB of disk space. The steps:

  1. Download the Windows or Linux zip from the Bedrock server download page. Skip the Preview server, which does not work with the full release of the game.
  2. Unzip it into an empty folder outside Downloads. The world and every setting are saved in that folder.
  3. Edit server.properties before the first start: the server name, game mode, difficulty, world name and allow-list=true. The world is created on the first start, and some of its options cannot be changed afterwards.
  4. Start the server: double-click the server program on Windows, or run LD_LIBRARY_PATH=. ./bedrock_server on Linux.
  5. Add players with allowlist add and their gamertag in the console, in double quotes when the gamertag has a space.
  6. Join on port 19132: players on Windows and phones add the server in the Servers tab with your address and port 19132.

Mojang's server software does not run on phones or consoles, so a phone can join a Bedrock server but cannot be one. Xbox, PlayStation and Switch players join a custom server in their own way, which Bedrock server hosting explains.

How to port forward a Minecraft server

To port forward a Minecraft server, add a rule to your router that sends port 25565 for Java, or UDP port 19132 for Bedrock, to the internal IP address of the computer that runs the server. Router menus differ, but the steps are the same on most of them:

  1. Give the server PC a fixed internal IP in the router, so the rule keeps pointing at it after a restart.
  2. Open the router's admin page at its gateway address. On Windows, ipconfig shows it as Default Gateway.
  3. Add a port forwarding rule with the server PC's internal IP and port 25565 as both the internal and the external port. Choose TCP/UDP or Both for Java, and UDP on port 19132 for Bedrock.
  4. Allow the server through the PC's firewall, or the router forwards players to a closed door.
  5. Test the port with an online port checker while the server runs, and search "what is my IP" to find your external address.
  6. Give friends the external IP, with a colon and the port at the end if you changed the port.

Most internet providers give homes a dynamic IP that can change every few days or weeks, so a free dynamic DNS name that follows it saves you sending a new address each time. With two routers behind each other, the rule also has to be on the one connected to the internet.

How to make a Minecraft server public without port forwarding

You can open a Minecraft server to friends without port forwarding in 2 ways: put every player on the same VPN, or run the server at a host, which gives it a public address of its own.

  • A VPN: ZeroTier, Radmin VPN and Hamachi make a private network between the computers that install them, and players connect to the server PC's VPN address as if they were on the same Wi-Fi. Set the network to private and approve each player, or anyone with the network ID can join. Mojang does not support this route.
  • A host: the server gets a public address and an open port, nobody changes your router, and your home IP address stays private.

Only the second way makes a server truly public. A VPN works for friends you invite, not for players who find you on a server list.

Why can't my friends join my Minecraft server?

When your friends can't join your Minecraft server, 1 of 6 things is usually wrong:

  1. The server is off. A home server stops when the PC sleeps or shuts down, or when someone closes the server window.
  2. They used the wrong address. An internal address, such as one that starts with 192.168, only works inside your own network. Friends elsewhere need your external IP.
  3. The port is closed. The router has no forwarding rule, the firewall blocks Java, or a Bedrock rule is set to TCP where it needs UDP.
  4. Their version does not match. A Java player has to pick the server's version in the launcher, and a Bedrock server has to run the version the players have.
  5. The whitelist is on and their name is missing from it, or has a typo.
  6. Your provider shares one public IP between many homes. Port forwarding cannot work then, and a VPN or a host is the way around it.

On a host, the address and the port are set up for you, so it is nearly always the version or the whitelist.

How to make a Minecraft server for free

You can make a Minecraft server for free in 2 ways: run the free server software on a computer you already own, or use a free host such as Aternos, which stops the server when nobody is online. Both work for a few friends who play at the same time. When the world should keep running while you sleep, a paid 2 GB plan costs €1.60 a month; see free Minecraft server hosting for what each free host allows.

How to make a Minecraft server with mods

To make a Minecraft server with mods, install a mod loader server, Fabric, Forge or NeoForge, in place of the vanilla .jar, put the mods in its mods folder and give every player the same loader version and mods. Leave client-only mods, such as shader mods, off the server. A modded server needs about 5 GB of RAM before anyone joins, so plan on 8 GB for a few friends. The steps for each loader are on Fabric, Forge and NeoForge server hosting, and a ready-made pack is easier still: see modpack server hosting.

Before you make a Minecraft server

Before you make a Minecraft server, decide 3 things, because each one is harder to change once the world has grown:

  1. Pick the edition

    Java and Bedrock run different server software and save worlds in different formats. Choose crossplay with Geyser if your group plays both.

  2. Pick the version your players run

    Java players choose the server's version in the launcher. Bedrock players usually update automatically, so a Bedrock server has to stay on the newest release.

  3. Turn on the whitelist first

    Use whitelist on for Java or allow-list=true for Bedrock before you post the address anywhere, so strangers cannot walk in.

Questions about making a Minecraft server

Is it free to make a Minecraft server?

Yes, the server software for Java and Bedrock is free to download from minecraft.net. You pay for the computer it runs on: nothing extra on your own PC apart from power, €1.60 a month for a 2 GB plan at Cheapest Minecraft Hosting, or US$3.99 a month for the smallest Bedrock Realm in the US store.

How long does it take to make a Minecraft server?

At a host, the server is ready right after you pay at Cheapest Minecraft Hosting, and within 12 hours for a Performance plan in Poland at Astroworld Hosting and Lodehost. Then you pick the software and start it. At home, the 7 steps for Java take longest the first time, mostly because of the router.

Is it hard to make a Minecraft server?

No. With a host you choose a plan and the server software and share an address. At home the server itself is 7 steps; the hard part is port forwarding, because every router menu looks different and some internet providers make it impossible.

What port does a Minecraft server use?

A Java server uses port 25565, and a Bedrock server uses UDP port 19132, with 19133 for IPv6. You can change both in server.properties. Java players then type the port after the address, with a colon, and Bedrock players enter it in the port field.

Can I make a Minecraft server on my phone or console?

Not with Mojang's server software, which is made for computers: the Java server needs Java, and Bedrock Dedicated Server runs on Windows and Ubuntu only. From a phone you can rent a server and run it from the host's panel in the browser, or start a Realm in the game.

Can I make a Minecraft server on a Mac?

Yes, for Java: the Java server runs on macOS with the same steps in Terminal and the start.sh script. Bedrock Dedicated Server has no Mac version, so a Bedrock server needs a Windows PC, Ubuntu or a host.

How much RAM should I give my Minecraft server?

About 4 GB for up to five players on vanilla, which is -Xmx4G in the start script. The example of -Xmx2048M gives 2 GB, which two players manage on if they stay near one base. Plugin servers need about 2 GB plus 1 GB for every two players, and modded servers start at about 5 GB.

Can my friends join my Minecraft server without me?

Yes, as long as the server keeps running. A host keeps it online around the clock, and a home server only while your PC is on. A world opened to LAN is different: it closes when you leave the game.

How do I make a Minecraft server address?

Your address is the IP of the computer that runs the server, with the port after it if it is not 25565. To give friends a name instead, point a domain at that IP with an A record, or add an SRV record named _minecraft._tcp to hide a different port. A host gives every server a free name.

Still unsure? Use the Minecraft server finder