Skip to content

Run ​

CLI ​

bash
inlets server -d <domain> [options]

Common flags:

FlagDescription
-d, --domainPublic domain for tunnel URLs (typical setups).
-p, --portHTTP / WebSocket listen port (default 8080).
--tcp-portTCP tunnel listen port (default 8443).
-t, --tokenDefault shared token (when not using file-based clients only).
-c, --configPath to YAML configuration.
-s, --secureHTTPS for generated URLs where applicable (default true in many builds).

Examples:

bash
inlets server -d tunnel.example.com -t your-token
inlets server -c /etc/inlets/config.yaml
inlets server -d tunnel.example.com -p 9000 --tcp-port 9443

Environment variables ​

Server flags can be set with the INLETS_ prefix (CLI overrides env):

  • INLETS_DOMAIN, INLETS_SERVER_PORT, INLETS_SERVER_TCP_PORT, INLETS_SECURE
  • INLETS_NOTIFICATION_PROVIDER, INLETS_NOTIFICATION_URL

Full tables: CLI reference.

Process model ​

Run Inlets under systemd, supervisor, or a container orchestrator. Ensure:

  • The config file path is stable if you rely on hot reload.
  • Ports are published and match port / tcpPort in YAML or CLI.
  • TLS is handled consistently (Inlets --secure / YAML secure vs reverse proxy).

Next ​

  • Configuration — YAML structure and search paths.
  • Advanced — bandwidth, notifications, operational tips.

Documentation for the Inlets Go project.