Beginner 20 min — Run your own Minecraft Java Edition server on Windows 10 or 11 so you and your friends can play together.
Before you start, make sure you have the following:
You do not need any Linux knowledge. Everything in this guide happens on Windows using tools you can click on or type into Command Prompt.
Minecraft servers need Java to run. We'll install Adoptium Temurin 21, which is a free, reliable version of Java used by most server hosts.
.msi installer..msi file. During installation, make sure the option "Add to PATH" is enabled (it should be by default). This lets you run Java from Command Prompt.To verify it installed correctly, open Command Prompt (press Win + R, type cmd, press Enter) and run:
java -version
You should see output that includes openjdk version "21 followed by a version number. If you see 'java' is not recognized, restart your computer and try again — the PATH change sometimes needs a reboot to take effect.
We'll use Paper instead of the vanilla Minecraft server. Paper is a drop-in replacement that runs significantly faster, uses less RAM, and supports plugins if you ever want them. Your players won't notice any difference — it's the same Minecraft.
paper-1.21.4-123.jar.C:\MinecraftServer.jar file into that folder.paper.jar to keep commands simple.Your folder should now contain one file: C:\MinecraftServer\paper.jar
The first time you start the server, it will create its configuration files and then stop immediately. This is normal — it needs you to accept the Minecraft EULA first.
Open Command Prompt and navigate to your server folder:
cd C:\MinecraftServer
Now start the server:
java -Xmx2G -Xms2G -jar paper.jar
Here's what the flags mean:
-Xmx2G — maximum RAM the server can use (2 gigabytes)-Xms2G — starting RAM allocation (2 gigabytes)-jar paper.jar — tells Java to run the Paper server fileThe server will generate some files, print a message about the EULA, and stop. You'll see something like: You need to agree to the EULA in order to run the server.
Open the file eula.txt that appeared in your server folder. You can double-click it to open in Notepad. Change this line:
eula=false
To:
eula=true
Save and close the file.
After the first run, a file called server.properties appeared in your server folder. Open it with Notepad to customize your server. Here are the most important settings:
# The port players connect on (default is fine for most people)
server-port=25565
# The message shown in the server list
motd=My Minecraft Server
# Maximum number of players at once
max-players=10
# Game difficulty: peaceful, easy, normal, hard
difficulty=normal
# Default game mode: survival, creative, adventure, spectator
gamemode=survival
# Only allow players you've approved (true/false)
white-list=false
# Verifies players own Minecraft (KEEP THIS true)
online-mode=true
A few tips:
online-mode=true unless you have a specific reason to change it. This verifies that players actually own Minecraft and prevents unauthorized access.white-list is great if you only want specific friends to join. After enabling it, you can add players in the server console with whitelist add PlayerName.Go back to Command Prompt (make sure you're still in C:\MinecraftServer) and run the same command again:
java -Xmx2G -Xms2G -jar paper.jar
This time the server will fully start. You'll see it loading chunks and preparing the world. When you see a line like:
[Server thread/INFO]: Done (12.345s)! For help, type "help"
Your server is running. This Command Prompt window is now the server console — you can type commands here like op YourName to give yourself operator privileges.
To make starting easier, let's create a batch file. Open Notepad, paste the following, and save it as start.bat in your server folder:
@echo off
title Minecraft Server
java -Xmx2G -Xms2G -jar paper.jar
pause
Now you can double-click start.bat to start your server instead of typing the command every time. The pause at the end keeps the window open if the server crashes, so you can read the error message.
With the server running, open Minecraft Java Edition:
localhost in the Server Address boxYou should connect immediately and spawn into your new world. If it works, congratulations — your server is running!
Anyone on the same Wi-Fi or home network can also connect by using your computer's local IP address instead of localhost. To find your local IP, open Command Prompt and type:
ipconfig
Look for the IPv4 Address under your active network adapter (usually Wi-Fi or Ethernet). It will look something like 192.168.1.50. Other people on your home network can use that address to connect.
If you want friends who aren't on your home Wi-Fi to join, you need to open a port on your router so traffic from the internet can reach your server. This is called port forwarding.
ipconfig. Note the IPv4 Address (e.g. 192.168.1.50) and the Default Gateway (e.g. 192.168.1.1).
192.168.1.1 or 192.168.0.1). You'll need your router's admin password. This is often printed on a sticker on the router itself, or it may be the default admin/admin or admin/password.
192.168.1.50)Now find your public IP address by visiting whatismyip.com. Share this IP with your friends — they enter it in the Minecraft Server Address box to connect.
Important: Your public IP may change if your ISP uses dynamic addresses. If your friends suddenly can't connect, check if your IP changed. For a permanent solution, look into a free dynamic DNS service like No-IP.
Windows Firewall may block incoming connections to your server. If friends can't connect even after port forwarding, you need to allow Java through the firewall:
Win + I)C:\Program Files\Eclipse Adoptium\jdk-21...\bin\javaw.exeAlternatively, if Windows shows a firewall popup the first time you start the server, click "Allow access" on both Private and Public networks.
Your server only runs while the Command Prompt window (or start.bat) is open. If you close it or shut down your PC, the server stops and nobody can connect.
The start.bat file we created earlier is the simplest approach — just double-click it whenever you want the server up. If you want the server to start automatically when your computer boots:
Win + R, type taskschd.msc, and press Enter to open Task Scheduler.Minecraft Server and click Next.start.bat file in C:\MinecraftServer.C:\MinecraftServer.Now the server will launch every time your PC boots. Remember that your computer must be on and awake for the server to be reachable.
Your entire world is stored in the world folder inside C:\MinecraftServer. If something goes wrong — a corrupted chunk, an accidental lava disaster, or a failed update — you'll want a backup to restore from.
The simplest backup method:
stop in the server console and press Enter).world folder to another location (an external drive, a different folder, or cloud storage).world-backup-2026-04-01.Do this before every major update and at least once a week if your server is active. If you also have the Nether and End dimensions, back up world_nether and world_the_end as well.
Desert Forge Backup handles Minecraft world backups on a schedule with AES-256 encryption and zero egress fees. Never lose a build again.
Set up Backup-Xmx2G to -Xmx4G in your start command (only if your PC has enough free RAM). You can also reduce view-distance in server.properties from the default 10 to 7 or 8. Fewer players and fewer loaded chunks means less lag.logs/latest.log file in your server folder for error details.server.properties.Desert Forge Game Hosting gives you a Minecraft server that's always online and DDoS protected — from $2/week. No setup, no port forwarding, no firewall headaches.
Get a server