Home Cloud Serevrs Install a FiveM Server on a Windows VPS

Install a FiveM Server on a Windows VPS

Last updated on Feb 13, 2025

FiveM is a popular mod framework that allows you to create custom GTA V multiplayer servers. This guide will walk you through installing and setting up FiveM on your Windows Server VPS.


📌 Prerequisites

  • A Windows Server VPS (2016, 2019, or 2022) from VolticHost

  • Administrator access

  • At least 4GB RAM (8GB+ recommended for better performance)

  • .NET Framework 4.5 or later installed

  • Visual C++ Redistributable 2019 installed (Download Here)


1️⃣ Open Required Firewall Ports

To allow connections to the FiveM server, open these ports in Windows Defender Firewall:

  1. Open Windows Defender Firewall (Win + R, type wf.msc, press Enter).

  2. Click Advanced SettingsInbound RulesNew Rule.

  3. Select Port, click Next.

  4. Choose UDP, enter port 30120, click Next.

  5. Select Allow the connection, then Next.

  6. Apply the rule to Domain, Private, and Public networks.

  7. Name the rule FiveM UDP Port and click Finish.

Repeat the process for TCP Port 30120.

Your firewall is now ready for FiveM.


2️⃣ Download and Install FiveM Server

  1. Create a Server Directory

    • Open File Explorer, go to C:\, and create a folder called FXServer.
  2. Download the FiveM Server Files

  3. Extract the Files

    • Use WinRAR or 7-Zip to extract the contents into C:\FXServer.
  4. Run the Server Setup

    • Open the FXServer folder.

    • Run FXServer.exe and complete the setup.

Your server files are now installed.


3️⃣ Create a Server Configuration File

  1. In C:\FXServer, create a new folder called "server-data".

  2. Inside server-data, create a file named server.cfg.

  3. Open server.cfg with Notepad and paste the following basic setup:

# Server Name sv_hostname "My FiveM Server" # Enable Live Console Logging loglevel "info" # Set the server IP and port endpoint_add_tcp "0.0.0.0:30120" endpoint_add_udp "0.0.0.0:30120" # Steam Web API Key (Get from https://steamcommunity.com/dev/apikey) set steam_webApiKey "your_steam_api_key" # Max Players sv_maxclients 32 # Server License Key (Get from https://keymaster.fivem.net/) sv_licenseKey "your_fivem_license_key" # Enable Script Hook (For Mods) sv_scriptHookAllowed 1
  1. Replace your_steam_api_key with a valid Steam Web API Key.

  2. Replace your_fivem_license_key with your FiveM License Key (from https://keymaster.fivem.net).

  3. Save and close the file.

Your server configuration is now set up.


4️⃣ Run the FiveM Server

  1. Open Command Prompt (Win + R, type cmd, press Enter).

  2. Navigate to your FiveM server folder:

    cd C:\FXServer\server-data
    
  3. Start the server with:

    C:\FXServer\FXServer.exe +exec server.cfg
    

Your FiveM server is now running!


5️⃣ Connect to Your FiveM Server

  1. Open FiveM Client on your PC.

  2. Press F8 to open the console.

  3. Type:

    connect your-vps-ip:30120
    
  4. Press Enter to join your server.

You can now play on your FiveM server!


6️⃣ Automate Server Startup (Optional)

To start the server automatically when Windows boots:

  1. Open Task Scheduler (Win + R, type taskschd.msc, press Enter).

  2. Click Create Basic Task (right panel).

  3. Name it Start FiveM Server → Click Next.

  4. Select When the computer starts → Click Next.

  5. Select Start a program → Click Next.

  6. Browse for FXServer.exe (C:\FXServer\FXServer.exe).

  7. In Add arguments, enter:

    +exec server.cfg
    
  8. Click Finish.

Your server will now start automatically when Windows reboots.


🎉 Conclusion

You've successfully set up a FiveM server on a Windows VPS! Your GTA V multiplayer community is now live. 🚀

For further assistance, contact VolticHost Support.