Linux or Windows?
FiveM runs on Linux and on Windows Server. On Debian or Ubuntu, the Autoinstaller in your MagicHosting dashboard installs FXServer with txAdmin in one click – the fastest route. Windows Server is worth it if you prefer a graphical interface, want to upload resources via drag and drop or use tools that only exist for Windows.
| Linux (Debian/Ubuntu) | Windows Server 2022/2025 | |
|---|---|---|
| Installation | One click in the Autoinstaller | Manual, about 15 minutes |
| Management | SSH + txAdmin in the browser | Remote Desktop + txAdmin |
| RAM for the system | under 1 GB | about 2 GB |
| Recommendation | For most servers | If you need Windows tools |
What you need
- A Windows server: with at least 4 vCores and 8 GB RAM – for roleplay servers we recommend the AMD Ryzen 9 9950X for its high per-core performance. You install Windows Server at no extra cost straight from the dashboard.
- A server licence key: from the Cfx.re portal (portal.cfx.re). Every FiveM server needs its own key.
- Remote Desktop access: – our RDP guide for Windows, Mac and mobile shows how to connect.
- 7-Zip: to extract the FXServer artifacts (.7z files).
Step 1: Download the FXServer artifacts
- Connect via Remote Desktop as Administrator.
- Create the folders
C:\FXServer\serverandC:\FXServer\txData. - Open
https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/in the browser and download the build marked recommended (fileserver.7z). - Extract the archive with 7-Zip to
C:\FXServer\server.
Step 2: Start and set up txAdmin
Start C:\FXServer\server\FXServer.exe. Without further parameters, FXServer starts txAdmin automatically: the console window shows the address http://localhost:40120 and a four-digit PIN.
- Open txAdmin in the browser on the server and enter the PIN.
- Sign in with your Cfx.re account and set the admin password.
- Choose a recipe: an empty CFX server, ESX Legacy or QBCore. ESX and QBCore need a MariaDB database – txAdmin asks for the credentials during setup.
- Enter your licence key and let txAdmin deploy the server.
Step 3: Create firewall rules
Players connect via port 30120 (TCP and UDP). The txAdmin interface on port 40120 should only be reachable from your own IP address. Open PowerShell as Administrator:
# Game port for players (TCP and UDP)
New-NetFirewallRule -DisplayName "FiveM 30120 TCP" -Direction Inbound -Protocol TCP -LocalPort 30120 -Action Allow
New-NetFirewallRule -DisplayName "FiveM 30120 UDP" -Direction Inbound -Protocol UDP -LocalPort 30120 -Action Allow
# Open txAdmin only for your own IP address
New-NetFirewallRule -DisplayName "txAdmin 40120" -Direction Inbound -Protocol TCP -LocalPort 40120 -RemoteAddress YOUR-IP -Action AllowYou can find your current IP address on a "what is my IP" site, for example. If it changes often, connect to txAdmin via Remote Desktop and open http://localhost:40120.
Step 4: Autostart after a reboot
Windows updates occasionally restart the server. So that FiveM comes back up on its own, create a scheduled task that runs FXServer at system startup:
$action = New-ScheduledTaskAction -Execute "C:\FXServer\server\FXServer.exe" -Argument "+set txDataPath C:\FXServer\txData" -WorkingDirectory "C:\FXServer\server"
$trigger = New-ScheduledTaskTrigger -AtStartup
Register-ScheduledTask -TaskName "FiveM txAdmin" -Action $action -Trigger $trigger -User "SYSTEM" -RunLevel HighestThe txDataPath parameter makes sure txAdmin always finds its data in the same folder – no matter which account runs the task. You won't see a console window any more; start, stop and logs are handled conveniently in txAdmin.
Updates and common errors
- Updating artifacts: Stop the server in txAdmin, replace the contents of C:\FXServer\server with the new build and start the server again. The txData folder stays untouched.
- FXServer doesn't start: If a DLL is missing, install the current Microsoft Visual C++ Redistributable (x64) and try again.
- Players can't find the server: Check the firewall rules for port 30120 TCP and UDP and make sure endpoint_add_tcp and endpoint_add_udp in server.cfg listen on 0.0.0.0:30120.
- Locked out: If a firewall rule locked you out of Remote Desktop, open your server's VNC console right in the MagicHosting dashboard.
Frequently asked questions
How much RAM does FiveM need on Windows?
Plan about 2 GB for Windows itself plus at least 4–6 GB for FXServer and your resources. With ESX or QBCore and MariaDB on the same server, 8 GB is the sensible minimum; for 50 players or more, rather 16 GB.
Which ports does FiveM need?
Port 30120 over TCP and UDP for the game and port 40120 over TCP for txAdmin. You only need further ports for extra services such as a database – which shouldn't be publicly reachable.
Can I switch to Linux later?
Yes. Back up txData, your resources and a database dump, reinstall Debian or Ubuntu in the dashboard and use the FiveM Autoinstaller. Magic Transit helps you move for free.
Is my FiveM server protected against DDoS?
Yes. Every KVM server at MagicHosting runs behind PletX with 8 Tbit/s of filter capacity – at no extra cost. You'll find suitable servers on our FiveM server hosting page.
Was this post helpful?
MagicHosting – Hosting with real value
Hosting pays off with MagicHosting: fair pricing, current deals and operation in SkyLink RZ. Servers, domains and personal support – no hidden costs.
- Current limited offers from our server exchange
- Affordable domains with transparent pricing and great offers
- Powerful DDoS protection for maximum availability
- Personal support when you have questions or issues