Updated: 18 October 2026 · Applies to: Minecraft: Java Edition server 26.3 (Java 25) and Bedrock Dedicated Server 1.26.52.3 on Windows 10, 11 and Windows Server; WinSW 2.12.0

The dedicated server software for Windows is free from Mojang. For Java Edition it is the Minecraft: Java Edition server, a server.jar file that needs Java 25 since version 26.1 (older guides with Java 17 or 21 fail with an UnsupportedClassVersionError). For Bedrock Edition (consoles, phones and the Windows Bedrock app) it is the separate Bedrock Dedicated Server, a zip with bedrock_server.exe. To run the Java server as a Windows service, so it starts before anyone signs in, wrap it with WinSW (step 7). Paper and Fabric are alternatives to the official server: see Minecraft server software compared.

What you need

  • At least 2 GB of free RAM for the server (about right for up to 5 players; more for more players or mods).
  • For friends outside your home: access to your router's settings to forward a port.

1. Install Java 25

In PowerShell or Command Prompt:

winget install EclipseAdoptium.Temurin.25.JRE

On a Windows on ARM PC, use winget install Microsoft.OpenJDK.25 (it has an arm64 installer). Close and reopen the window and run java -version: it should report version 25. Mojang's metadata for 26.3 lists Java 25 as the required version.

2. Download the server

  1. Create a folder, for example C:\minecraft-server.
  2. Download the server from minecraft.net › Download › Minecraft: Java Edition Server, save it in the folder and rename it to server.jar.

3. First start and the EULA

  1. Create start.bat in the folder with Notepad (choose "All files" when saving):
    @echo off
    java -Xms1G -Xmx2G -jar server.jar nogui
    pause
  2. Double-click start.bat. The first run creates eula.txt and server.properties and stops with:
    [10:52:37] [ServerMain/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
  3. In eula.txt, change eula=false to eula=true (this accepts the Minecraft EULA) and save.
  4. Run start.bat again. The server is ready when it prints Done (...)! For help, type "help".
  5. When Windows Defender Firewall asks about OpenJDK Platform binary, allow it on Private networks.

-Xmx2G is the most memory the server may use; see how to give a Minecraft server more RAM.

4. Let your friends in: the allowlist

New 26.3 servers start with white-list=true in server.properties, so nobody can join until you add them. In the server window:

whitelist add YourName
whitelist add FriendName
op YourName

More commands: Minecraft server commands.

5. Connect

  • Same PC: Multiplayer › Add Server, address localhost.
  • Home network: the PC's IPv4 address from ipconfig, for example 192.168.1.20.
  • From outside: forward TCP 25565 on your router to that address (give the PC a fixed local IP) and share your public IP. Details: open port 25565 and set up port forwarding.

If the WAN address on your router differs from your public IP, or starts with 100.64 to 100.127, your provider uses carrier-grade NAT and port forwarding cannot work from home. If the firewall prompt did not appear, run in PowerShell as administrator:

New-NetFirewallRule -DisplayName "Minecraft Server" -Direction Inbound -Protocol TCP -LocalPort 25565 -Action Allow -Profile Private

6. Settings, stopping and backups

  • Edit server.properties (max-players, difficulty, motd) while the server is stopped. PvP and similar options are game rules (/gamerule).
  • Stop the server by typing stop, not by closing the window.
  • Back up the world folder regularly, with the server stopped.

7. Start the server automatically or run it as a service

At sign-in (simplest): press Win+R, type shell:startup and put a shortcut to start.bat in that folder. According to Microsoft, programs there start when you sign in. You keep the console window for commands.

As a Windows service (starts at boot, no sign-in needed). Java needs a service wrapper for this; WinSW is an open source one. According to its documentation:

  1. Download WinSW-x64.exe (version 2.12.0) from the WinSW releases page on GitHub, put it in C:\minecraft-server and rename it to minecraft-service.exe.
  2. Find the full path of Java with where java.
  3. Create minecraft-service.xml next to it (same name as the exe). Replace the Java path below, which is only an example, with the one where java printed:
    <service>
      <id>minecraft</id>
      <name>Minecraft Server</name>
      <description>Minecraft Java Edition server</description>
      <executable>C:\Program Files\Eclipse Adoptium\jre-25.0.4.7-hotspot\bin\java.exe</executable>
      <arguments>-Xms1G -Xmx2G -jar server.jar nogui</arguments>
      <workingdirectory>C:\minecraft-server</workingdirectory>
      <stoptimeout>60sec</stoptimeout>
      <onfailure action="restart" delay="10 sec"/>
      <log mode="roll"></log>
    </service>
  4. In PowerShell as administrator, inside the folder: .\minecraft-service.exe install, then .\minecraft-service.exe start. Use stop, restart and status the same way, or the Services app.

On stop, WinSW sends Ctrl+C and waits (15 seconds by default, 60 with the setting above) before it kills the process. Java treats Ctrl+C as an interrupt and runs its shutdown hooks; in our lab test on Linux, the 26.3 server rewrote level.dat and exited about 4 seconds after that signal. Do not add -Xrs to the arguments: according to Oracle it stops Java from handling Ctrl+C. The service has no console, so give commands in game as an operator. The service runs as LocalSystem by default. On Linux, a systemd unit does the same job: see how to set up a Minecraft server on Linux.

8. Bedrock Dedicated Server on Windows

According to the bedrock_server_how_to.html file in the download, the Windows version needs Windows 10 version 1703 or later or Windows Server 2016 or later, and Mojang recommends a 64-bit Intel or AMD machine with at least 2 cores and 1 GB of RAM. Unzip it into an empty folder and run bedrock_server.exe.

  • Its server.properties also ships with allow-list=true: add players by Gamertag with allowlist add "Gamer Tag".
  • Version 1.26 uses transport=nethernet by default: TCP 19132 for the connection handshake, then UDP ports that the server picks from the system's free range unless you fix them with server-udp-ports. The old UDP 19132/19133 setup applies only with transport=raknet. A firewall rule for the program is simplest:
    New-NetFirewallRule -DisplayName "Bedrock Server" -Direction Inbound -Program "C:\bedrock-server\bedrock_server.exe" -Action Allow -Profile Private

The Bedrock section of the Linux guide above covers these ports in more detail.

When a home PC is not enough

A home server is only online while the PC is on, and your upload speed limits the players. To compare Realms, a PC, a VPS and a dedicated server, see how to run a Minecraft server. Our Minecraft VPS runs Java or Bedrock with DDoS protection, and on request by Technical Support ticket we install Vanilla, Paper or Bedrock with standard settings for free and add you as an operator.

Official documentation: Minecraft: Java Edition server download, WinSW and New-NetFirewallRule.

Related services

Windows VPS

Windows Server on VPS Pro and Elite, installed by our engineers (evaluation edition; a licence is extra).

Server management

on-demand administration, hardening, migrations and monitoring.

Was this answer helpful?

Still stuck? Open a ticket