# Devices

Source: https://tiltas.openpanel.sh/docs/concepts/devices

> Personal devices and Servers, how long a sign-in lasts, approval, and names.

A **Device** is a phone, computer or server that runs Tiltas and is signed in to a Network. There are two kinds, and the
kind decides who it belongs to, how it signs in and whether its sign-in expires.

| | Personal device | Server |
|---|---|---|
| Belongs to | the Member who signed it in | the Account |
| Signs in with | the app (or `tiltas up`) and a code a Member approves | a [Join key](/docs/devices/join-keys), no browser |
| Sign-in expires | yes, after the days set in Settings (180 by default) | never |
| Reachable from the start | by its owner's other Personal devices | by nobody, until a rule or Service says so |
| When its Member leaves | removed with them | stays |

## Personal devices

You add a phone or computer by opening the app and choosing **Sign in**. The app shows a code; you type it on
[tiltas.openpanel.sh/connect](/connect) while signed in to the console, check the Device the page names, and approve.
The code is never inside a link, so a link someone sends you cannot add their machine to your Network.

On macOS, Windows, iPhone and Android, the app starts with **Allow incoming connections** off: other Devices, even your
own, cannot open connections to it until you turn that on in the app's Settings. Reaching out from it always works.

## Servers

A Server joins with a Join key, made by an Owner or Admin under **Join keys**, and needs no browser: the install
command or a container does it. It belongs to the Account, so it stays when the person who set it up leaves, and its
sign-in does not expire.

## Sign-in expiry

A Personal device signs in again after the number of days in **Settings** → **Personal device sign-in expires after**
(1 to 365, 180 by default), so a lost phone cannot stay in forever. Once it expires, the Device reaches nothing until you
sign it in again. Servers never expire.

For one Device you trust and cannot easily reach, an Owner or Admin can open it in the console and turn on **Keep this
Device signed in**. See [Sign-in expiry](/docs/access/sign-in-expiry).

## Approval

With **Device approval** on (**Settings** → **Devices**), a new Device reaches nothing until an Owner or Admin approves
it under **Devices**. See [Device approval](/docs/access/device-approval).

## Names

Each Device has a name, such as `nas`, that the Network reaches it by. It comes from the computer's name, or the name
you give at install, made into lowercase letters, digits and dashes (63 at most). When the name is taken, the new
Device gets `nas-2`. The Device's owner or an Admin can rename it in the console. A Device and a Service cannot share a
name.

## Online

A Device is **Online** while it is in contact with the Coordinator. The console shows when each Device was last seen,
and for each connection whether it is direct or relayed.

## Who manages a Device

Owners and Admins manage every Device. A Member manages their own Personal devices: rename them, remove them, and add
Services to them. Groups, subnet routes and sign-in expiry are for Owners and Admins only.

## Removing a Device

Remove a Device in the console under **Devices**, by signing out in its app, or with `tiltas logout` on Linux. It leaves
the Network at once, and the Services it hosted are deleted with it. Every way is in
[Remove a Device](/docs/people/remove-a-device).
