Routes
How messages travel between Uplink apps: the relay, your own relay, Direct, the local network, LoRa radio, texts, and testing them.
Between Uplink apps (friends, groups, encrypted texts), messages can travel more than one way. Settings › Routes shows the ways your phone reaches others, tried from the top: one that fails or gets no answer gives way to the next.
The ways this phone reaches another, tried from the top.
Press one to send a test and see which route carries it.
The relay server
Uplink's relay server (at gogho.st) passes sealed packets between apps: friends, circles, spaces and calls' setup. It can't read them; it sees only which installs are talking, as any server would. It's also where your username, your sealed account backup and a circle's sealed files are kept.
Your own relay server
Anyone can run the relay on a server of their own and use it in place of ours. Under Settings › Routes › Relay server, type its address (relay.example.com is enough) and press Check it and use it. Nothing changes unless an Uplink relay answers there; when one does, the app tells you what moving means and switches only when you say so. The section always shows which relay is in use, and Go back to Uplink's relay switches back in one press. Running the server itself is on Run your own relay.
Relays can pass messages to each other. Add a friend on another relay as @name@their.relay. Everything else is still kept on each relay apart.
Friends on another relay
Relays can pass sealed messages to each other, so a friend doesn't have to use the same relay as you. Each of you goes on using your own, and the two relays hand each other what you write. Neither can read it.
To add someone on another relay, open Contacts, tap Add a friend, and type their username with their relay after it: @maya@relay.example. Nobody is asked while you type: their relay is asked when you tap Add, through yours where it talks to theirs. They are kept, and shown, under that name, and their card says which relay they are on.
Whether a relay talks to others is up to whoever runs it, and it is off until they switch it on. Settings › Routes says which yours is: Passes messages to other relays, or Doesn't pass messages to other relays. It takes both relays: where yours doesn't, the app asks their relay itself (as nobody: not as you), tells you the request can't be passed on yet, and sends it again by itself for two weeks. Where yours says theirs won't take messages from it, that is the answer.
How to run one (Docker, or systemd behind Caddy or nginx, with coturn for calls) is on its own page: Run your own relay. The sample files are in the repository, in relay/deploy/.
Direct
A second way between Uplink apps, tried after the relay server: straight from one device to another. The relay stays first, because it is fast and keeps a message for someone who is away. The direct route is the way through when the relay can't carry something, for instance when it can't be reached, and the way your app checks what the relay says (below).
It starts off. Switch it on under Settings › Routes on an Android phone or a computer (the Mac, Windows or Linux); it isn't in the iPhone app or the browser yet. Until you switch it on, none of it runs on your device. Before you do, Settings says what it means.
Your device links only with your own other devices and with your friends' devices. They are told where it is in sealed messages; nobody else is, and nothing is put in any public directory. What crosses a direct link is sealed exactly as it is through the relay.
The ways this phone reaches another, tried from the top.
A link helper sees which devices link and how much they send, never who they are or what is said.
A link helper sees which devices link and how much they send, never who they are or what is said.
- Who counts as a friend: only someone you and they both said yes to, as a friend by username or by number. People you share a group with, and people who have only asked, are never linked with or told anything.
- What a friend's device learns: your device's network address, as with any direct connection, and on a phone only while you're using the app. Switch on Only through link helpers and friends are told at once, and from then see the helper's address instead; links are slower then. You can switch it on before you switch Direct on, so that no friend's device ever sees your address. It is off unless you switch it on, because where the relay names no link helper, nothing would link at all.
- Link helpers are servers that help two devices find each other across networks, and pass their sealed packets along where no straight path can be made. The relay you use names them. Where it names none (a relay of your own that hasn't been given one), Settings says so: devices behind most home routers can't link then, and direct links work only between devices that can reach each other as they are, such as two on the same network.
- On a phone the direct network runs only for something of your own: a message you send, or the relay being unreachable while you use the app. It stops two minutes after, whatever a friend's device does, so it doesn't wear the battery down; with the app put away nothing of it keeps the phone awake. On a computer it stays up while the route is on.
- Invisible: while you've chosen to be shown as Invisible, your device makes no direct links with friends' devices, since a link would show it is there. Your own devices still link with each other.
- Off: switch Direct off under Routes and every link is closed at once, nothing is linked, and nobody is told where your device is. What it knew of your friends' devices stays, for when you switch it on again.
- If it can't start on your device, Settings › Routes says why under Direct, and every other route works as before.
Local network
A third way between Uplink apps: straight between devices on the same Wi-Fi or wired network, with no server and no internet at all. It comes after the relay server and Direct, as the way through when neither can carry something, and by itself it keeps you talking where there is a network and no internet: a cabin, a plane's Wi-Fi with nothing behind it, an office whose line is down.
It starts off. Switch it on under Settings › Routes on an Android phone or a computer (the Mac, Windows or Linux); it isn't in the iPhone app or the browser. The first time, a Mac asks whether Uplink may find devices on your local network, and Windows asks whether it may be reached on private networks: say yes, or the route stays down and Settings says so.
The ways this phone reaches another, tried from the top.
Anyone else on the network sees that a copy of the app is at this address, never who you are.
- How devices find each other: every few seconds your device says it is here to the whole network, in a way only your own devices and your friends' can recognise: a mark for each of them, made from the key the two of you already seal messages with, good for ten minutes and for the one address it is said from, and mixed with noise that looks the same. It names nobody. Anyone else on the network can tell that some copy of Uplink is at that address, and roughly how many people it could have at most (under 8, under 16, under 32 and so on): not who you are, not who your friends are, not how many you have. Someone who says your device's words again from their own address is recognised by nobody.
- Who it links with: your own other devices and your friends' devices, as Direct does. Never people you only share a group with, and never someone who has only asked to be a friend. Both devices need the route switched on and the app open.
- What a link is: each device proves to the other that it holds your shared key before anything is sent, and everything after is sealed for that link, on top of the sealing every message already has. Someone else on the Wi-Fi sees sealed bytes between two addresses.
- What a friend's device learns: your device's address on that network (something like 192.168.1.20), which anything on the same network could see anyway.
- Only the network you are on: the route speaks and listens only at the private addresses a home, office or café network gives out, and only on a network this device itself has such an address on. It never says anything to the open internet, and a friend's device can't send yours connecting anywhere else.
- On a phone it runs only while the app is in use, and closes everything when the app is put away. On a computer it stays up while the route is on.
- Invisible: while you're shown as Invisible, only your own devices can tell the device is yours. It lets go of every link to a friend's device and starts over under a new name, so your friends' devices lose the one they knew. It still says it is here, for your own devices to find: a copy of the app is still seen at that address by the network, as before.
- Groups: with no internet, what you write in a group reaches the members who are on this network with you. The others are owed it, and have it as soon as any route reaches them, for a week.
- What it holds itself to: however much anyone on the network says to it, it reads and looks at only so much a second, makes only a few connections at a time, and closes a link that says more than a link may. A stranger who floods the network can slow the finding of a device that has just arrived; they can't make yours link with anyone, read anything, or stop the app.
- Some networks keep devices apart (many guest and hotel networks do): there the devices never hear each other, nothing is found, and the other routes carry everything as before. The same on a phone joined to a Wi-Fi that has no internet while its mobile data is on: Android sends everything by mobile data then, the relay carries, and this route finds nothing until mobile data is off.
LoRa radio
A fourth way between Uplink apps: by radio, through a small LoRa board running Meshtastic, with no internet and no phone signal. Two boards reach each other a few kilometres apart in the open, and further where other Meshtastic boards are about, since every board passes packets on. It is slow and the air is shared, so it comes last: it carries what no other route reaches.
What you need: a Meshtastic board for each of you, such as a Heltec WiFi LoRa 32 (V2 or V3), set to your country's region and to the same channel. Meshtastic's own flasher and app set a board up.
Plug the board into your Android phone
Use a USB cable (USB-C to USB-C, or an OTG adapter). Android offers to open Uplink for it. Tick Always and Uplink can use the board from then on without asking. With Uplink already open, it takes the board as soon as you plug it in.Uplink switches LoRa on by itself
The LoRa route turns on and uses the board, and Uplink looks for your friends on the mesh: it says a short, sealed hello to the friends you were most recently in touch with. Each one whose board and app hear it answers.See who's on the mesh
Under Settings › Routes › LoRa board are the friends heard on the mesh, each with their board. When nothing else reaches one of them, what you write goes to them by radio.
The ways this phone reaches another, tried from the top.
On a computer (a Mac or Linux), plug the board in by USB and pick its port under Settings › Routes › LoRa board (it lists the ports it finds, like /dev/cu.usbserial-0001), then press Use this board. A board on your Wi-Fi works from any device: type its address (192.168.1.20, or Meshtastic.local) instead.
- Sealed end to end. What goes over the air is sealed between the two of you before it reaches the board, as on every route. The board adds its channel's encryption on top. Everyone on the channel hears every packet. Only the friend it was sealed for can open it, and the rest drop it unread.
- What others on the mesh can see: that a packet came from a board, how big it is, and the 16-byte name your app is known by to your friends, though not who you are or what you said. On Meshtastic's default channel anyone with a board can see that much. A private channel shared only with your friends hides it from strangers.
- Small things only. A radio packet holds about 200 bytes. A longer message crosses in up to six pieces and is put back together, so about 900 characters at most. Pictures, files and calls don't go this way.
- Speed: a text and its answer take a few seconds between two boards in range (about 2 s one way on Meshtastic's LongFast setting). Further across a mesh, and on a busy channel, it takes longer.
- Which board each friend is on: the first message to a friend goes to every board on the channel. Once their answer comes, the app knows their board and sends to it alone, and Meshtastic confirms it arrived.
- Unplugged: the route says the board is gone and tries again every 15 seconds. Plug it back in and it's straight back.
- Not yet: iPhones (which would need Bluetooth), Windows serial ports (a board on Wi-Fi works there), and finding boards on the network by themselves.
How the relay is checked
The relay is fast and keeps messages for people who are away, so it comes first. Your app also checks what it says, so a relay that drops something, keeps it back, or gives someone's username to another key doesn't go unnoticed.
- Usernames. Each friend you added by username is looked up again once a day, and your own each time you connect. If the relay that once gave a friend's username to them now gives it to another account, their profile says so; usually it's because they changed or gave up their username and someone else took it. Either way you're still talking to the friend you added: the relay can't swap them for someone else. If a friend tells their app they go by a new username, and the relay agrees, that's the one looked up from then on. Their app is told too, through the relay and over a direct link where one is open. Each relay is its own directory, so on a relay of your own nobody's username is held against what ours said. If you use Uplink on several devices, they take turns: your friends are still looked up once a day between them, and each of your devices shows what was found. These lookups and the checks on friend requests use at most a quarter of what the relay answers your account in an hour, leaving the rest for adding friends and accepting requests. If the relay ever says that's used up, Accept tells you by when it frees up.
- Your own username. If the relay gives it to another account, you're told once, calmly, with the usual reasons: you gave it up or changed it on another of your devices, made a new key for this phone (the old key still holds it), or use another relay.
- Add-me links carry your account's name (made from your key) after a
#, which no browser sends to any server. Whoever opens your link adds that key and no other, whatever the relay says. - Messages. With Direct switched on, your device and a friend's compare, over a direct link, which messages went between them and when, never what they said. Anything your device never got is sent again straight. Only once it has come is anything held against the relay, and then as the friend's device's word. A device that was away while another of yours took a message, or a message lost when the relay restarted, isn't counted against it.
What is compared is which messages went and came, and when: never their words.
Without Direct, the relay is checked by the username lookups alone, and Settings › Routes says so. Check now dials the friends the relay says are online, once a minute at most; with no direct link in use, a few are checked by themselves while the app is open.
SMS as a route
When the relay can't be reached, a message to a friend can go as a data text over the phone network instead: still sealed, needing no internet, and reaching a phone whose app is closed. Each one counts as a text on your plan, so only small messages go this way.
Which route each conversation is on
Settings › Routes lists each conversation with someone the routes reach, the one used last first, with the route that last carried something to them, the one that last brought something from them, and when. A group of friends goes person by person, because each of its people is reached by a route of their own: one may be on the relay server while another, sitting beside you, is on the local network.
Circles and spaces always go by the relay server they were made on, and texts by the phone's carrier. Kept on this device only, out of any backup, for a week, and deleted when you sign out.
The list is kept on your device from one time you open the app to the next, for a week, in a file that no backup takes, and it is deleted when you sign out. It holds which route and when, never anything that was said. A circle or a space is a room on its relay, so it always goes by the relay server; texts go by the phone's carrier.
Test a route
Under People you can reach, press someone and choose Send a test, By the relay server only, By a direct link only, By the local network only (each where that route is on), or By SMS only (one text on your plan). Lately shows how recent messages went.
Invite someone by text
Invite someone by text opens a new chat with an invitation written. Choose who, change the words if you like, and send it as any text. Once they have the app and you text each other, it offers to turn encryption on between you.
Docs