RAT 5 Server / Getting Started

RAT 5 Server Getting Started

A first-run guide for new RAT 5 Server operators covering startup, owner bootstrap tokens, network access basics, and diagnostics mode.

What the server does

RAT 5 Server hosts the HTTPS API that the RAT 5 Client connects to. It also stores RAT data locally and can manage a 7 Days to Die dedicated server install for you.

By default, the server listens on:

https://localhost:7443

That default is local-only. If you want other machines to connect, change the bind address and open the port.

Start the server

Before starting the server for the first time:

  1. Copy config.example.toml to config.toml.
  2. Review the paths and settings in config.toml.
  3. Start the server from its install folder.

Windows

.\rat5-agent.exe --config .\config.toml

Linux

./rat5-agent --config ./config.toml

On first start, RAT 5 Server will create its local data folder and, with the default config, generate its TLS certificate automatically.

If the server has no enabled Owner account, startup also prints a one-time owner bootstrap token to the RAT server console.

First-time setup

Whenever RAT 5 Server has no enabled Owner account, it enters owner bootstrap mode.

The normal first-run flow is:

  1. Start RAT 5 Server.
  2. Read the owner bootstrap token printed in the RAT server console.
  3. Open RAT 5 Client on any machine that can reach the server.
  4. Connect the client to the server URL, such as https://localhost:7443, https://192.168.1.50:7443, or your remote hostname.
  5. When prompted, enter the bootstrap token and create the new Owner account.

After an enabled Owner exists, normal login is available again and the printed token is no longer usable.

If you want other machines to connect

The default server bind is 127.0.0.1:7443, which means only the local machine can reach it. To allow LAN or remote clients:

  1. Change http.bind in config.toml to a reachable interface and port.
  2. Open that port in the host firewall.
  3. If users are outside your LAN, forward that port through your router or use a VPN/private network.
  4. Point client connection profiles at the server's hostname or IP, such as https://rat5-server:7443.

Diagnostics mode

The current diagnostics flag is --diag.

Use it when you want RAT 5 Server to collect a support bundle while it runs and write that bundle when the process shuts down.

Basic example

Windows

.\rat5-agent.exe --config .\config.toml --diag

Linux

./rat5-agent --config ./config.toml --diag

When the server stops, RAT writes a diagnostics bundle zip file. By default, bundles are written under:

<data_dir>\diagnostics\support

or on Linux:

<data_dir>/diagnostics/support

Useful diagnostics options

Option What it does
--diag Enables diagnostics collection and writes a support bundle on shutdown.
--diag-dir <path> Writes diagnostics bundles to a specific folder instead of the default support folder under the data directory.
--diag-exit-after <duration> Starts in diagnostics mode, then shuts down automatically after the given duration so the bundle is finalized.

Example:

Windows

.\rat5-agent.exe --config .\config.toml --diag --diag-dir .\tmp\support --diag-exit-after 10m

Linux

./rat5-agent --config ./config.toml --diag --diag-dir ./tmp/support --diag-exit-after 10m

Common first-run notes

Release-package uninstall behavior

Current packaged RAT server releases ship uninstall helpers that distinguish between a standard uninstall and a purge uninstall.