Skip to main content
How to Make a Minecraft Server: Java and Bedrock Setup

How to Make a Minecraft Server: Java and Bedrock Setup

Set up a Minecraft Java or Bedrock server, choose the right Java version, and configure ports so friends can join.

Larc
Written by
Larc
Updated
Reading time
2 min
Difficulty
Intermediate
Which Java Version You Need

See more GAMES.GG stories on Google

Advertisement

To make a Minecraft server, download the free server.jar for Minecraft Java Edition from the official minecraft.net server download page, run it with Java, accept the EULA, and open port 25565 so friends can join.

Bedrock players use a different program, the Bedrock Dedicated Server, covered below. If you would rather not run anything on your own PC, a paid Minecraft Realms subscription hosts a private world for you.

Which Java Version You Need

The server jar only starts on the Java version its Minecraft release was built for. Check yours by typing java -version in Command Prompt.

Minecraft versionJava needed
26.1 and laterJava 25
1.20.5 to 1.21.xJava 21
1.18 to 1.20.4Java 17

A server from the 26.x releases will not start on Java 21, so update Java before you run a current server jar.

Set Up a Minecraft Java Server on Windows

Create the Server and Start the World

  1. Make a new folder for the server. Keep it outside your OneDrive folder.
  2. Download the Minecraft server jar. Get it from the Java Edition server page on minecraft.net, rename it server.jar, and put it in the folder.
  3. Create a start file. In Notepad, type java -Xms1G -Xmx2G -jar server.jar --nogui, then save it as start.bat in the same folder with the file type set to All files.
  4. Run start.bat once. The window closes after a few seconds and leaves an eula.txt file behind.
  5. Accept the EULA. Open eula.txt, change eula=false to eula=true, and save.
  6. Run start.bat again. The server builds the world. If Windows asks about OpenJDK Platform binary, allow it through the firewall.
  7. Join your own server. In Minecraft, open Multiplayer, pick Direct Connection, and enter localhost.

Set Memory and Use Server Commands

-Xmx2G caps the server at 2 GB of memory, which is a sensible start for a small home server with around five players. Raise it if the world lags with more people on.

To stop the server, type stop in its window. Commands typed there skip the slash, so op YourName gives you operator rights.

Let Friends Join Your Server

  • Same house or Wi-Fi: Run ipconfig, note your IPv4 Address, and have friends enter it in Direct Connection.
  • Anywhere else: Log in to your router using the Default Gateway address from ipconfig. Add a port forwarding rule for port 25565 to your IPv4 address with the protocol set to TCP/UDP or Both, then give friends your public IP.

Mods and Plugins

For modded play, the same steps work with a Fabric or Forge server instead of the vanilla jar, and Paper is the usual choice for plugins. The best Minecraft mods list is a good place to pick what to install.

Make a Minecraft Bedrock Server

Download and Run Bedrock Dedicated Server

  1. Download Bedrock Dedicated Server. It is on the Bedrock server page of minecraft.net and runs on Windows 10 or Windows Server 2016 and later, or Ubuntu.
  2. Unzip it into its own folder. Keep every file together.
  3. Run bedrock_server.exe. The first launch creates the world and a server.properties file you can edit.
  4. Open port 19132. Bedrock uses UDP, on port 19132 for IPv4 and 19133 for IPv6. Forward 19132 UDP on your router for players outside your network.
  5. Add players to the allowlist. allowlist.json holds the names allowed in.

Connecting From Consoles

Xbox, PlayStation, and Nintendo Switch players can only reach a Bedrock Dedicated Server over a LAN connection or a custom DNS, so a server built for console friends often works better as a Realm. Once everyone is in, the first night survival guide helps a new group get started.

Advertisement