🚀 TrackMania Forever Dedicated Server Setup (Clean & Simple)
A modern, easy-to-follow guide for setting up your own TrackMania Nations Forever (TMNF) or United Forever (TMUF) dedicated server — even if you're totally new.
📦 Download the server ZIP file:
http://tm.cloudzor.ch/tmnf/TrackmaniaServer_2011-02-21.zip
🖥️ Works on Linux & Windows
──────────────────────────────────────────────
🧰 What You’ll Need
- A computer or server (Linux preferred)
- TrackmaniaServer_2011-02-21.zip (dedicated server files)
- Basic terminal or command line knowledge
──────────────────────────────────────────────
👤 Create a User (Linux Only)
To keep things clean and secure:
sudo adduser tmf
su - tmf
📝 Skip this if you're using Windows.
──────────────────────────────────────────────
📁 Set Up Server Folder
Make and enter a new folder:
mkdir TMF
cd TMF
Unzip the TrackmaniaServer ZIP file into this folder.
──────────────────────────────────────────────
🔐 Get a Dedicated Login
TM Nations Forever (free):
- Use your game client to create a dedicated login.
- Note: No coppers allowed on TMNF servers.
TM United Forever (paid):
- Go to the Player Page
- Log in, then create a dedicated server login + password
- Use your full game key during setup
──────────────────────────────────────────────
⚙️ Edit dedicated_cfg.txt
File location:
TMF/GameData/Config/dedicated_cfg.txt
Authorization section:
<authorization_levels>
<superadmin>your_password</superadmin>
<admin>your_password</admin>
<user>your_password</user>
</authorization_levels>
Server login:
<masterserver_account>
<login>your_dedicated_login</login>
<password>your_dedicated_password</password>
<validation_key>ABC</validation_key> <!-- optional -->
</masterserver_account>
Packmask:
- nations (for TMNF)
- united, island, bay, etc. (for TMUF)
Ports (default values):
- 2350 → Server
- 3450 → P2P
- 5000 → XMLRPC (internal)
- 8002 → (for Dedimania / XASECO use)
──────────────────────────────────────────────
🎮 Match Settings File
Find them in:
TMF/GameData/Tracks/MatchSettings/Nations/
Edit a file like:
NationsBlue.txt
Use it to define which tracks your server will load.
──────────────────────────────────────────────
🌍 Port Forwarding
Open the following ports (UDP & TCP):
Game Server: 2350
P2P Traffic: 3450
Dedimania (XASECO): 8002
⚠️ Do not open port 5000 unless you're sure what you're doing.
──────────────────────────────────────────────
🖥️ Create a Start Script
Linux (RunServer.sh):
./TrackmaniaServer /game_settings=MatchSettings/Nations/NationsBlue.txt /dedicated_cfg=dedicated_cfg.txt
chmod +x RunServer.sh
Windows (RunServer.bat):
TrackmaniaServer.exe /game_settings=MatchSettings/Nations/NationsBlue.txt /dedicated_cfg=dedicated_cfg.txt
──────────────────────────────────────────────
🚦 Start the Server
From your TMF directory:
./RunServer.sh
Expected output:
Starting TmForever...
Listening for xml-rpc commands...
Server daemon started.
💥 If you get a Segmentation Fault, check your file permissions.
──────────────────────────────────────────────
✅ Test Your Server
- Open your TMNF or TMUF game
- Go to Online > Internet server list
- Find your server by name
- Connect to test
- Ask a friend to join from a different IP
If everything works — you did it!
──────────────────────────────────────────────
🧩 Run Your Own Tracks
Place your tracks in:
GameData/Tracks/Challenges/My Challenges/
Create or edit a match settings file in:
GameData/Tracks/MatchSettings/
Use that file in your start command:
./TrackmaniaServer /game_settings=MatchSettings/MyTracks.txt /dedicated_cfg=dedicated_cfg.txt
Restart the server
Your own custom tracklist is now running!
──────────────────────────────────────────────