# Phones on a private network

## Agent prompt

```text
Help me use the Slatebox phone app with my own Slatebox that only answers on our private network. Ask me whether we use Tailscale, a VPN with internal DNS, or neither. For Tailscale, give me the tailscale serve command and the matching npx slatebox install --url command. For internal DNS, tell me the certificate must come from a public certificate authority, and that a private certificate authority is not supported by the phone app.

Read the official guide at https://docs.slatebox.com/Installation/phones-on-a-private-network.md first. Tell me what you verified and which steps I still need to do.

If your client cannot fetch the documentation, read the same published file at https://raw.githubusercontent.com/Slatebox/slatebox-docs/retype/Installation/phones-on-a-private-network.md.
```

The Slatebox phone app works with a server that only answers inside your network, as long as two things hold:

- The address is `https://` with a name, such as `https://boards.corp.example.com`.
- Its certificate comes from a public certificate authority, one phones trust without setup.

Phones then work wherever they reach that address: in the office, or on your VPN or tailnet. The app never signs in over plain `http://`.

## Tailscale

Tailscale gives the server a name in your tailnet with a public certificate.

<!-- tabs -->

```sh Shell
# On the machine that runs Slatebox
tailscale serve --bg 7070
npx slatebox install --url https://slatebox-host.your-tailnet.ts.net --mobile on
```

<!-- /tabs -->

Use the name `tailscale serve` prints. Install Tailscale on each phone and join the tailnet; the phone then opens the address like any other. If live changes do not reach the phone, the app checks for changes by itself about every 20 seconds.

## Internal DNS with a public certificate

Point a name on your own domain at the server inside your network, and give your proxy a certificate for it from a public certificate authority (a DNS challenge works without the name being reachable from the internet). Then run:

<!-- tabs -->

```sh Shell
npx slatebox install --url https://boards.corp.example.com --mobile on
```

<!-- /tabs -->

Your proxy ends HTTPS and forwards to port 7070, with WebSocket upgrades. [Behind your own proxy](install-with-docker.md#behind-your-own-proxy)

## Not supported

| Setup | Why |
| --- | --- |
| A certificate from a private certificate authority | The phone app does not trust it. |
| A self-signed certificate | The same. |
| `http://` or a bare IP address | The app signs in over https to a named address only. |

For an address that works anywhere with nothing to set up, use a [team address](team-addresses.md) or [your own Cloudflare Tunnel](own-cloudflare-tunnel.md). [Phones for your own server](phones-for-your-own-server.md)
