For the complete documentation index, see llms.txt. This page is also available as Markdown.

๐Ÿ•น๏ธHow to set up a game server on Windows Server

Running a game server on your Windows VPS is easier than you might think. Most popular games provide Windows server files that work right out of the box. This guide covers the two most requested options: Minecraft and FiveM.

Before you start

Make sure you have:

  • A Windows VPS with at least 4 GB of RAM (more for modded servers)

  • Java installed (for Minecraft)

  • The required ports opened in Windows Firewall

Part 1: Installing Java (required for Minecraft)

Minecraft servers run on Java. Install the latest version:

  1. Download the Temurin JDK 21 (LTS) for Windows

  2. Run the installer with default settings

  3. Verify it works:

java --version

Part 2: Setting up a Minecraft server

Step 1: Create a server folder

Step 2: Download the server jar

  1. Right-click the download link and copy the URL

  2. Download it on your VPS:

Or use the direct link for the latest release.

Step 3: Start the server

The server will start, then stop immediately. It needs you to accept the EULA first.

Step 4: Accept the EULA

Change eula=false to eula=true. Save and close.

Step 5: Start the server again

The server generates all necessary files and starts. You should see "Done!" in the console.

Step 6: Open the port

Step 7: Configure server properties (optional)

Edit the server.properties file with Notepad:

Common settings to change:

Setting
Default
What it does

max-players=20

20

Maximum players allowed

motd=A Minecraft Server

Message of the day

difficulty=easy

easy

peaceful, easy, normal, hard

online-mode=true

true

Set to false for cracked clients

Step 8: Keep the server running

The server stops when you close the terminal. Use a script or a tool like nssm to keep it running.

Create a start script. Save this as start-minecraft.bat:

Double-click the batch file to run the server.

For a more robust solution, install it as a Windows service with NSSM:

Part 3: Setting up a FiveM server

FiveM is a multiplayer modification for Grand Theft Auto V. The server files are maintained by the FiveM team.

Step 1: Download the server files

Find the latest build number on runtime.fivem.net/artifacts/fivem/build_server_windows/master.

Step 2: Configure the server

Create a server.cfg file in the server folder:

Add a basic configuration:

Step 3: Get a license key

If you want your server to appear on the FiveM server list, you need a license key:

  1. Log in with your Cfx.re account

  2. Register your server and get the license key

  3. Add it to server.cfg

Step 4: Start the server

Step 5: Open the ports

Step 6: Connecting to your server

In FiveM, open the console with F8 and type:

Part 4: Basic server management

Checking resource usage Open Task Manager (Ctrl + Shift + Esc) to see how much CPU and RAM your game server is using.

Updating the server Stop the server, download the new files, and restart.

Backups Copy the entire server folder regularly. For Minecraft, back up the world folder. For FiveM, back up the entire server directory.

Troubleshooting

Server does not start Check that Java is installed for Minecraft. For FiveM, make sure you extracted the files correctly.

Players cannot connect Verify the ports are open in Windows Firewall and not blocked by your hosting provider.

Server runs out of memory Increase the RAM allocation. For Minecraft, change the -Xmx value. For FiveM, the server automatically uses available RAM.

Conclusion

You now have a game server running on your Windows VPS. Whether it is Minecraft or FiveM, the setup is straightforward and your players should be able to connect from anywhere.

Last updated