Setting up a FiveM server on Windows
Windows is the platform Cfx.re builds FXServer for first — the Linux build is officially a courtesy port — so a Windows VPS or dedicated server is a comfortable home for FiveM, especially if you already know Remote Desktop. The setup takes about fifteen minutes.
Short answer: Create C:\FXServer\server, download the recommended Windows build (server.7z) from the Server Download page, extract it with 7-Zip, and run FXServer.exe. txAdmin opens in the browser: link your Cfx.re account, deploy a recipe or point it at your server data, and enter your licence key. Open port 30120 TCP and UDP in Windows Firewall and use Task Scheduler to start the server at boot.

#Step 1: folders
| Folder | Holds |
|---|---|
C:\FXServer\server | The server binaries (artifacts) — replaced on every update |
C:\FXServer\server-data | server.cfg and resources — your actual server |
C:\FXServer\txData | txAdmin data (created next to the binaries folder by default) |
#Step 2: download and extract
- Open the Server Download page on docs.fivem.net and download the recommended Windows build (
server.7z). - Open it with 7-Zip or WinRAR and extract into
C:\FXServer\server. - The folder should now contain
FXServer.exeand many DLLs.
#Step 3: first start with txAdmin
- Double-click
FXServer.exe. A browser tab opens on txAdmin. - Check the PIN and click Link Account, then log in with your Cfx.re account.
- Create a password for the admin panel.
- Name the server, choose Popular Recipes (or your existing server data) and run the recipe deployer.
- Enter your licence key when asked — see the licence key guide.
- Save & Run Server.
Everything after this happens in txAdmin — see the txAdmin setup guide.
#Alternative: vanilla FXServer without txAdmin
cd /d C:\FXServer\server-data
C:\FXServer\server\FXServer.exe +exec server.cfgRun it from the server-data folder: if the server says it found no resources, you started it from the wrong directory; if nothing starts and players time out, +exec server.cfg is missing.
#Step 4: Windows Firewall
New-NetFirewallRule -DisplayName "FiveM TCP" -Direction Inbound -Protocol TCP -LocalPort 30120 -Action Allow
New-NetFirewallRule -DisplayName "FiveM UDP" -Direction Inbound -Protocol UDP -LocalPort 30120 -Action Allow
# txAdmin only from your own IP:
New-NetFirewallRule -DisplayName "txAdmin" -Direction Inbound -Protocol TCP -LocalPort 40120 -RemoteAddress <your.home.ip> -Action AllowYour hosting provider may have its own firewall in front of the machine — open the same ports there. Details: ports and firewall.
#Step 5: start on boot
- Open Task Scheduler → Create Task.
- General: “Run whether user is logged on or not”, “Run with highest privileges”.
- Triggers: At startup (add a 30-second delay so the network and database are up).
- Actions: start
C:\FXServer\server\FXServer.exewith “Start in” set toC:\FXServer\server. - Settings: “If the task fails, restart every 1 minute”.
txAdmin then restarts the game server on crashes and on your schedule — see scheduled restarts.
#Common startup errors
| Error | Fix |
|---|---|
| No license key was specified | Set sv_licenseKey in server.cfg or in txAdmin settings |
| Failed to start resource / no resources found | Start from the server-data folder (vanilla) or fix the path in txAdmin |
| Players time out, server shows no errors | Firewall — open 30120 TCP and UDP on Windows and at the provider |
| Very slow start on Windows | Antivirus scanning the server folders — add an exclusion |
Questions
How do I install a FiveM server on Windows?
server.7z, extract it to C:\FXServer\server, run FXServer.exe, and complete the txAdmin setup in the browser.Which Windows version do I need?
Should I use Windows or Linux for FiveM?
How do I open ports for FiveM on Windows?
Why is my Windows FiveM server slow to start?
Ready to pick a map?
Twelve themes on three base map styles, $8 each, instant download.