Add a device
Sign a computer in to your network, interactively through the browser or unattended with an auth key, and confirm it joined.
Updated · ·By Ivan Vyshniak
Nothing on this page changes with your selection.
Before you start, install the client on the computer.
Sign in through the browser
Use this for laptops and desktops that someone is sitting at.
-
On the computer, run:
shellpeerlify loginIt prints a link, valid for 15 minutes:
textOpen the link below in your browser, sign in, and pick a network: https://web.peerlify.com/login-device?code=K7M4QX2D (link expires 14:32:10) The daemon will pick up the session automatically. Run `peerlify list networks` to verify.On Windows you can use Log in… in the Peerlify tray instead, and on macOS Sign In… in the menu-bar menu.
-
Open the link in a browser, on this computer or any other, and sign in.
-
On the Add this device page:
- Name in network: the device's name, by default the computer's hostname (or the name it last had in another network). Up to 32 characters, no dots.
- Network: choose the network. Each choice shows its subnet and how long device sessions last. A network you can't add a device to right now is greyed out, with the reason under the list: your membership is waiting for an admin's approval, your identity provider suspended your access, or the network is suspended or its subscription has ended.
-
Click Approve.
The page says Device added, and within a few seconds the service connects. The device belongs to whoever approved the sign-in.
Signing in through the browser removes any tags the device had, because the person who approved it becomes its owner.
Sign in with an auth key
Use this for servers, virtual machines and anything without a person at the keyboard.
-
In the console, switch to the network the device should join and create an auth key in Settings → Keys. To have the device join as a tagged, shared resource, add Auto-assign tags.
-
On the device, run:
shellpeerlify login --auth-key=pk_abcdefghijklmnopqrstuvwxyz0123456789ABCDUse
=between the option and the key.
The device joins the key's network, named after its hostname. See Install on servers and headless machines for a one-line install and sign-in.
If the network requires approval
If Manual device approval is on, the new device waits as Pending until an Owner, Admin or IT admin clicks Approve in its row on the Devices page. The browser page says Waiting for approval instead of Device added. A pending device sees no peers, and connects on its own once approved. See Approve devices.
Check that it worked
On the device:
peerlify statusDaemon: running
Version: 2.7.1.173
Auto-update: enabled (network policy)
Signed in: alice@example.com
Network: k3x9q2m7pa
Address: 100.100.0.7
Data plane: active
Peers: 3 reachableAddressis the device's address in the network.Peersis how many devices the access policy lets it connect to. If the line is missing, the policy allows none yet, or the device is pending.- On a device that signed in with a tagged auth key,
Signed inshowsno (peerlify login). That's expected for a shared device. Don't sign it in through the browser: that removes its tags. - A
Policy:line readingnot received yetmeans it's still receiving its rules; wait a few seconds.
In the console, the device appears on the Devices page as Online.
If it didn't work
| Symptom | What to do |
|---|---|
peerlify login prints Unable to reach the daemon … | The service isn't running. See Troubleshooting the client. |
The link page shows an error containing Login link has expired. | Run peerlify login again. |
The page says You aren't a member of any network yet. | Create a network in the console, or ask to be invited. |
This network has reached its plan's device limit. | Remove a device or upgrade the plan. |
| The device stays Offline | See Sign-in and enrollment problems. |