Host Game Servers on a Windows VPS
This guide covers installing dedicated servers for FiveM, BeamMP, and Garry's Mod on a Windows VPS. Each game has its own section below. The port-forwarding process is the same for all three: open the required ports in Windows Defender Firewall with Advanced Security using both Inbound and Outbound rules.
Before starting, connect to your Windows VPS via Remote Desktop and make sure your VPS is fully up to date. All steps must be completed on the VPS, not your local machine.
Before you start: Garry's Mod requires SteamCMD to be installed first. FiveM and BeamMP use their own installers.
FiveM
FiveM is a multiplayer modification framework for GTA V. The recommended installation method uses txAdmin, which handles server setup through a web interface.
Prerequisites
- Install Visual C++ Redistributable 2019 from the Microsoft website.
- Install an archive tool such as WinRAR or 7-Zip.
- Ensure your Windows VPS is fully up to date (see Update Your Windows VPS).
Install with txAdmin (recommended)
- Go to the FiveM Server Artifacts website and download the recommended version.
- Create a folder on the server called
FXServer. - Extract the downloaded archive into the
FXServerfolder. - Open
FXServer.exe. A console window opens with a PIN and a link to the txAdmin panel. A browser window may open automatically. - Log in with your Cfx.re Forum account and authorize txAdmin access.
- Set a backup password and accept the Cfx.re Terms of Service and the txAdmin license.
- Follow the setup wizard. When asked for a Deployment Type, select Popular Templates and choose a template tagged FiveM (for example,
CFX Default FiveMfor a basic setup). - Leave the Data Location at the default. Click Go to Recipe Deployer.
- Enter your Cfx.re License Key from the FiveM Keymaster. On the Keymaster, click New Server and fill in the form: set Initial Server IP to your VPS IP, Server Type to
VPS, and Server Provider toHost Havoc. - Paste the key into txAdmin and click Run Recipe.
- Once the recipe completes, click Next to review
server.cfg, then allow the server to start.
Open firewall ports (FiveM)
Forward TCP and UDP port 30120 for both Inbound and Outbound rules.
- Open Windows Defender Firewall with Advanced Security.
- Click Inbound Rules, then New Rule. Select Port, choose TCP, enter
30120, allow the connection, and name the rule (for example,FiveM TCP). - Repeat step 2 choosing UDP and enter
30120(name itFiveM UDP). - Repeat both steps under Outbound Rules.
BeamMP
BeamMP is a multiplayer mod for BeamNG.drive. Its server is a single executable with no external dependencies.
Install
- Go to the BeamMP website and download the server from the homepage.
- Move
BeamMP-Server.exeinto a dedicated folder with no other files. - Double-click
BeamMP-Server.exeand wait about 10 seconds. The console closes automatically after generating the server files. - Open
ServerConfig.tomlwith a text editor and configure the following fields:- AuthKey: Generate a key from the BeamMP Key Dashboard. Enter your VPS IP as the Server IP and paste the generated key between the apostrophes (
'') in theAuthKeyline. - Description: A short description shown in the server list.
- Map: The map name. Vanilla map names are listed in the BeamMP Wiki.
- MaxCars: Maximum cars per player.
- Name: The server name shown in the server list.
- Port: Default is
30814. Change only if needed. - Private: Set to
trueto hide the server from the public list.
- AuthKey: Generate a key from the BeamMP Key Dashboard. Enter your VPS IP as the Server IP and paste the generated key between the apostrophes (
Open firewall ports (BeamMP)
Forward TCP and UDP port 30814 (or your chosen port) for both Inbound and Outbound rules using the same steps as FiveM above.
Start the server
Double-click BeamMP-Server.exe to start. Your server is now online and ready to join.
Garry's Mod
Garry's Mod uses SteamCMD to download and update the server files. Install SteamCMD before continuing.
Install via SteamCMD
- Open
steamcmd.exe. - Log in. Anonymous login is sufficient for a private server; a Steam account that owns Garry's Mod is required for a public server:
login anonymous - (Optional) Set a custom install directory:
force_install_dir c:\Users\Administrator\Desktop\steamcmd\FOLDERNAME - Install the Garry's Mod dedicated server:
app_update 4020 - Once installed, locate the server files. If you did not set a custom directory, the default path is:
C:\Users\Administrator\Desktop\steamcmd\steamapps\common\GarrysModDS
Open firewall ports (Garry's Mod)
Forward TCP and UDP port 27015 for both Inbound and Outbound rules using the same steps as FiveM above.
Launch the server
- Run
srcds.exefrom theGarrysModDSfolder. - Configure your server details (port, server name, and other options) in the launcher window.
- Click Start Server.
Your Garry's Mod server is now online and ready to join.