You can host an OpenTTD server with ZapX on your own VPS. You have full control over the system, and with the Game Server Installer, your server is ready in just a few minutes—no Remote Desktop connection required. This guide explains what you need, how the installation works, and how to manage your OpenTTD server afterward.
| Requirement | OpenTTD |
|---|---|
| Operating system | Windows Server 2019 or later |
| Memory | At least 2 GB |
| Free disk space | At least 2 GB on drive C: |
OpenTTD is available in the Game Server Installer only for Windows. If your VPS runs Linux, install a Windows Server template via Settings > Reinstallation. This will delete all data on your VPS. Learn more in Server Reinstallation.
- Open your VPS in the ZapX dashboard and go to the Tools tab. Select the Game Server Installer.
- Under Your server's operating system, select the Windows tile.
- Under Choose game, search for OpenTTD and select it.
- Under Set up server, specify the Server name and Player slots—that is, how many players can be connected at the same time. You can find the Game port under Advanced settings.
- Click Install on this VPS, then click Start installation.
The installer downloads OpenTTD 15.3 from the official download site cdn.openttd.org, along with the free OpenGFX 8.0 graphics. You don't need the original Transport Tycoon files. The installer then sets up the server and starts it with a new map. For more details about the installation process, see the Game Server Installer guide.
The server runs OpenTTD 15.3. Players need exactly the same version to connect.
Your server won't initially appear in the public server list. Players can connect directly using the IP address and port. To make it public, see Configuration below.
You can also install OpenTTD yourself using a command. In the last step, copy the displayed command, connect via Remote Desktop, and run it in Windows PowerShell as an administrator.
When installation is complete, the installer shows your server address under How to connect. The installer-generated Remote Console (RCON) password is displayed once under Login credentials. If you install through the dashboard, the installer doesn't set a password for joining the game. To connect, open Multiplayer in the game and use Add server to enter your VPS IP address and port, which is 3979 by default. You can also find the IP address in the Overview of your VPS in the ZapX dashboard.
Your server files are located on the VPS at C:\ZapX-GameServers\openttd\:
| Folder/file | Contents |
|---|---|
server\openttd-15.3-windows-win64\ | OpenTTD program files |
data\openttd.cfg | Server settings |
data\private.cfg | Server name |
data\secrets.cfg | Passwords |
data\save\ | Saved games; save\autosave\exit.sav is the most recently saved game |
data\newgrf\, data\game\, data\ai\ | NewGRFs, Game Scripts, and AIs you add |
logs\server.log | Server output |
Your OpenTTD server starts automatically when the VPS starts and restarts after a crash. To manage it, connect via Remote Desktop and use the desktop shortcuts:
OpenTTD (openttd) - StartOpenTTD (openttd) - StopOpenTTD (openttd) - Restart
When stopped, the server saves the map to save\autosave\exit.sav. The next time it starts, it loads that saved game.
OpenTTD settings are stored in data\openttd.cfg. Since version 15, the server name is also stored in data\private.cfg, and passwords are stored in data\secrets.cfg. When OpenTTD shuts down, it rewrites openttd.cfg with all the current values. So stop the server before editing the file, then start it again afterward.
To make your server visible in the public server list, stop the server, set server_game_type = public in the [network] section of openttd.cfg, and start it again. Alternatively, send the set network.server_game_type public command via RCON.
The installer rewrites the server name, player slots, and passwords every time it runs, including when you update. So change these values through the installer: select OpenTTD again, adjust the settings, and click Update. You can enter a password for joining the game during a command-line installation; the script will prompt for it without displaying it.
Passwords are stored in plain text in secrets.cfg and openttd.cfg, and are therefore also included in every backup. Don't share your backups.
Updates aren't installed automatically. To update, open the Game Server Installer again and select OpenTTD. The installer detects the existing installation and displays Update. Alternatively, use the OpenTTD (openttd) - Update shortcut on the VPS. The installer is fixed to OpenTTD version 15.3, and your map and settings are preserved during updates.
| Port | Protocol | Use |
|---|---|---|
| 3979 | TCP and UDP | Game and server list |
The installer opens these ports in the Windows Firewall. If you start the installation from the dashboard, it also opens them in your VPS's Network Firewall. If you installed using a command, check the ports there yourself. The admin port (game port + 1, 3980 by default) is used internally only for a clean shutdown and is intentionally not opened.
Use the OpenTTD (openttd) - Backup shortcut to save your games, settings and passwords, as well as any NewGRFs, Game Scripts, and AIs you've added, to a ZIP file at C:\ZapX-GameServers\_backups\openttd\. Use OpenTTD (openttd) - Restore to restore a backup.
Your entire VPS is also backed up automatically every day. With an active ZapX Pass, you can restore these backups yourself and create your own. Learn more in Daily backups, restores, and restricted actions.