Skip to content

Pairing

Pairing connects the mobile app to a Loka server that you run.

The server prints a loka://pair URL when it starts. The URL includes the network address, port, TLS certificate fingerprint, and a pairing token.

Normal pairing URLs are valid for 10 minutes. Demo mode pairing URLs are valid for 30 days.

If a token expires, restart the server or request a fresh pairing URL.

By default, the server detects the local network address. For deployments where clients should use a public IP or DNS name, set LOKA_CONNECT_HOST:

Terminal window
LOKA_HOST=0.0.0.0 LOKA_CONNECT_HOST=loka.example.com cargo run -p cli -- serve

Treat pairing URLs as sensitive while they are valid. They contain enough information for a client to attempt pairing with the server.