01
Before you start
The Minecraft Java server is a Java program: it runs as well on Windows as on Linux. Windows makes sense if you prefer to manage everything with the mouse, from Remote Desktop. On Linux, follow installing Minecraft on a Linux VPS instead; the guide Linux or Windows VPS compares the two.
- Remote Desktop: everything happens in a session on the VPS. See connecting to a Windows VPS.
- Memory: Windows takes its share before the game. Add up the system's memory and what you will give the server, and keep a margin. The guide how much RAM for a Minecraft server helps you set the latter.
- Processor: the game's main loop runs on a single thread. A fast core matters more than the number of cores.
- Server software: Mojang's official server, without plugins, or Paper, compatible with Bukkit and Spigot plugins and faster. The guide Paper, Purpur or Spigot helps you choose.
02
Install the right Java version
Each Minecraft version requires a minimum Java version. According to the release notes published by Mojang:
- Java 25 from Minecraft 26.1;
- Java 21 from Minecraft 1.20.5, so for versions 1.20.5 to 1.21.11.
For an older version, check its release notes, and for Paper, the Paper website. The game launcher bundles the Microsoft Build of OpenJDK; it is a good choice for the server too. On its download page (Microsoft Learn, Java section), take the Windows x64 installer (.exe) for the version you need: it adds Java to the PATH by itself. Then open a new PowerShell window and check:
java -version
If the command is not found, sign out of Windows, open a new session, then try again.
03
Download the server and accept the EULA
Create the server folder in PowerShell:
New-Item -ItemType Directory -Force C:\Minecraft\serveur
Download the server into this folder: the official server from the Minecraft Server Download page on minecraft.net, or Paper from papermc.io. Save the file as server.jar: the rest of this guide uses that name. Run it a first time:
cd C:\Minecraft\serveur
java -Xms4G -Xmx4G -jar server.jar --nogui
The server stops right away and creates eula.txt. Open it in Notepad and replace eula=false with eula=true: this accepts the Minecraft license agreement (EULA), available on minecraft.net. The server refuses to start as long as this line says false.
The first launch also created server.properties: server name, game mode, player count and port (server-port, 25565 by default). To start from scratch, the guide creating a Minecraft server goes through these settings.
04
The .bat launch file
Rather than typing the command again, create a demarrer.bat file in the server folder (in Notepad, choose "All files" when saving to avoid the .txt extension):
@echo off
cd /d "%~dp0"
java -Xms4G -Xmx4G -jar server.jar --nogui
cd /d "%~dp0": runs the server in the .bat file's folder, wherever it is launched from. Without it, the world and settings files could be created elsewhere.
-Xmx: the maximum memory given to the server (here 4 GB). -Xms sets the starting memory: the command on the official page gives both the same value. Always leave free memory for Windows.
--nogui: no graphical server window, only the console.
Double-click demarrer.bat: the console opens and the world is generated. To stop cleanly, type stop in the console: the server saves the world before shutting down. If the server stops with an error, read logs\latest.log.
05
Firewall, automatic start and backups
Firewall. Minecraft Java uses port 25565 over TCP. In PowerShell run as administrator:
New-NetFirewallRule -DisplayName "Minecraft" -Direction Inbound -Protocol TCP -LocalPort 25565 -Action Allow
If you change server-port, change the rule as well. The guide game server ports explains how to run several servers on the same VPS.
Automatic start. Closing the Remote Desktop window leaves the server running; signing out of Windows (ending the session) stops it, as does a VPS restart after an update. To make it come back on its own, create a scheduled task that runs demarrer.bat at system startup: the method, with the settings not to forget (72-hour limit, priority), is in game server on a Windows VPS. A task shows no console: to send stop, enable RCON in server.properties (enable-rcon=true and a long rcon.password) and use an RCON client on the VPS itself. Never open the RCON port (25575 by default) in the firewall.
Backups. Regularly copy off the VPS the world folders (world, plus world_nether and world_the_end if they exist) and the settings files, with the server stopped or after save-off then save-all; run save-on afterwards. The tools are in backing up a Windows VPS, and Windows update settings in managing Windows Server updates.
06
On CloudFive
CloudFive's Windows VPS, from €8.50 per month, suits this installation:
- Windows Server installed, license included, and Remote Desktop ready on delivery;
- an AMD Ryzen 9 9950X, fast per core, which matters most for Minecraft, with DDR5 memory, NVMe storage and a dedicated IPv4 address;
- basic anti-DDoS protection included, snapshots and a console from the customer area, and a plan change from the VPS page if the server runs short of memory (the difference is prorated).
The servers are in France, monthly with no commitment, with support in French 7 days a week.
Don't want to manage anything? The Minecraft hosting, from €8 per month, is ready in about 30 seconds: Paper, Purpur, Fabric, Forge, NeoForge and Modrinth modpacks in one click, Anti-DDoS Premium with a Minecraft-specific profile, and console, files and backups in the customer area.
07
Frequently asked questions
Which Java version for a Minecraft server on Windows?
Java 25 from Minecraft 26.1, and Java 21 for versions 1.20.5 to 1.21.11, according to Mojang's release notes. The Microsoft Build of OpenJDK, the one bundled with the game launcher, installs on Windows with an installer that adds Java to the PATH.
How do I accept the Minecraft EULA?
Run the server once: it stops and creates the eula.txt file. Replace eula=false with eula=true to accept the Minecraft license agreement, then start the server again.
What goes in a Minecraft server .bat file?
A line that runs the server in its own folder, cd /d "%~dp0", then the java command with -Xms and -Xmx, -jar server.jar and --nogui. -Xmx sets the server's maximum memory: always leave free memory for Windows.
Which port should I open for Minecraft on a Windows VPS?
Port 25565 over TCP, with a New-NetFirewallRule rule in PowerShell run as administrator. If you change server-port in server.properties, change the rule too, and never open the RCON port.
Should I choose a Windows VPS or a Minecraft plan?
The Windows VPS leaves you in control of everything, but installation, Java, updates and backups are up to you. CloudFive's Minecraft plan installs Paper, Purpur, Fabric, Forge, NeoForge or a Modrinth modpack in one click, with Anti-DDoS Premium included.