How do you make a Minecraft server on Windows?
Short answer
Install Java, put the server file in a folder, make a small start file, agree to the EULA, and let Java through Windows Firewall. Or install EnderPanel and press Create.
Doing it yourself
- Install Java from adoptium.net (Eclipse Temurin), the version your Minecraft needs.
- Make a folder and put the server file in it.
- Make a start file: a text file named
start.batcontainingjava -Xmx4G -jar server.jar nogui, then double-click it. - Agree to the EULA in
eula.txt(change false to true) and start it again. - Answer the firewall prompt. When Windows asks about Java, tick both Private and Public networks and choose Allow.
If Windows Firewall blocks it
Open Windows Security, then Firewall & network protection, then Allow an app through firewall. Choose Change settings and tick Private and Public for every Java(TM) Platform SE binary entry. A dismissed prompt here is the most common reason friends can't join a Windows server.
Quick questions
Windows says 'Windows protected your PC'. Is that safe?
That message appears for new apps that aren't yet signed for Windows. For EnderPanel, choose More info, then Run anyway.
Do I need Windows 11?
No. Windows 10 and 11 both work.
How do I keep the server on overnight?
Stop the PC from sleeping while the server runs (EnderPanel can do this), and turn on 'Restore on AC power loss' in the PC's startup settings so it comes back after a power cut.
Back to the website