Phones for your own server
View agent prompt
Help me let my team use the Slatebox phone app with my own Slatebox server. Ask me which address the server has: a team address https://<name>.slatebox.team, my own Cloudflare Tunnel, my own domain, or only http://localhost. Phones need an https address with a public name; with only localhost, tell me to give it an address first and that choosing it now avoids signing people in again later. Give me the exact command: npx slatebox install with --mobile on and --signup invite, or slatebox phones on for a server that is already installed. Tell me to open https://<my address>/mobile on my phone, or to scan the QR code slatebox phones qr prints. Never ask me to paste a token, password or setup link into this conversation. Read the official guide at https://docs.slatebox.com/Installation/phones-for-your-own-server.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-for-your-own-server.md.
Your team can open the slates on your own Slatebox from the Slatebox app for iPhone and Android. The phone talks only to your server's own https address. Phone access is free, on every install.
You need three things:
- An https address with a public name, such as a team address
https://<name>.slatebox.team. - Phones turned on for the server.
- The app on each phone, pointed at your address.
Choose an address
The installer asks where Slatebox answers. Pick the address before people start signing in: moving to another address later signs everyone out of their phones and apps.
| Address | Phones | What you need |
|---|---|---|
A free team address, https://<name>.slatebox.team (recommended) |
Work anywhere, on by default | Docker. Team addresses |
| Your own Cloudflare Tunnel | Work anywhere, on by default | A Cloudflare account and a domain on it. Your own Cloudflare Tunnel |
| Your own domain | Work wherever that address answers | DNS and HTTPS, or your own proxy. Your own domain |
Only this computer, http://localhost |
No | Nothing. To use phones later, give the server an address. |
A server on your company network or VPN only works too. Phones on a private network
Turn phones on
With a team address or your own tunnel, phones are on unless you say otherwise. The installer asks:
Let people use the Slatebox phone app with this server? They sign in with their own account here or your company sign-in. Slates stay on this server; the app keeps a small offline copy.
npx slatebox install --team-address acme --mobile on --signup inviteslatebox phones on # let phones sign in
slatebox phones status # on or off, and the address phones use
slatebox phones off # stop every phone, at its next requestAn administrator can also switch phones on and off in Admin › Phones. slatebox phones off is final: the switch in Admin › Phones stays off until you run slatebox phones on.
Phones need an https address with a public name. The server refuses to start with SLATEBOX_MOBILE=on and an http:// address, localhost or a bare IP address. Options
Pair a phone
- Open
https://<your address>/mobileon the phone, or scan its QR code. The installer prints it at the end of the install,slatebox phones qrprints it again, and it is in Admin › Phones and Account › Devices. - Tap Open in Slatebox. The app opens with your server's address filled in. You can also type the address yourself under Your team's own server.
- Sign in on your server's own sign-in page, with your password or your company sign-in, and allow the app.
You get your slates in the app, with live changes from the people editing them. The QR code and the page hold no secret: everyone still signs in with their own account.
The app keeps a small offline copy of the slates you opened. When your server cannot be reached, the app says so and shows that copy.
The phone checks it is your server
At the first sign-in, the phone remembers your server's identity, a key that lives in your server's database. Before it sends a sign-in again, it checks that the address still answers with that key. If the address ever answers from another server, the phone refuses to send anything and says so.
A restored backup keeps the key. A new install on an empty data volume has a new key: people remove the server from the app and add it again.
Who can sign up
A server people can reach from the internet is invite-only by default: nobody creates an account without an invitation, and guests are off.
--signup |
SLATEBOX_SIGNUP |
Who can create an account |
|---|---|---|
invite (default with a team address or your own tunnel) |
invite |
People a team admin invites from Manage team, and people your single sign-on lets in |
open |
open |
Anyone who can reach the address |
Invitations are sent by email, so set SLATEBOX_MAIL_URL first. Sign-in, sign-up and password reset are rate-limited for each network address.
See and remove phones
| Where | What you can do |
|---|---|
| Account › Devices | See the phones signed in to your account, and sign one out |
| Admin › Phones | Turn phones on or off, show the QR code, see every signed-in phone, sign one out, or sign out all of them |
Stop access
| To stop | Do this | What happens |
|---|---|---|
| One phone | Sign it out in Account › Devices or Admin › Phones, or sign out in the app | That phone is signed out at its next request |
| One person | Remove the person's account, or deactivate it through SCIM | Their phones are refused at their next sign-in refresh |
| Every phone | slatebox phones off, or the switch in Admin › Phones |
Every phone is refused at its next request |
| The whole address | slatebox tunnel off, or delete the tunnel in Cloudflare |
The address stops answering. Slatebox keeps running on this computer |
Troubleshooting
| What the phone or browser shows | Fix |
|---|---|
"Phone app is off on <host>" |
Turn phones on: Admin › Phones or slatebox phones on. |
| The app says the address "doesn't answer as a Slatebox server" | The address typed must be the server's SLATEBOX_URL exactly, with https:// and no path. slatebox phones status prints the address to use. |
| "Slatebox is set up for another address" (421) | The tunnel's hostname is not the server's address. Set the tunnel's public hostname, and its HTTP Host Header, to the host in SLATEBOX_URL. |
| Cloudflare error 1033 or 530 | The tunnel is not connected. slatebox tunnel status shows its connections and slatebox logs --service tunnel says why. The server must reach Cloudflare on port 7844, TCP and UDP, outbound. |
| Cloudflare error 502 | The tunnel sends to the wrong place. Its service is http://localhost:7070. |
| A sign-in page from Cloudflare Access instead of Slatebox | Cloudflare Access is in front of the address, and the app cannot sign in through it. Take Access off this hostname. |
| The app says it can't reach the server right now | The server or its tunnel is down. The app shows its offline copy and checks again by itself. |
| The app says the server's identity changed | The address now answers from another server. If you reinstalled on an empty data volume on purpose, remove the server from the app and add it again. Otherwise do not sign in, and check who runs the address. |
More: the install guide's troubleshooting · What stays on your server
Questions
Do phones cost anything on a self-hosted Slatebox?
No. Phone access is free on every self-hosted Slatebox, and a team address is free too.
Does the phone connect to my database?
No. The phone uses your server's https address only: sign-in, the Slatebox API and live updates. Your database is never reachable from outside the container.
Can I use phones on a server that only answers on localhost?
No. A phone needs an https address with a public name. Run npx slatebox install again with a team address, your own tunnel or your own domain; your data stays.