txAdmin Forgot Password: Reset Login, Admins and Port 40120
txAdmin forgot password fix: find your username, reset the master account with admins.json and a new PIN, fix not-an-admin errors and change port 40120.
- Applies to
- txAdmin v8.1.2 (released October 23, 2026) on FiveM Legacy FXServer, and FiveM for GTAV Enhanced (Cfx Server) as coded on txAdmin's enhanced branch of October 23, 2026; Windows and Linux hosts
- Last verified
On this page
- Direct Answer
- Where txAdmin keeps logins: txData/admins.json
- How the txAdmin login works: Cfx.re button or backup password
- Forgot your txAdmin username
- Forgot your txAdmin password: what you can do
- How to reset the txAdmin master account
- Fix “The Cfx.re account ’…’ is not an admin.”
- txAdmin says you are not an admin in game
- What port 40120 is, and why it is not 30120
- Change the txAdmin port with TXHOST_TXA_PORT
- Fix txAdmin “Failed to start HTTP server, port 40120 is already in use”
- FiveM Legacy and FiveM for GTAV Enhanced
- Troubleshooting
- Next Steps
Direct Answer
If you forgot your txAdmin password, txAdmin cannot show it to you: txData/admins.json stores only a bcrypt hash. If Login with Cfx.re still works, sign in that way. A regular admin needs the master or an admin with manage.admins to delete and re-add the account, which creates a new temporary password. To reset the master account, close the FXServer process running txAdmin, move admins.json out of the txData folder and start FXServer again: txAdmin prints a new 4-digit PIN to register a master, and all other admins must be re-added. The panel listens on TCP port 40120; TXHOST_TXA_PORT changes it.
Where txAdmin keeps logins: txData/admins.json
txAdmin keeps every panel account in one file, admins.json, at the top of its txData folder. txAdmin’s permission docs say the permissions “are saved in the txData/admins.json file and can be edited through the Admin Manager page by the Master admin, or users with all_permissions or manage.admins permissions.”
| Setup | Default txData location |
|---|---|
| Windows | Inside the parent of the folder that holds FXServer.exe, so C:\FXServer\txData when the server files are in C:\FXServer\server |
| Linux | Inside the folder that contains run.sh |
| Pterodactyl panel | Usually /home/container |
| Custom | Wherever the TXHOST_DATA_PATH environment variable points; it must be an absolute path |
Each account in the file has a name, a master flag, a password_hash, a providers entry with its Cfx.re and Discord identifiers, and a permissions list. Three rules from txAdmin’s source matter before you touch the file:
- The password cannot be read back. The file holds a bcrypt hash, and txAdmin rejects any
password_hashthat does not start with$2. - There is exactly one master. At boot, txAdmin refuses a file unless it has exactly one account marked as master.
- Changes made while txAdmin runs are undone. Every 15 seconds txAdmin compares the file with its own copy. If they differ, it logs “The admins.json file was modified or deleted by an external source, txAdmin will try to restore it.” and writes its copy back. Stop txAdmin before you touch the file, and use the Admins page for normal edits.
If you run several servers on one machine, the docs “strongly encourage you to set up separate txDatas”, because otherwise “the admins.json file will conflict”.
How the txAdmin login works: Cfx.re button or backup password
The login page has a Username field, a Password field and two buttons. There is no reset link to look for.
| Button on FiveM Legacy (txAdmin v8.1.2) | What txAdmin compares |
|---|---|
| Login | The username, ignoring upper and lower case, and the backup password |
| Login with Cfx.re | The numeric fivem: identifier of the Cfx.re account you sign in with |
Four details explain most failed logins:
- The master’s username is a Cfx.re name. When the master account is created, txAdmin uses the name of the Cfx.re account that linked it as the txAdmin username.
- Renaming your Cfx.re account does not rename the txAdmin account. Editing an account can change its password, identifiers and permissions, but not its name. The Cfx.re button keeps working because it matches the
fivem:identifier; password logins still need the old name. - One message covers both mistakes. A wrong username and a wrong password both return “Wrong username or password!”, so the message does not say which one is wrong.
- Ten tries. By default, the password, Cfx.re and PIN routes share one counter of 10 requests per IP address in a 15-minute window. After that, txAdmin answers “Too many attempts. Blocked for 15 minutes.”
Forgot your txAdmin username
- Sign in with Login with Cfx.re if you can. Click your avatar in the top bar and choose Your Account. The window title reads
Your Account - <username>. - Ask an admin who can open Admins. The Admins page (the Admin Manager) lists every account in its Username column. Opening it needs the
manage.adminspermission. - Read
admins.jsonon the host. OpentxData/admins.jsonin a text editor and close it without saving. Thenameof the entry whosemastervalue istrueis the master username.
Forgot your txAdmin password: what you can do
| Your situation | What to do |
|---|---|
| Login with Cfx.re still works | Keep using it. Your Account > Password asks for the Current Password before it accepts a new one, so a forgotten backup password cannot be replaced there. |
| You are a regular admin | Ask the master or an admin with manage.admins to Delete your account on Admins and add it again with Add, picking your permissions again. txAdmin generates a random 20-character temporary password and shows it once, under “Please copy the following temporary password:”. |
| You are a regular admin and want the Cfx.re button | The same admin can use Edit to add your Cfx.re ID, after which Login with Cfx.re works for you. Edit never changes a password. |
| You are the master and neither login works | Reset the master account with the steps below. The panel cannot do it: the Admin Manager answers “You cannot delete an admin master.” and refuses edits to the master from anyone else. |
| A game host created your account | Hosts can create it at first boot with TXHOST_DEFAULT_ACCOUNT, which can link it to your FiveM ID so that the Cfx.re button works. Try that button, and contact the host before deleting files. |
An admin who signs in with a temporary password sees “Your account has a temporary password that needs to be changed before you can use this web panel.” and must set a new one first.
How to reset the txAdmin master account
When admins.json is missing at boot, txAdmin generates a PIN and waits for someone to register a master account. Moving the file away is therefore how you reset the master. It removes every txAdmin account, not only yours. txAdmin’s settings live in a separate file, config.json, in the profile folder inside txData (txData/default unless you use a custom profile), so your server configuration stays.
- Stop txAdmin completely. FXServer starts txAdmin when you run it without
+exec server.cfg, so txAdmin lives inside that process (cfx-serveron Enhanced). Close that console window, or stoprun.shon Linux. Stopping only the game server from the panel leaves txAdmin running. - Rename or move
admins.json. Rename it, for example toadmins.json.bak, or move it out of txData, so you can put it back if needed. txAdmin’s own error text for a damaged file offers the same way out: “you can delete it and let txAdmin create a new one.” - Start the server again. The console box now begins with “All ready! Please access:”, lists the panel address and adds “Use the PIN below to register:” with the PIN. On Windows, txAdmin also opens the PIN page in your browser with the PIN already filled in. If you try to log in instead, the page answers “No admins set up.” and sends you to the PIN page.
- Enter the PIN and click Link Account. The page is titled “No Cfx.re account linked” and asks you to “Type in the PIN from the terminal.” txAdmin draws a new PIN every time it starts without
admins.json, so a PIN from an earlier boot returns “Wrong PIN.” - Sign in with the Cfx.re account that should own the server. Its Cfx.re name becomes the new master username.
- Set the backup password and register. Fill in Backup Password and Confirm Password with 6 to 128 characters; the form labels this
(6~128 digits), but it only checks the length. Discord ID is optional and must be the numeric user ID. Tick the checkbox “I have read and agree to the Creator PLA.” and click Register; the official setup guide also asks you to review the txAdmin License at this step. - Add the other admins again. Open Admins, click Add, enter a Username, the optional Cfx.re ID and Discord ID, pick permissions and click Save. Copy each temporary password from the “Admin Saved!” window; the admin changes it at first login.
- Check
server.cfgif the master changed hands. At deployment, the recipe deployer wrote lines of the formadd_principal identifier.<identifier> group.admin #<name>for the account that ran it. A txAdmin reset leavesserver.cfgalone, so remove those lines if the old identifiers no longer belong to your staff. The ACE permissions guide explains what they grant.
Anyone who reaches the panel and knows the PIN can claim the master account, so register straight after the restart. If your game host sets TXHOST_DEFAULT_ACCOUNT, there is no PIN: txAdmin recreates the host’s account at boot and logs a line that begins “Created master account”.
Fix “The Cfx.re account ’…’ is not an admin.”
After Login with Cfx.re, this page means no txAdmin account has your fivem: identifier saved:
The Cfx.re account '<name>' is not an admin.
The account above with identifier fivem:<id> is not assigned to any account registered on txAdmin.
You can also try to login using your username and backup password.
Either you signed in with a different Cfx.re account than the registered one, or your txAdmin account was created without a Cfx.re ID. Fix it in this order:
- Log in with your username and backup password.
- Save the identifier. Open Your Account > Identifiers. In FiveM identifier, enter the
fivem:value from the error, or type your forum.cfx.re username, which the panel converts automatically. Click Save Changes. The panel notes that this identifier “is required if you want to login using the Cfx.re button.” - No password either? The master or an admin with
manage.adminscan add your Cfx.re ID with Edit on the Admins page. If you are the master, use the reset above.
txAdmin says you are not an admin in game
Opening the menu with /tx while no txAdmin account matches you shows:
Your identifiers do not match any admin registered on txAdmin.
If you are registered on txAdmin, go to Admin Manager and make sure your identifiers are saved.
The in-game menu compares your player identifiers with the fivem: and discord: identifiers saved on txAdmin accounts. The Identifiers tab says they “are optional for accessing the Web Panel but required for you to be able to use the In Game Menu and the Discord Bot.” Your FiveM identifier is on the IDs page of your entry in the player list. Once the identifier is saved on your account, run /txAdmin-reauth in game; the menu answers “Retrying menu authentication.” and checks you again.
Other messages, in game or when you connect, point to different causes:
| Message | Cause |
|---|---|
| “The txAdmin Menu is not enabled! You can enable it in the txAdmin settings page.” | The in-game menu is switched off in the txAdmin settings. |
| “txAdmin Menu authentication failed with reason: Unauthorized: you do not have a license identifier, which means the server probably has sv_lan enabled.” | sv_lan is on. The message continues: “Please disable sv_lan and restart the server to use the in-game menu.” |
| “Your identifiers are not assigned to any txAdmin administrator.” | The server’s allowlist is in Admin-only (maintenance) mode and refused your connection because none of your identifiers is saved on a txAdmin account. |
A txAdmin account does not make you a framework admin either. The recipe deployer writes group.admin lines only for the account that ran the deployment, so other staff need their own; see how to make yourself admin on QBCore, Qbox and ESX.
What port 40120 is, and why it is not 30120
Two ports appear on every txAdmin server, and they do different jobs:
| Port | Protocol | Used by | Who connects |
|---|---|---|---|
| 40120 | TCP | The txAdmin web panel (default of TXHOST_TXA_PORT) | You, in a browser |
| 30120 | TCP and UDP | The game server, through the endpoint_add_tcp and endpoint_add_udp lines in the docs’ example server.cfg | Players |
| 40120 to 40150 | Any | Reserved for txAdmin | Nobody; server.cfg endpoints in this range are rejected |
Players never need port 40120. A game endpoint in that range fails with an error such as “the endpoint_add_tcp port 40120 is dedicated for txAdmin and CAN NOT be used for FXServer.” txAdmin also refuses an endpoint on whichever port it uses itself, and TXHOST_TXA_PORT cannot be 30120. Opening the game port for players is covered in FiveM port forwarding for 30120.
By default txAdmin listens on every network interface (0.0.0.0). On a VPS you reach the panel at http://<server-ip>:40120/ once the host firewall lets TCP 40120 through; since it is an admin login, allow only your own address where your firewall supports that. Do not set TXHOST_INTERFACE to hide the panel: that variable sets the interface for txAdmin and also forces FXServer to bind to it.
Change the txAdmin port with TXHOST_TXA_PORT
txAdmin v8.0, whose rollout began in March 2025 and which needs FXServer 13227 or newer, moved the port setting from a ConVar to an environment variable. Its changelog says the TXHOST_* variables “replace the old ConVars”. TXHOST_TXA_PORT sets the TCP port txAdmin listens on; the default is 40120 and the value cannot be 30120. Write the value without quotes: a value that starts or ends with a quote mark stops txAdmin with an error saying “The value is surrounded by quotes” and that “you must remove them”.
Windows. Add set lines before the line that runs FXServer.exe in your start .bat. This is the migration example from txAdmin’s env-config docs, old file first:
@echo off
"E:/FiveM/13079//FXServer.exe" +set serverProfile "server2" +set txAdminPort "40125"
pause
@echo off
set TXHOST_DATA_PATH=E:\FiveM\txData-dev
set TXHOST_TXA_PORT=40125
"E:/FiveM/13079//FXServer.exe"
pause
Replace the FXServer.exe path with the one in your existing file; on Enhanced the executable is cfx-server.exe. In the example, TXHOST_DATA_PATH replaces the old serverProfile setting; leave it out if you only change the port, because a new data path means a new, empty txData and a new PIN. Without a start file, create env.bat with the set lines and start the server with call env.bat && FXServer.exe.
Linux. Add export TXHOST_TXA_PORT=40125 to run.sh before the line that starts with exec $SCRIPTPATH/, or put the export lines in an env.sh file and start with source env.sh && ./run.sh.
Docker and Pterodactyl. In Docker, put TXHOST_TXA_PORT=40125 in a .env file and load it with --env-file=.env in your docker run command. On Pterodactyl, the docs say you “will likely need to contact your GSP or edit the “egg” being used.”
The docs add a security rule: these variables “should be set specifically for the boot process and must not be widely available for other processes.” After the restart, the boot box lists the panel address with the new port.
The old txAdminPort ConVar on Legacy and Enhanced
| Setting | FiveM Legacy, txAdmin v8.1.2 | FiveM for GTAV Enhanced (txAdmin enhanced branch) |
|---|---|---|
+set txAdminPort | Still read, with “WARNING: The ‘txAdminPort’ ConVar is deprecated and will be removed in the next update.” | Stops txAdmin: “The txAdminPort ConVar is deprecated and no longer supported.” |
txDataPath, txAdminInterface | Same warning, pointing to TXHOST_DATA_PATH and TXHOST_INTERFACE | Same fatal error |
serverProfile | Warning that it “will be removed in a future update” | Fatal error; the profile name default is hardcoded |
| ConVar and variable both set | The variable wins: “The environment variable will be prioritized.” | Still the fatal error: the ConVar check runs at every boot, so remove the ConVar |
On Legacy, setting TXHOST_IGNORE_DEPRECATED_CONFIGS to true makes txAdmin ignore the txAdminPort, txDataPath and txAdminInterface ConVars and silences their warnings. serverProfile is still read and still warns.
Official sources disagree on the timing. The v8.0 changelog of March 11, 2025 said the ConVars “will stop working on the next update”, yet txAdmin v8.1.2 of October 23, 2026 still reads them on Legacy. Only txAdmin’s enhanced branch removes them, and its docs say they “have been removed and cannot be used anymore.” That branch runs the same check for the Legacy FXServer executable, where its error also mentions the start_<version>_<profile>.bat script, so a txAdmin built from it stops on these ConVars on both platforms.
Fix txAdmin “Failed to start HTTP server, port 40120 is already in use”
txAdmin stops at boot when another program already listens on its port. On Legacy it prints:
Failed to start HTTP server, port 40120 is already in use.
Maybe you already have another txAdmin running in this port.
If you want to run multiple txAdmin instances, check the documentation for the port convar.
You can also try restarting the host machine.
On the enhanced branch the first line reads “Failed to start HTTP server: port 40120 is already in use.” and the hint about the port convar is replaced by a link to the env-config docs. On txAdmin v8, the documented port setting is TXHOST_TXA_PORT, not a ConVar.
- Close the other txAdmin. txAdmin’s own first guess is another txAdmin on the same port, such as a second server window that is still open.
- Find what holds the port. On Windows, run this in PowerShell; the
OwningProcesscolumn is the process ID, which you can look up in Task Manager:
Get-NetTCPConnection -LocalPort 40120 -State Listen
On Linux, list the listening TCP socket on that port with its process:
ss -ltnp 'sport = :40120'
- Running a second server on purpose? Give it its own txData, its own game port and its own txAdmin port. These lines come from the env-config examples:
set TXHOST_DATA_PATH=C:/test-server/txData
set TXHOST_FXS_PORT=30125
set TXHOST_TXA_PORT=40125
The docs’ dev-server example does not set TXHOST_TXA_PORT. When both servers run at the same time, the second txAdmin needs its own port as well.
- Restart the machine if nothing visible holds the port, as the message suggests.
TXHOST_FXS_PORT is a second point where official sources disagree: the env-config docs say it “cannot be 40120”, while txAdmin’s code rejects any value “between 40120 and 40150”.
FiveM Legacy and FiveM for GTAV Enhanced
Enhanced uses a new server download, Cfx Server, and Development Update #3 says it ships “with txAdmin still embedded so the setup experience remains the same”. Its executable is cfx-server.exe instead of FXServer.exe. This guide follows txAdmin v8.1.2 for Legacy and txAdmin’s enhanced branch on GitHub (October 23, 2026) for Enhanced, because that branch is the code that recognizes the cfx-server executable.
On both platforms, accounts live in txData/admins.json, a missing file triggers a new PIN, the panel defaults to TCP 40120 and the 40120 to 40150 range is reserved. On the enhanced branch:
- The old ConVars stop txAdmin instead of printing a warning (see the table above).
- The login buttons read Login with password and Login with Cfx, the PIN page is titled “No Cfx account linked”, and the error reads
The Cfx account '<name>' is not an admin.
The Enhanced server setup guide covers the rest of the platform.
Troubleshooting
txAdmin asks for a PIN although you already had an account
txAdmin found no admins.json in the txData folder it started with. On Windows the default txData sits in the parent of the artifact folder, so moving the server files under a new parent folder, or changing TXHOST_DATA_PATH, points txAdmin at a new, empty txData. Stop the server and point it back at the old folder before you register. The artifact update guide shows where txData sits during updates.
“Wrong username or password!” with the right name
txAdmin ignores upper and lower case in the username and trims spaces at both ends of both fields, so capitalization and stray spaces are not the cause. For the master, the username is the Cfx.re name the account had when it was registered, not a later one; look it up as described in “Forgot your txAdmin username”. Also check that the server runs with the txData whose admins.json holds your account, then try Login with Cfx.re.
“Too many attempts. Blocked for 15 minutes.”
The password, Cfx.re and PIN routes share one limit of 10 requests per IP address in a 15-minute window by default, so failed Cfx.re attempts count against password tries too. Wait for the block to end. The counter is kept in memory, so restarting txAdmin also clears it.
“Wrong PIN.”
The PIN changes on every start without admins.json. Use the one in the latest “Use the PIN below to register:” box.
“Please Update/Synchronize your VPS clock.”
The Cfx.re login failed “because this host’s time is wrong”. Synchronize the host’s clock with internet time and try again, or log in with the backup password.
“Connection to FiveM servers timed out.”
txAdmin could not finish the Cfx.re login. The page tells you to “try again or login using your existing username and backup password.”
“Invalid Browser Session.”
The page explains: “You may have restarted txAdmin right before entering this page.” Go back to the login page and start the Cfx.re login again.
“Unable to load admins.json” stops txAdmin at boot
The second part of the message names the reason: cannot read file, empty file, json parse error, not an array, no admins, invalid data in the admins file or must have exactly 1 master account. For cannot read file, txAdmin explains that the file is missing or that it lacks permission to read it, so check that the account running FXServer can read it. For every other reason, restore your backup copy, or move the file away and register a new master as described above; txAdmin’s message offers the same two choices.
“Invalid value for a TXHOST environment variable.”
Remove quotes around the value, use an absolute path for TXHOST_DATA_PATH, keep TXHOST_TXA_PORT off 30120 and keep TXHOST_FXS_PORT outside 40120 to 40150.
“The txAdminPort ConVar is deprecated and no longer supported.”
txAdmin found a txAdminPort, txDataPath, txAdminInterface or serverProfile ConVar, for example a +set argument in your start script. Remove it and set the matching TXHOST_* variable instead.
The panel does not open from another computer
On Linux the boot box shows http://your-public-ip:40120/ as a placeholder, followed by the detected public address when txAdmin finds one. Use the server’s real IP and check that the host firewall allows TCP 40120. Inside a container, set TXHOST_TXA_URL so the boot message shows the right public URL.
Next Steps
- Follow the full setup order in how to make a FiveM server.
- Redeploy a server or check what a recipe wrote with the txAdmin recipe guide.
- Open the game port for players with FiveM port forwarding for 30120.
Browse FiveCrate assets
Original FiveM assets made in-house, with free updates and a multi-server license.
Official documentation and repository references
- txAdmin Docs: Environment Configuration
- txAdmin Docs: Permission System
- Cfx.re Forum: txAdmin v8.0 Update Changelog
- Cfx.re Docs: Setting up a FiveM Server
- txAdmin source: AdminStore (admins.json and the master PIN)
- txAdmin source: server.cfg endpoint checks
- txAdmin enhanced branch: Environment Configuration
- Cfx.re Forum: Development Update #3, FiveM for GTAV Enhanced
Related guides
FiveM Port Forwarding: Open 30120 TCP and UDP
FiveM port forwarding step by step: open 30120 TCP and UDP in the firewall and router, test from outside, and fix CGNAT, txAdmin and "Could not bind" errors.
How to Give Yourself Admin on QBCore, Qbox and ESX
How to give yourself admin on QBCore, Qbox and ESX Legacy: the add_principal lines, setgroup, /addpermission and /optin, plus fixes for Access denied errors.
FiveM ACE Permissions Guide: add_ace and add_principal
FiveM ACE permissions explained: add_ace, add_principal, remove_ace, test_ace and se_debug, with official examples, deny rules and Access denied fixes.
How to Make a FiveM Server in 2026 (txAdmin + Portal)
How to make a FiveM server in 2026: download FXServer, finish txAdmin setup, deploy a recipe, add a Cfx Portal key, set listing details and open port 30120.
txAdmin Recipes Explained: Deploy Qbox, ESX or Default
How a txAdmin recipe builds a FiveM server: the current Popular Recipes list, each deployer step, database options, custom URLs and the QBCore deprecation.



