Otii Server

A note to users of Otii 2

Otii 2 was shipped with otiicli that was used to run Lua-scripts, act as a server and handle user management.

The CLI tool in Otii 3 - otii_server, does only act as a server. Otii 3 does not support Lua and the user management must be done from the test scripts.

Command Line Interface

You can also start the TCP server using otii_server, the command line version of Otii.

The server is packaged within the application and to find where it is located on your system, select Help › Find otii_server in Otii 3.

If you run otii_server with the --help option you will see all available options:

# otii_server --help

Options:
  -V, --version               output the version number
  -v, --verbose               verbose output
  -c, --config <config-file>  configuration file
  -h, --help                  display help for command

To start a server run the command:

./otii_server

The server is by default listening on host address 127.0.0.1 and port 1905. If you want to change the default settings, or need to add settings for a proxy, create a config.json file:

{
    "tcpserver": {
        "host": "127.0.0.1",
        "port": 1907
    },
    "proxy": {
        "host": "192.168.1.1",
        "port": "8080",
        "auth": {
            "username": "johndoe",
            "password": "mypassword"
        }
    }
}

and start the server with:

./otii_server --config config.json

The server will run until you stop it by pressing Ctrl-C.

In a future release Otii will ship with tools that will make it possible to run otii_server as a Windows Service, or a daemon in Ubuntu and macOS.

Last updated