Guide

Test a FiveM Server Locally Before You Rent a Host

Test your FiveM server on your own PC first: install the artifact, open txAdmin on localhost:40120, join locally and check scripts before you pay for a host.

Last checked: 30 November 2026

Short answer

Yes, you can test a FiveM server on your own PC before you rent a host. Download the server artifacts, finish setup in txAdmin at http://localhost:40120, then join from the same machine. That is enough to check that your resources start, your database connects and your scripts run with a few players. It cannot show whether strangers on the internet can reach your server, how it copes with real network load, or whether a host's CPU is fast enough.

What you need locally

  • A Windows PC or a Linux machine with enough free RAM and disk space for the server and your FiveM client.
  • GTA V installed on the same PC, since the FiveM client needs it.
  • A free Cfx.re account and a license key from portal.cfx.re. The server will not start without one.
  • The server artifacts, from the Recommended build list on the FiveM site.
  • Your resources, database files and server.cfg in one folder.
  • Optional: a second device on the same home network for a basic multiplayer check.

Setup steps

  1. Download the Recommended server artifact and extract it into an empty folder. Keep it out of your GTA V folder.
  2. Start FXServer.exe on Windows, or run ./run.sh on Linux, from the extracted folder. Leave the console open.
  3. txAdmin should open in your browser. If it does not, go to http://localhost:40120 and enter the 4-digit PIN shown in the console. Use localhost only on the machine that runs the server. If the page will not load, see txAdmin login, PIN and localhost:40120 fixes.
  4. Link your Cfx.re account, paste your license key and deploy a recipe or your own server folder. The full setup guide walks through each screen.
  5. Watch the console and fix every error before you move on. A resource that fails on start will also fail for players.
  6. Start FiveM on the same PC and click Connect to [your computer name] on LAN. Then press F8 and type tx to confirm the server is running. Some community guides instead use connect 127.0.0.1:30120 in the F8 console. That works for a local test, but it is not in the official setup steps.

What to test

  • Start order: every resource starts without errors. Check the ensure lines in server.cfg against the console output.
  • Database: the connection works, and the tables your scripts need exist. Import any SQL files before the first start.
  • Joining: your character spawns and the loading screen finishes without a timeout.
  • Scripts with a few players: ask two or three people on your network to join. Test jobs, inventory transfers, shops and anything that writes to the database when two people act at once.
  • Errors under use: keep the console open and note any warning that repeats while you play.
  • Restart and backup: restart the server and check that data survives. Restore a backup once to confirm it works.

Limits of a local test

A local test cannot show:

  • Public reachability: whether port 30120 is open to the internet, how your router handles forwarding, or whether the server appears in the server list.
  • Real network load: many players joining at once, sustained traffic, and packet loss from players in other countries.
  • Hosting CPU: a home PC's single-core speed, CPU steal on a shared host, or how a host's neighbours affect your server. For that, read FiveM VPS vs game hosting.
  • Attacks: DDoS traffic or an exposed txAdmin panel. Your local setup has neither.
  • Host differences: whether a host supports your OS, artifact or file layout.

Hosting checklist

Before you rent a host, check that it:

  • Lets you run the FXServer artifact and txAdmin on the OS you need.
  • Gives enough RAM and single-core CPU speed for the player count you plan, using your local test as a baseline.
  • Opens TCP and UDP port 30120 and TCP port 40120, and lets you limit the panel port to your own IP.
  • Includes DDoS protection, or says clearly what it costs extra.
  • Lets you upload, move and back up your files.
  • Has a data center close to your players.
  • Has a support channel that answers when a server is down.
  • Lets you cancel or move without losing your data.

Frequently asked questions

Can I test a FiveM server without a public IP?

Yes. Joining with the LAN option works on your own network and needs no port forwarding. Players outside your network need a public address and open ports, or a hosting provider.

Do I need a license key to test locally?

Yes. The server needs a valid license key from the Cfx Portal to start, even if only you join. Keep the key out of public repositories.

Is a local test enough to choose a host?

It is enough to catch script errors and setup mistakes. It is not enough to size a server. Use the local test to decide what to look for, then trial the host with a small plan before you commit.

Sources

Note: this guide follows the official docs as checked on 30 November 2026. Menus and builds change, so compare the steps with the official docs and your own console output.

FiveM.tools was founded with sponsorship from Nyru.