Installing and starting
You install TRAX Control on one computer. On your other devices, whether a computer, a tablet or a phone, you simply open it in the browser: such a device opens the address TRAX Control shows when it starts, signs in with a name, and the dispatcher admits it. How that goes is in Admit a phone or tablet. This chapter says how to start it, how to activate your licence and how to try everything out before a command station is connected.
2.1 Start TRAX Control
TRAX Control is one file, trax-control-<version>.jar. It needs Java 25 (OpenJDK 25, for example) and nothing else: no database and no other software. It runs wherever Java 25 runs: on Linux (a Raspberry Pi too), Windows and macOS.
Starting
1. Open a command window in the folder where the file is and type java -jar followed by the name of the file.
2. The first screen opens by itself: on Linux in a window of its own, otherwise in your browser. If you start TRAX Control again while it is running, only that screen opens again.
If TRAX Control runs on a computer without a screen, such as a Raspberry Pi, type --server after the command: nothing opens, and you open the address from the start message on another device.
3. In the start message, after “on the network”, is the address for your phone or tablet. It also shows the version, the edition, where the log is kept, the command station, the open layout and the rolling stock.
At the first start it is the free edition, with an empty layout called “My layout” and the command station “Loopback”; see Try it without a command station.
Where everything is kept
Everything is in one folder: your rolling stock, your layouts, your licence, the throttles and the log. By default that is the folder .trax-control in your home folder.
With environment variables, set before you start TRAX Control, you choose otherwise:
TRAX_CONTROL_HOME: another folder.TRAX_CONTROL_PORT: another port than 8420.TRAX_CONTROL_STATION: another command station than the one chosen in the panel “Command station”.
It does not start?
If TRAX Control reports “port 8420 is already in use”, a TRAX Control is probably already running on that computer.
2.2 Install a new version
Stop TRAX Control, replace the file with the new one and start it again. What is in TRAX Control's folder is kept. Which version is running you see in the panel “Command station”.
2.3 Activate your licence
Where the page “Licence”; click the logo at the top left.
Without a licence TRAX Control is the free edition. Activating switches on the edition you have. You do it once per installation; after that TRAX Control needs no internet for it.
Click the logo at the top left: it opens the page “Licence”. Activating can only be done on the computer TRAX Control runs on. There are three ways.
12345- 1 Your licence key
- 2 “Activate”
- 3 The code for another device (made unreadable here)
- 4 “Open the activation file”
- 5 Typing the code
With your licence key
Type your key (1), twenty characters in four groups of five, and choose “Activate” (2). Your key is on the website under My TRAX Control.
The browser you are looking with asks for the licence; so that device needs internet. TRAX Control itself does not go online for it.
With another device
If the computer has no internet, scan the code (3) with a phone, or open the address beside it on a computer that does have internet. You get a small file. Bring it to this computer, on a USB stick if need be, and choose “Open the activation file” (4).
By typing the code
As a last resort (5): the activation page on the website shows a code in lines. Type those lines; a typing error is pointed out in its line. Then choose “Activate with this code”.
When it has worked, TRAX Control reports “Activated” with the name of your edition, and the logo at the top left shows that edition.
What the page shows
123- 1 The edition
- 2 The details of the licence and of this installation (made unreadable here)
- 3 “Release this installation…”
At the top is the edition (1). Under it the details (2): whose name the licence is in, the licence number, when it was activated, until when it is valid (for a licence that ends), the number of this installation and the name of the computer.
2.4 Renew your licence
Where the page “Licence”; click the logo at the top left.
A test licence, a club licence and a membership end. From four weeks before the end the logo turns orange with the name of the edition beside it. The page then shows “Renew”, with how many days the licence still runs, and two buttons: “Renew on the website” and “Fetch the renewal now”.
If the computer has internet, TRAX Control asks for the renewal itself as well, every four hours. Without internet you fetch a renewal in the same way as an activation.
A licence that has ended stays valid until you start TRAX Control again. After that it is the free edition, until you renew.
2.5 Use your licence on another computer
Where the page “Licence”; click the logo at the top left.
3- 3 “Release this installation…”
With “Release this installation…” (3) this installation becomes the free edition, and you can activate the licence on another computer. TRAX Control asks whether you are sure.
If the computer has no internet, TRAX Control reports that the installation has been released here. Then release it on the website as well, under My TRAX Control, so that it no longer counts.
2.6 Try it without a command station
At the first start the command station is “Loopback”: an imaginary command station. Nothing moves on the layout then, but everything else works: you can read in your layout, add rolling stock, make duties and let trains run across the diagram.
As long as no real command station is chosen, an orange bar at the top says: “No real command station: nothing moves on the track.” On a phone an orange “Virtual” stands in the bar at the top instead.
Use it to prepare everything before the command station is there, to try something out without a train running, and to test your design before you build; see Test your plan before you build.
You choose a real command station in the panel “Command station”; see Choose your command station. Back to the imaginary command station is in the same place: choose “Loopback”.