Discord
How to create a Minecraft server

How to make a Minecraft server step by step

Setting up your own Minecraft server is one of the most commonly searched topics in the Minecraft community. Below we describe the whole process step by step, from choosing the software and configuring it to inviting your first players. We cover both Java Edition and Bedrock Edition.

Step 1: choose your server software

The first decision is the server engine. Each one has its strengths:

For beginners we recommend Paper: it combines performance with plugin support and is the easiest to configure. Read more about server types in our comparison of server engines.

Step 2: prepare your environment

Java Edition

  1. Install Java: download it from adoptium.net (Temurin JDK), in the version your Minecraft version requires. Check the installation with the java -version command in a terminal.
  2. Create a folder for the server: for example C:\MinecraftServer (Windows) or ~/minecraft-server (Linux/Mac). Keep it in a separate location.
  3. Download server.jar: from the official site (vanilla) or from papermc.io (Paper). Put the file in the folder you created.

Bedrock Edition

  1. Download Bedrock Dedicated Server from minecraft.net.
  2. Extract the ZIP archive into a folder of your choice.
  3. On Windows, run bedrock_server.exe. On Linux: LD_LIBRARY_PATH=. ./bedrock_server.

Step 3: first launch and the EULA

Start a Java server with this command:

java -Xmx4G -Xms4G -jar server.jar nogui

The -Xmx4G and -Xms4G parameters give the server 4 GB of RAM. Adjust that to what you have available:

On the first launch the server generates an eula.txt file and stops. Open the file and change eula=false to eula=true. This accepts the Mojang license; without it the server will not start. Then start the server again.

Step 4: configure server.properties

After the first full start, the server generates a server.properties file. The most important settings:

You will find the full list of server.properties settings in our detailed configuration guide.

Step 5: port forwarding

For players from the internet to join your server, you have to open a port on your router:

  1. Find your local IP address: type ipconfig (Windows) or ifconfig (Linux/Mac) in a terminal. Look for an address like 192.168.x.x.
  2. Log in to your router's admin panel, usually at 192.168.0.1 or 192.168.1.1 in a browser.
  3. Find the Port Forwarding section (it may be called "Virtual Server" or "NAT").
  4. Add a rule: port 25565 (TCP), forwarded to your local IP address.
  5. Save the settings and restart the router if required.

Check your public IP address at whatismyip.com; that is the address you give to players. If your internet provider changes your IP dynamically, consider a DDNS service (for example No-IP or DuckDNS) to get a stable address.

Step 6: invite players

Players join the server by entering your public IP address (and the port, if you changed the default) in the multiplayer menu. For players on the same local network, the local address (192.168.x.x) is enough.

If you set white-list=true, add players with this command:

/whitelist add PlayerName

Alternative: server hosting

If you do not want to keep the server on your own computer (power use, the computer has to be on 24/7, a weak internet connection), consider hosting:

Hosting removes the need for port forwarding and gives you a fixed IP address, DDoS protection and 24/7 availability. You will find the full comparison in the Minecraft hosting guide.

Next steps

Creating a Minecraft server can seem complicated at first, but after your first successful setup the whole process becomes intuitive. Start with Paper and a few basic plugins, invite your friends, and grow the server gradually as your needs grow.

Back to Servers · Minecraft hosting · Server types