How to Make a Minecraft Server: Java and Bedrock Setup Guide

Written by: Editor In Chief
Published on:

Making a Minecraft server lets you host a persistent multiplayer world and control its settings, but the steps depend on whether you play Java Edition or Bedrock Edition.

This guide explains the options, setup basics, and network details that can keep friends from joining.

Choose how you want to host

There are three common ways to play together: host a server on your own computer, rent a server from a hosting provider, or use Minecraft Realms.

A self-hosted server gives you control over files, settings, and plugins, but the host computer and internet connection need to stay available while people play.

Renting a server usually avoids router configuration and keeps the world online independently of your PC, though it costs money.

Realms is an official subscription option for a private world and handles much of the server maintenance for you.

Before choosing, check which edition everyone owns.

Java Edition players connect to Java servers; Bedrock players connect to Bedrock servers.

Java and Bedrock players generally cannot join the same server through the standard server setup, and the server version must be compatible with the players’ game versions.

Console multiplayer also has platform and account requirements, so confirm that your device allows external server connections before planning around a self-hosted server.

How to make a Java Edition server on your computer

The official Java server software is a downloadable JAR file.

Minecraft’s official Java server download page provides the current server file and launch guidance.

You need a computer that can run a compatible Java runtime, enough available memory for the world and players, and permission to configure your local firewall or router if friends will connect over the internet.

  1. Create a server folder. Make a dedicated folder somewhere easy to find, such as MinecraftServer.

    Keep the server JAR and its generated world and configuration files together.

  2. Download the server JAR. Get it from the official Minecraft download page and place it in the folder.

    Keep the original filename or note it, because the launch command must match it.

  3. Check Java. Open a terminal or Command Prompt and run java -version.

    If the command is missing or reports an incompatible version, install a Java runtime supported by the server release and ensure it is available from the command line.

  4. Start the server once. Open the terminal in the server folder and run java -Xms1G -Xmx2G -jar server.jar nogui, replacing server.jar with the downloaded filename.

    The memory values are examples; adjust them to your machine and leave memory for the operating system and game client.

  5. Accept the EULA if you agree. The first start creates files and may stop with a message about the EULA.

    Open eula.txt, read the agreement, and change eula=false to eula=true only if you accept it.

    Start the server again.

  6. Configure the world. After the first successful startup, stop the server cleanly from its console with stop.

    Edit server.properties in a text editor to adjust settings such as the world name, game mode, difficulty, maximum players, and whitelist.

    Save the file and restart the server for changes to take effect.

Use the whitelist if you want only invited players to join.

Add each player’s Java profile name through the server console or its operator commands, and give operator status only to people who need administrative powers.

Keep server software and any plugins or mods compatible with the exact Minecraft version you are running.

Let friends connect from outside your home

Players on the same home network can often connect using the host computer’s local IP address.

Friends connecting over the internet usually need the host’s public IP address, and the router must forward the server’s port to the computer running Minecraft.

For Java Edition the default server port is TCP 25565, unless you changed it in the properties file.

  • Reserve or assign a stable local IP address to the host computer in your router settings, so the port-forward rule does not point to an outdated address later.
  • Create a router port-forward rule for the Java server’s port and the host computer’s local IP.

    Router menus vary by manufacturer and model.

  • Allow the Java server through the computer’s firewall when prompted, or add a rule for the server port.

    Avoid turning off the firewall entirely.

  • Send the public server address only to people you trust.

    A public IP can expose information about your home internet connection, so do not post it publicly.

If your internet provider uses carrier-grade NAT, or your router does not have a public IP address, ordinary port forwarding may not work.

In that case, ask your provider about a public IP or use a reputable hosted server or Realms instead of repeatedly changing firewall settings.

How to make a Bedrock Edition dedicated server

Bedrock Edition uses separate dedicated server software.

Download the supported package from Minecraft’s official server download page, which distinguishes Java and Bedrock downloads.

The official Bedrock package supports specific Windows and Linux environments; check the current requirements on the download page before installing.

The Java JAR does not host a Bedrock world.

  1. Download and extract the Bedrock server package to its own folder on a supported computer.
  2. Run the server executable for your operating system.

    The first launch creates configuration files and a world directory.

  3. Stop the server and edit server.properties to set values such as the world name, game mode, difficulty, and player limit.
  4. Start it again and allow the executable through the host firewall.

    If players are connecting from outside your local network, configure the router for the Bedrock server’s default UDP ports, commonly 19132 for IPv4 and 19133 for IPv6; check the current configuration and your chosen port before creating rules.

  5. Give players the server address and port.

    On a device that supports adding external servers, they can enter those details in Minecraft’s server menu.

Bedrock support differs by device.

Windows and mobile versions offer server-list controls, while console editions may not provide the same way to enter an arbitrary external address.

Check the current Minecraft and console guidance for your platform instead of assuming that every Bedrock device can add a custom server directly.

Test the server and invite players

Keep the server process running while people play.

First, test locally: on the host computer, connect to localhost for Java, or use the host’s local address for Bedrock.

This confirms the server has started before you troubleshoot the router.

Then test from another device on the same network.

If that works, have a trusted friend try the public address from a different internet connection.

For Java Edition, players open Multiplayer, choose Direct Connection or Add Server, and enter the address.

A non-default Java port is written after a colon, such as example-address:25570.

In Bedrock, players use the server entry screen available on their device and enter the address and port separately if those fields are shown.

Minecraft’s official Java multiplayer connection guide describes adding an address and joining from the server list.

Troubleshoot common Minecraft server problems

  • “Connection refused” or server not found: Confirm the server is running, the address is spelled correctly, and everyone is using the matching edition and a compatible game version.
  • Friends outside your network cannot join: Recheck the server’s port, router forwarding destination, firewall rule, and whether the server is bound to the expected network interface.

    Verify that your internet provider has not placed your connection behind carrier-grade NAT.

  • The server closes immediately: Read the terminal output for a Java runtime error, missing file, or memory problem.

    Check the JAR name in the launch command and confirm Java is installed and accessible.

  • Players get a version or mod mismatch: Align the server, client, and mods or plugins to compatible versions.

    For a first setup, test with a clean, unmodified server before adding extensions.

  • The world or settings seem unchanged: Stop the server before editing files, make sure you changed the properties file in the active server folder, then restart it.

    Back up the world directory before making major changes.

Once a friend can connect from a separate network, turn on the whitelist if the world is private, save a backup of the world folder, and note the exact server version and port for the next time you start it.