How to Create a Minecraft Server on a Windows VPS
Follow these steps to create and configure a Minecraft server on your Windows VPS.
Step 1: Install Java
Minecraft requires Java to run. Here’s how to install it:
- Access your VPS Desktop: Log in to your Windows VPS using Remote Desktop Protocol (RDP).
- Download Java JDK:
- Open a browser and navigate to the Oracle Java Downloads.
- Select the appropriate version for Windows and download it.
- Install Java:
- Run the installer and follow the on-screen instructions to install Java.
Step 2: Download the Minecraft Server Jar
- Visit the Minecraft Server Page:
- Open your browser and go to the official Minecraft server download page.
- Download the
.jar
file for the Minecraft server.
- Save the File:
- Save the
.jar
file in a dedicated folder, e.g.,C:\MinecraftServer
.
Step 3: Configure the Server
- Open Command Prompt:
- Use
Win + R
, typecmd
, and press Enter.
- Navigate to the Server Directory:
- Use the command:
cd C:\MinecraftServer
- Run the Server Jar:
- Execute the following command:
java -Xmx1024M -Xms1024M -jar server.jar nogui
- This will generate the necessary configuration files.
Step 4: Accept the EULA
- Locate the
eula.txt
File:
- Open
C:\MinecraftServer\eula.txt
.
- Edit the File:
- Change
eula=false
toeula=true
. - Save the file.
Step 5: Start the Server
- Re-run the Server Jar:
- Use the same command as before:
java -Xmx1024M -Xms1024M -jar server.jar nogui
- Wait for Initialization:
- The server will initialize, and you can see the server console.
Step 6: Configure Firewall
- Allow Minecraft Ports:
- Open Windows Firewall settings and allow inbound traffic for port
25565
(default Minecraft server port).
Step 7: Connect to Your Server
- Get Your VPS IP:
- Find your VPS's public IP address in the VPS control panel.
- Launch Minecraft:
- Open Minecraft, go to multiplayer, and add a server with your VPS IP.
Your Minecraft server is now live and ready for players!
Updated on: 28/11/2024
Thank you!