Dedicated server
From OpenTTD
(Redirected from Rcon password)
A dedicated server is a OpenTTD network game server that does not have a local client taking part in the game. A dedicated server can run in the background on a computer.
Contents |
[edit] Starting a dedicated server
Run the OpenTTD executable using the -D (capital D!) command line option.
[edit] In Windows
Method 1:
- Create a shortcut to
openttd.exe - Right-click on the shortcut and click Properties
- Add
-Donto the end of the Target line - Click Apply
- Run the shortcut
Method 2:
- On the start menu click Run
- Enter:
"c:\(path to openttd)\openttd.exe" -D - Click OK
[edit] In Linux
- Run
openttd -Din a terminal. If you are connecting to the server via SSH and would like the game to run when you logout you should use GNU Screen or dtach.
[edit] In OS/2
- Run the
dedicated.cmdfile. If you runopenttd -D, you will not see a console window and will be unable to provide commands to the program.
[edit] Configuring the server
There are 3 ways to change the game options:
- Launch a single player game, change the settings, and close the game.
- Use the console commands to control the server while it is running.
- Edit the openttd.cfg file manually. See diff custom for some help.
Available Tools: Web Interface
Change the network settings in the Network section of openttd.cfg:
- Set lan_internet to 0.
- Change server_name so you can identify the server,
- Set server_advertise to true, so it will be visible on the server list
- If you have multiple network interfaces make sure you set server_bind_ip.
- If you are behind a router, make sure that you forward the port specified by server_port (both TCP and UDP)
[edit] Controlling the server with rcon
Configure the dedicated server to accept rcon commands:
- In the dedicated server window, type
rcon_pw <password>.
- Example:
rcon_pw x8na7f
Connect to the server as a client:
- Launch OpenTTD normally.
- Find your server on the multiplayer list and connect to it.
- Open the console (~ key).
- Type
rcon <password> "<command>".
- Example:
rcon x8na7f "kick 5"
[edit] Loading a game
In the dedicated server window (or with rcon):
- Type
lsto list the files of the current directory, a number will be beside each one, which represents<number>below. - Type
cd <number>to go to that directory. - Type
load <number>to load that file.
- You can also load savegames and scenarios with the
-g "<filename>", command line option.
- Example:
openttd.exe -D -g "scenario/echo.scn".


