Pairing
Pairing connects the mobile app to a Loka server that you run.
Pairing URL
Section titled “Pairing URL”The server prints a loka://pair URL when it starts. The URL includes the
network address, port, TLS certificate fingerprint, and a pairing token.
Token lifetime
Section titled “Token lifetime”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.
Public host configuration
Section titled “Public host configuration”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:
LOKA_HOST=0.0.0.0 LOKA_CONNECT_HOST=loka.example.com cargo run -p cli -- serveSafety
Section titled “Safety”Treat pairing URLs as sensitive while they are valid. They contain enough information for a client to attempt pairing with the server.