Guide

How to Make a FiveM Server in 2026 (txAdmin Guide)

How to make a FiveM server in 2026 with txAdmin on Windows: download the artifact, link your Cfx account, get a free license key and open port 30120.

To make a FiveM server in 2026, download the Recommended server artifact, extract it, run FXServer.exe, and let txAdmin walk you through the rest: link your Cfx.re account, pick the "CFX Default FiveM" recipe and paste a free license key from the Cfx Portal. Then open port 30120 for TCP and UDP so other players can join.

This guide follows the official txAdmin setup guide for Windows and adds the parts people usually get stuck on.

Last checked: 7 November 2026

What you need before you start

  • A Windows PC or server (Linux works too, see the end of this guide).
  • A free Cfx.re account.
  • A free license key (also called registration key) from portal.cfx.re.
  • 7-Zip or WinRAR to extract the server archive.
  • For FiveM for GTAV Enhanced servers: the Microsoft Visual C++ 2017 Redistributable (x64), installed before you start the server.

Decide early whether you build for GTA V Legacy or GTA V Enhanced. Enhanced clients and Legacy clients do not play on the same servers. If you are unsure, read FiveM Legacy vs Enhanced first.

You do not need a database for the default recipe. Framework recipes such as ESX or QBCore usually need a MySQL or MariaDB server.

Step 1: Download the server artifact

FXServer builds are called artifacts. Use the Recommended one unless a resource explicitly needs a newer Latest build.

  1. Open the official server download page linked from the FiveM docs and download the Recommended Windows build.
  2. Create a folder, for example C:\FXServer\server.
  3. Extract server.7z into that folder with 7-Zip or WinRAR.

For an Enhanced server the archive is called cfx-server_win_x64 instead of server.7z, and the program inside is cfx-server.exe instead of FXServer.exe.

Since 15 October 2026 players cannot connect to older FXServer versions. Cfx.re named build 35245 the Recommended version in August 2026, so do not reuse an old artifact you have lying around.

Step 2: Start FXServer and set up txAdmin

txAdmin is the web panel that ships with FXServer. It installs your server, restarts it, and gives you a live console.

  1. Run FXServer.exe (Enhanced: cfx-server.exe).
  2. A txAdmin page opens in your browser. Check that the PIN is filled in, then click to link your account.
  3. Sign in with your Cfx.re account and approve the request.
  4. Create a password for the txAdmin admin page. Use a strong one. Anyone with this password controls your server.
  5. Give your server a name.

If the browser does not open, the console window shows the txAdmin address and the PIN. txAdmin listens on port 40120 by default.

Step 3: Deploy the recipe and add your license key

A recipe is a template that downloads resources and writes a server.cfg for you.

  1. Under "Popular Recipes", choose CFX Default FiveM. The other recipes may need a database server.
  2. Keep the suggested data path or choose another one, and save.
  3. In the Recipe Deployer, review the settings and click Next.
  4. Sign in at portal.cfx.re, generate a new server key, and paste it into the license key field. Keep this key private.
  5. Run the recipe and wait until it finishes.
  6. Click Save & Run Server.

The key ends up in server.cfg as sv_licenseKey. Never post your server.cfg publicly without removing that line.

A default server allows up to 48 players. More slots need an Element Club Argentum subscription or higher, according to the official server issues page. Then you can raise sv_maxclients.

Step 4: Open the ports so others can join

FiveM uses port 30120 for both TCP and UDP. In the default config this looks like:

endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
  1. Allow port 30120 TCP and UDP in Windows Defender Firewall (inbound rules).
  2. If you host at home, forward port 30120 TCP and UDP on your router to the PC's local IP.
  3. Test from another network: press F8 in FiveM and run connect YOUR_PUBLIC_IP:30120.
  4. Open http://YOUR_PUBLIC_IP:30120/info.json from outside. It should return JSON.
Warning

Do not expose txAdmin's port 40120 to the internet unless you really need remote access. Your server works without it being public. If you need remote access, restrict it to your own IP.

It can take up to 8 minutes until a new server appears in the list. If it still does not show, follow FiveM server not showing in the server list. Then set your name, banner and tags in the Cfx Portal, because since October 2026 that data no longer comes from server.cfg. See FiveM server banner size and Portal setup.

Speed up slow starts on Windows

Windows Defender scanning the server folder can make startup slow. The official docs suggest an exclusion from an admin PowerShell (change the path to yours):

Add-MpPreference -ExclusionPath 'C:\FXServer\'

Short notes for Linux

The official docs call the Linux build a courtesy port, but many hosts run it. You need xz-utils (or xz).

mkdir -p ~/FXServer/server
cd ~/FXServer/server
wget <URL of the Recommended Linux build>
tar xf fx.tar.xz

For Enhanced, the file is cfx-server-linux_x64 instead of fx.tar.xz. Start the server with bash ~/FXServer/server/run.sh. Without +exec server.cfg it starts txAdmin, which prints its address and PIN in the terminal. Continue in the browser as on Windows. Open 30120 TCP and UDP in ufw or your provider's firewall. Run the server in screen or tmux, or as a service, so it keeps running when you log out.

Choosing where to host

Running the server at home is fine for testing with friends. For a public community, upload bandwidth, DDoS protection and uptime matter more than CPU cores. The FiveM hosting guide compares what to look for. Once players are on, use the profiler viewer to find resources that cause lag.

What usually doesn't help

  • Using a years-old artifact from a YouTube tutorial. Old builds are end-of-life and cannot be joined.
  • Opening only TCP. FiveM needs UDP too.
  • Picking a framework recipe without a database. Use CFX Default first and add a framework later.
  • Opening port 40120 to everyone. It adds risk and does not help players join.
  • Disabling the whole firewall. Add rules for the ports instead.

If nothing works

Ask on forum.cfx.re in the server support section and include your OS, artifact build number, the recipe you used, the full console output from startup, and whether info.json loads locally and from outside. Remove sv_licenseKey and passwords before you post anything.

Last checked: 7 November 2026

Frequently asked questions

How do I make a FiveM server for free?

The software and the license key are free. Run the server on your own PC with txAdmin and forward port 30120 TCP and UDP. You only pay if you rent a server or want more than 48 slots.

Do I need a license key for a FiveM server?

Yes. Every server needs a key from portal.cfx.re in sv_licenseKey. It is free.

How do I make my FiveM server public?

Open port 30120 TCP and UDP, leave sv_master1 commented out, and fill in your server data in the Cfx Portal. Wait up to 8 minutes for it to appear.

What ports does a FiveM server use?

30120 TCP and UDP for the game, and 40120 TCP for the txAdmin web panel. Only 30120 needs to be reachable for players.

How many players can join a free FiveM server?

Up to 48. More slots need an Element Club Argentum subscription or higher.

Can I make a FiveM server on GTA V Enhanced?

Yes, FiveM for GTAV Enhanced has been in early access since 21 July 2026. Use the Enhanced server files (cfx-server.exe) and install the Visual C++ 2017 Redistributable (x64) first.

Next step: once your server runs, check it on the fivem.tools server list.

FiveM.tools was founded with sponsorship from Nyru.