Pix
Understand Pix

Direct connection vs relay

Understand what changes when Pix uses your local network or a relay.

Pix keeps the same secure application channel on both transport paths. The difference is how the phone reaches the host.

Direct connectionRelay connection
Where it worksiPhone and host on the same local networkiPhone and host on different networks
How the host is reachedBonjour discovery, then direct TCPHost opens an outbound WebSocket to the configured relay
What runs PiThe host computerThe host computer
What the relay handlesNothingChannel rendezvous and forwarding of encrypted frames
If the path failsThe phone cannot reach the host on that LANRemote reachability stops; Pi keeps running locally

The secure channel stays the same

Pix uses the pix-wire encrypted framing after either path is established. A relay does not terminate that application channel, decrypt it, or turn into a Pi runtime.

The relay does handle routing metadata needed to operate the channel, such as the connection role and payload-free operational counters. It forwards opaque binary frames, does not queue them when the peer is absent, and does not store application payloads.

What remains on the host

Pi and the native session remain on the host in both modes. Switching from direct to relay changes reachability and availability dependencies, not session ownership.

Use Remote access for configuration steps and How Pix works for the overall model.

On this page