.. SPDX-License-Identifier: GPL-3.0-or-later .. SPDX-FileCopyrightText: James Robertson Server Command Line Options *************************** The ``freeciv21-server`` program has a collection of command-line options that can be used to control the behavior of the server when run. To get a listing of all the options, you can use the ``--help`` option, such as: .. code-block:: sh $ ./freeciv21-server --help .. tip:: It is generally considered a best practice to write a ``.sh`` script to run your server. This way you do not have to remember all the command line options to use every time you run your server. ``-A, --Announce `` Announce game in LAN using protocol PROTO (IPv4/IPv6/none). Default is ``IPv4``. Options include: ``IPv4``, ``IPv6``, or ``none``. ``-B, --Bind-meta `` Connect to metaserver from this address. Default will be your public IP address assigned from your internet service provider. .. note:: With regard to the command line arguments concerning the metaserver, Freeciv21 does not have its own metaserver at this time and the legacy Freeciv metaserver does not support Freeciv21. This means, right now, that all commands related to the metaserver are held over from the fork from legacy Freeciv until the Longturn community creates a custom metaserver. ``-b, --bind `` Listen for clients on ADDR. Default is the IP address of the server computer. ``-d, --debug `` Set debug log level (fatal/critical/warning/info/debug). Default log level is ``info``. ``-e, --exit-on-end`` When a game ends, exit instead of restarting. ``-F, --Fatal`` Raise a signal on failed assertion. An assertion is a code calculation error. With this set, the server process will SEGFAULT instead of issuing a warning message to the terminal console. ``-f, --file `` Load saved game FILE. Useful when wanting to restart a game. ``-i, --identity `` Be known as ADDR at metaserver or LAN client. ``-k, --keep`` Keep updating game information on metaserver even after failure. Default is not to keep updating. ``-l, --log `` Use FILE as logfile. Generally a very good idea when running a server. ``-M, --Metaserver `` Set ADDR as metaserver address. Allows you to point to a specific metaserver instead of the default: https://meta.freeciv.org/ ``-m, --meta`` Notify metaserver and send server's info. ``-p, --port `` Listen for clients on port PORT. Default is 5556 as assigned by `IANA `_ ``-q, --quitidle