Forrest logo
back to the openttd tool

openttd:tldr:fddcc

openttd: Join a server with a password.
$ openttd -n ${host}:${port}#${player_name} -p ${password}
try on your machine

This command is used to run the OpenTTD game client with specific connection parameters.

Here is a breakdown of the command and its options:

  • openttd: This is the command to execute the OpenTTD game client.

  • -n: This option is used to specify a network connection.

  • ${host}:${port}: These are placeholders for the hostname and port number to connect to. You will need to replace them with the actual values. The ${host} refers to the server's hostname or IP address, and ${port} refers to the port number the server is operating on.

  • #${player_name}: This is a placeholder for the player name. You will need to replace ${player_name} with your desired player name. It is preceded by # to indicate it as part of the connect string.

  • -p: This option is used to provide a password for the server, if required.

  • ${password}: This is a placeholder for the password of the server. You need to replace ${password} with the actual password required to connect to the server.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the openttd tool