Skip to main content
← All guides

Opening a FiveM server (Windows, txAdmin)

Here's how to install the FiveM server (FXServer), which runs GTA5 RP servers, on a Windows server and manage it with txAdmin. The official FiveM documentation describes the Linux version as a courtesy port released for convenience and advises using Windows if you run into problems, so this guide is based on Windows Server.

Before you start

  • Operating system: Choose Windows Server 2025 when you order. Choosing an operating system (OS)
  • Specs: For a test with around 10 concurrent players, start with 8GB of memory or more. For a server open to the public or one with many scripts, we recommend the plans suggested on the FiveM server hosting page (high-clock Ryzen, 6 cores, 16GB of memory, 120GB of storage or more).
  • Network: FiveM uses port 30120 for both TCP and UDP. Order with KT-⁠B, where you can open ports freely, or the Security Zone. RP servers open to the public are easy targets for DDoS attacks, so the Security Zone is recommended. Security Zone Light uses Cloudflare Magic Transit and follows a best-effort DDoS mitigation policy, so it does not guarantee protection against every attack. Choosing a network (zone)
  • Access: You need to be connected to the server with Remote Desktop. Connecting to a Windows server with Remote Desktop (RDP)
  • What you need: A Cfx.re account. You also get the server license key here (Portal).

All the steps below are done inside the server's screen, connected through Remote Desktop.

1. Download the server files

  1. In a browser on the server, open the official FiveM server download page.
  2. Download server.7z from the Windows Recommended build.
  3. Create a C:\FXServer\server folder and extract server.7z into it with an archive program like 7-Zip.

2. First run — txAdmin setup

  1. Double-click C:\FXServer\server\FXServer.exe. A black window (the server console) appears, and the setup screen (txAdmin) opens in the browser. If it doesn't open, open the address shown in the console in the server's browser.
  2. On the setup screen, enter the PIN shown in the console and click Link Account, then log in with your Cfx.re account and allow the link.
  3. Set the password you'll use for the txAdmin admin screen.
  4. Name the server and choose CFX Default FiveM under Popular Recipes. Other templates (QBCore, ESX, etc.) may need a separate database server.
  5. In the Recipe Deployer, enter the license key you got from Portal and run the recipe.
  6. When it's done, click Save & Run Server. If resources start in the server console without errors, it worked.

The txAdmin admin screen can change everything on the server. Open it only in the browser inside the server, and don't open its port to the outside.

3. Open the firewall

Open PowerShell as administrator and open port 30120 for both TCP and UDP. (Opening firewall ports)

New-NetFirewallRule -DisplayName "FiveM TCP 30120" -Direction Inbound -Protocol TCP -LocalPort 30120 -Action Allow
New-NetFirewallRule -DisplayName "FiveM UDP 30120" -Direction Inbound -Protocol UDP -LocalPort 30120 -Action Allow

4. Connect

In FiveM on your PC, open the console with the F8 key and enter the following.

connect ip-address:30120

5. Manage the server

  • Start, stop, restart, resources and player management: Do these in the txAdmin admin screen.
  • Closing the Remote Desktop window doesn't stop the server. But if you sign out of Windows, it shuts down, so close the window only with its X button.
  • To start automatically when the server reboots, register FXServer.exe by following Running programs automatically on a Windows server.
  • Backing up server data: Server data (resources, server.cfg) is in the data folder you set in the txAdmin setup. Compress it regularly and download it to your PC. Uploading and downloading files on your server

Common problems

SymptomWhat to check
Not in the server list and can't connectWhether you created the firewall rules from step 3 for both TCP and UDP, and whether 30120 can be used on the network you ordered (on a KT-⁠A server with a service port, the port is fixed)
License key errorWhether you entered the key from Portal exactly as given — you can enter it again in the txAdmin settings
Lag or disconnects as resources increaseCheck CPU and memory usage — Checking a slow server
The server shut down after disconnecting Remote DesktopWhether you clicked Sign out — close with the window's X button

If your problem isn't solved, open a ticket on our Discord.

Opening a FiveM server (Windows, txAdmin) - Nevv Guides