Hosting Trackmania dedicated servers
Trackmania servers are light, run natively on Linux and scale out by room. One machine can host a full set of time attack, rounds, cup and knockout rooms for a racing community.
What do I need before installing?
A dedicated server account, separate from your player account. Create it on the game's official player page by registering a server login; you receive a login and password that the server uses to authenticate with the master servers. Each running server instance needs its own server account.
How do I install the server on Linux?
Download the latest server archive from the official download site, extract it and run the Linux binary. Configuration lives in UserData/Config, maps in UserData/Maps.
mkdir -p /srv/tm/room1 && cd /srv/tm/room1 unzip -q ~/TrackmaniaServer_Latest.zip && chmod +x TrackmaniaServer ./TrackmaniaServer /game_settings=MatchSettings/tracklist.txt /dedicated_cfg=dedicated_cfg.txt /nodaemon
Which ports must be reachable?
Port 2350 over TCP and UDP for players and port 3450 over TCP and UDP for the peer-to-peer channel. The XML-RPC port, 5000 by default, is for controllers and must stay on localhost.
| Port | Protocol | Use | Second room |
|---|---|---|---|
| 2350 | TCP and UDP | Game | 2351 |
| 3450 | TCP and UDP | Peer-to-peer | 3451 |
| 5000 | TCP, localhost | XML-RPC for controllers | 5001 |
What goes into dedicated_cfg.txt?
The authentication and server identity. Under authorization_levels set strong passwords for SuperAdmin and Admin; under masterserver_account put the server login and password; under server_options set the name, comment, password, maximum players and spectators. The system_config block holds the ports, the XML-RPC binding and the connection upload and download rates. Keep this file readable only by the server user, because it holds three sets of credentials.
How are game modes and maps chosen?
Through a match settings file in UserData/Maps/MatchSettings. It names the script for the mode, the script settings and the map list. The common modes:
Trackmania/TM_TimeAttack_Online.Script.txt: best time over a fixed duration, the classic public room.Trackmania/TM_Rounds_Online.Script.txt: points per round, used for team and league play.Trackmania/TM_Cup_Online.Script.txt: rounds until a player reaches a points limit and then wins a round.Trackmania/TM_Knockout_Online.Script.txt: the slowest drivers drop out each round.
Maps are .Map.Gbx files in the Maps folder; players download custom maps automatically when they join.
What is a server controller?
A program that connects over XML-RPC and adds everything a community expects: chat commands, records, map voting, local leaderboards, admin tools and widgets. Open-source controllers written in PHP or Python are widely used; they typically need a small MySQL, MariaDB or PostgreSQL database for records. Run the controller on the same machine and bind XML-RPC to 127.0.0.1 so only it can reach the port.
How many rooms fit on one machine?
Many. A room uses well under one core and a few hundred megabytes of memory even with dozens of players, because physics runs on clients and the server validates and relays. A typical community network of eight rooms with controllers and a database fits comfortably on ESSENTIAL-1, with 6 cores and 32 GB DDR4, at $38.40 a month on a 3 month or longer term. For leagues streaming events and hosting many more rooms, ESSENTIAL-3 adds cores at $61.20.
Where should the server be?
Close to the drivers, because even small delays are felt in rounds and knockout modes. For European leagues, Gravelines, Frankfurt and Warsaw cover most of the continent; North American communities choose Beauharnois. Every model includes DDoS filtering, which matters for public cups that attract attention. Our Firewall for game servers guide covers the host rules.
Machines for Trackmania rooms
Lowest monthly price of each model across its data centres; the model page shows the price in every location.
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-1 | Intel Xeon-E 2386G | 6 | 32 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $38.40 |
| ESSENTIAL-2 | Intel Xeon-E 2388G | 8 | 32 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $43.20 |
| ESSENTIAL-3 | AMD Ryzen 9 5900X | 12 | 32 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $61.20 |
| ESSENTIAL-GAME-1 | AMD Ryzen 5 5600X | 6 | 32 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $43.20 |
| ESSENTIAL-S | AMD Ryzen 7 9700X | 8 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $46.20 |
An entry machine hosts a whole set of rooms, controllers and the records database.
Related pages
Game server hosting
Ryzen X3D and Ryzen 5000 machines for Minecraft, Rust, CS2 and FiveM worlds that need steady tick rates.
Read moreLow latency servers
Cut response times with the right data centre, high-clock processors, NVMe drives and a tuned network stack, for games, trading tools and real-time apps.
Read moreChoosing a data centre location
Latency, traffic rules, data residency and price: how to pick one of our twelve data centres for the people you serve.
Read moreFirewall for game servers
Open exactly the UDP and TCP ports a game needs, protect query ports from reflection abuse and keep lag low under load.
Read moreQuestions and answers
Does Trackmania have a Linux dedicated server?
Yes. The server archive from the official download site includes a native Linux binary called TrackmaniaServer.
Which ports does a Trackmania server use?
Port 2350 over TCP and UDP for the game and 3450 over TCP and UDP for peer-to-peer. Keep XML-RPC on 5000 bound to localhost.
Do I need a special account for a Trackmania server?
Yes. Register a dedicated server login on the official player page; each running server needs its own login.
How do I change the Trackmania game mode?
Set the mode script and map list in a match settings file under UserData/Maps/MatchSettings, for example TM_Rounds_Online or TM_Knockout_Online.
How many Trackmania rooms can one machine run?
Many. Each room uses well under one core and a few hundred megabytes of memory, so an entry machine runs eight or more rooms with controllers.