Guide

txAdmin Login, PIN and localhost:40120 Fixes for FiveM

Can't reach the txAdmin login? Check the default port 40120, why it can't be 30120, the first-run PIN, how to change the port and keep the panel private.

http://localhost:40120

txAdmin login problems usually come from one of three things: the wrong address or port, a firewall that blocks the panel, or a first-run PIN you cannot find. The panel listens on TCP port 40120 by default. On the server machine, open http://localhost:40120. From another computer, open http://your-server-ip:40120. Only use localhost on the same machine as the server.

Last checked: 11 October 2026

What is the txAdmin login address?

The txAdmin docs describe the environment variable TXHOST_TXA_PORT, which sets the TCP port txAdmin listens on. Its default is 40120. The same docs list TXHOST_INTERFACE, which defaults to 0.0.0.0. That means txAdmin listens on every network interface of the machine, not only on localhost. Anyone who can reach your server's IP on port 40120 can reach the login page, so a firewall rule is not optional.

Use http:// unless you have set up HTTPS yourself. Bookmark the address once you know it, but never share it in a public channel. The docs do not describe a built-in HTTPS option for the panel.

Where do I find the first-run PIN?

The txAdmin README says that on first boot you open the URL shown in the console to configure your account and server. It does not describe a PIN, and the environment variable docs I checked do not mention one.

Community guides say the console prints a one-time PIN on first start, and that restarting the server prints a new one. Treat that as community-reported and check your own console output. If there is no prompt at all, an admin account may already exist. Then use the normal login page.

Why can't txAdmin use port 30120?

Port 30120 is the game port for players. The txAdmin docs say TXHOST_TXA_PORT cannot be 30120 to prevent confusion. The reverse rule also applies: TXHOST_FXS_PORT, which forces the game server port, cannot be 40120. Keep the two ports separate.

How do I change the txAdmin port?

Set TXHOST_TXA_PORT in the environment before FXServer starts. On Linux you can add an export line to the script that starts the server, for example:

export TXHOST_TXA_PORT=40121

Then open the new port in your firewall, restart the server, and check the console for the new address. Do not choose 30120. The variable is read when FXServer starts, so a running server keeps the old port until you restart it.

Why does localhost:40120 not load?

Go through these checks in order:

  1. Has the server finished starting? Wait until the console stops printing boot messages.
  2. Are you on the same machine? localhost only works there. From another PC, use the server IP.
  3. Are you using http://? Opening https:// against a plain HTTP port will fail.
  4. Is another program using port 40120? On Linux, run ss -tlnp | grep 40120 to see what holds the port.
  5. Is a firewall blocking it? On a VPS or dedicated server, check the rules in the operating system and in the provider's panel.

If the server is on a remote machine, also check that you typed the right IP. The FiveM IP finder shows the address players use, which may differ from your panel address.

How do I reach txAdmin without exposing it?

Because the default interface is 0.0.0.0, the panel is reachable from the internet unless you block it. From safest to easiest:

  1. Allow port 40120 only from your own IP. On Ubuntu with ufw, this looks like sudo ufw allow from 203.0.113.5 to any port 40120 proto tcp, using your own IP in place of the example.
  2. Use an SSH tunnel and leave the port closed to the world: ssh -L 40120:127.0.0.1:40120 user@your-server. Then open http://localhost:40120 on your PC. SSH is a standard tool, not a txAdmin feature.
  3. Put your own HTTPS reverse proxy in front of it. This is community-reported, and the docs do not describe one.

Use a strong, unique password, and give admins only the permissions they need. The full list is in txAdmin commands.

If staff need access, give each person their own account with only the permissions they need. Sharing one login makes it impossible to tell who changed what.

Check which interface the panel is using before you blame the browser. If you changed TXHOST_INTERFACE or the port in a script, the address in the console and the address you type must match. A typo in the port is the most common cause of a page that never loads.

If you change the port and the old address still answers, the old process is still running. Stop the server fully, confirm nothing holds the port, and start it again.

What usually doesn't help

Community-reported: changing TXHOST_INTERFACE to 127.0.0.1 to "hide" the panel. That is a configuration change, not a security plan, and it can break access you need. Firewall rules are the control you can rely on.

Also common is opening port 30120 to fix a panel problem. That is the game port, and it does not change the panel. Reinstalling FXServer also rarely helps, because the problem is usually the address, the firewall or the console output you are not reading.

If nothing works

Collect these before you ask for help:

  • Your txAdmin and FXServer build numbers, and your operating system.
  • The boot output from the console, with any tokens or keys removed.
  • The address you typed, and whether you are on the server machine.
  • On Linux, the output of ss -tlnp | grep 40120.

Post them in the txAdmin support area of forum.cfx.re. Never post a PIN, license key, password or your admin token.

Frequently asked questions

What is the txAdmin default port?

The txAdmin docs give 40120 as the default for TXHOST_TXA_PORT, over TCP. It is separate from the game port 30120.

Can txAdmin use port 30120?

No. The docs say TXHOST_TXA_PORT cannot be 30120.

Where is the txAdmin PIN?

The README does not describe a PIN. Community guides say the console prints one on first boot. Check your own console output after a restart.

Why is localhost not working for txAdmin?

Usually you are not on the server machine, the server has not finished starting, another program holds port 40120, or a firewall blocks it.

Is it safe to leave txAdmin open to the internet?

No. The default interface listens on every address. Allow only your own IP, or use an SSH tunnel.

Can I reset my txAdmin password?

The docs I checked do not describe a reset procedure, so this guide does not give one. Ask in the txAdmin support area of forum.cfx.re.

FiveM.tools was founded with sponsorship from Nyru.