How to Set Up a Minecraft Server on Windows Server
Running a Minecraft server on Windows Server can be ideal if you’re more comfortable using a graphical interface. This step-by-step guide shows you how to install and configure a Minecraft server on any version of Windows Server.
Prerequisites: Ensure you have access to your Windows Server through RDP (Remote Desktop Protocol) and that Java is installed before proceeding.
Step 1: Prepare a Directory and Get Minecraft Server Files
You’ll first need a designated folder to store your Minecraft server’s data. A good location might be a sub-directory on your Desktop, such as C:\Users\Administrator\Desktop\Minecraft
.
Download the Minecraft server software from the official website. Use the standard Minecraft server version, which is typically listed at the bottom of the page.
If you’re accessing your Windows Server via the default Remote Desktop application on another Windows device, you can simply copy and paste the files. For Mac users using Microsoft’s official Remote Desktop client, you must activate folder redirection. This option creates a shared folder, making it possible to transfer files between your computer and the server.
Move the downloaded .jar
file into your Minecraft directory.
Step 2: Set Up a start.bat Script
Using a .bat
file simplifies the process of launching your server. Each time you open the .bat
file, Windows will run the included command to start Minecraft properly. Here’s a sample .bat
script:
java -Xms1024M -Xmx1024M -jar name.jar -o true
PAUSE
Let’s break down the elements you’ll need to customize:
- -Xms1024M – This sets the minimum memory your server will use. Replace
1024M
with your desired amount, usingM
for megabytes orG
for gigabytes. For instance,1M
allocates 1 MB of RAM, and1G
assigns 1 GB. - -Xmx1024M – This defines the maximum memory allocation for the server. The format is the same as for
-Xms
. - name.jar – Replace this with the exact filename of the server’s
.jar
file you downloaded earlier.
Place both your .jar
and .bat
files into the same directory (e.g., C:\Users\Administrator\Desktop\Minecraft
). You can name your batch file anything—start.bat
is a common choice. Simply double-click it to launch your Minecraft server.
Step 3: Agree to the EULA Terms
To proceed, you must indicate that you accept the End User License Agreement. Open the eula.txt
file and modify the line from eula=false
to eula=true
. This action confirms your acceptance of the EULA terms.
Step 4: Configure Server Port and Additional Settings
Once you’ve accepted the EULA by updating the eula.txt
, restart the server using your .bat
script. The server will now generate essential folders and files, including server.properties
.
In the server.properties
file, locate this line:
server-port=25565
This value specifies the port used by your Minecraft server. If you opt to change it, you’ll have to enter the new port when connecting via the Minecraft client using the format [YourServerIP]:Port
. For instance, if the port is changed to 25569
, you’d connect using [YourServerIP]:25569
. Keeping the default port 25565
lets Minecraft connect automatically without entering a port. Alternatively, you can configure a DNS SRV record and use a custom domain name instead of an IP address.
Unless you have a specific requirement—like operating multiple servers on the same VPS—it’s best to leave the port set to the default 25565
.
Step 5: Allowing the Server Port Through the Firewall
The next step is to make sure the firewall permits traffic on the port you selected. To learn how to open a port on Windows Server 2012, refer to the tutorial Open a Port in Windows Firewall on Server 2012, and configure the chosen port accordingly.
At this stage, your Minecraft server is fully operational. You can now log in using the official Minecraft client.
Conclusion: Running a Minecraft Server on Windows Server
Setting up a Minecraft server on a Windows Server environment is a straightforward process if you follow the correct steps—from downloading the necessary files and configuring memory usage to adjusting network settings and firewall rules. Once complete, your server will be up and running, ready to host custom multiplayer sessions. With Windows’ intuitive interface and powerful configuration options, you can efficiently manage your Minecraft server with ease and flexibility.