Using BeeBEEP over a VPN
Why BeeBEEP does not find people across a VPN by itself, how to add one person by address, how the others follow, and the office VPN of BeeBEEP 5.x.
For: users · From BeeBEEP 6.0.0 · Updated on
On a VPN -- Tailscale, ZeroTier, WireGuard, your office's VPN -- BeeBEEP does not find the other people by itself. You add one person by address, once, and BeeBEEP finds the people that person is connected to. This page says why, what to do and what to check when it does not work.
Why nobody appears by itself
On a local network BeeBEEP finds the others with announcements sent to the whole network at once. A VPN carries only packets sent to one address, so those announcements never reach the other side. BeeBEEP does not send them on a VPN at all, nor on mobile data: it searches only on local networks, Wi-Fi and cable.
A connection to an address you name is another matter: it goes through whichever network the system chooses, the VPN included. That is why one address is enough.
Add the first person
- Ask the other person for their address on the VPN. On their device, Find or add users shows under This device every address it has, with its port and a button to copy it: the local network's first, then the others, the VPN's among them. Tailscale's own app shows it too, and with MagicDNS a name such as
office-pc.tailnet-name.ts.net, which is better than the address: it keeps working when the address changes. - Open Users and tap Find or add users (the + button).
- Under Add a user by address, write the address or the name in IP address or host name, and the port in Port (
6475unless the other device shows another). - Tap Add a user.
Once connected, BeeBEEP remembers the person and reaches them again at every start. Add a person by address has every form the field takes.
The others follow
Once two BeeBEEP are connected, each tells the other the people it is connected to, and how it reaches them. Your BeeBEEP then tries each of those people directly. Where the VPN lets it through, they appear in your list as if you had added them yourself.
Where it does not, the person you added can pass your messages on, still encrypted end to end, so that device cannot read them: chats and groups work through it. A file does not: it downloads once the two of you can connect directly (see files). This is Relay messages for others in Settings > Network, on for everyone by default on a computer.
For a whole team on a VPN, ask whoever runs it for one list of the computers: reaching computers on other networks is the page for them.
From BeeBEEP 5.x on an office VPN
If BeeBEEP 5.x found your colleagues across the office VPN, it did so through a beehosts.ini file: a list of the office's computers, or of its networks, in BeeBEEP 5.x's own folder. BeeBEEP reads its own beehosts.ini, in its own data folder, and never 5.x's:
| System | BeeBEEP's data folder |
|---|---|
| Windows | %LOCALAPPDATA%\MarcoMastroddiSW\BeeBEEP |
| macOS | ~/Library/Application Support/net.beebeep.beebeep |
| Linux | ~/.config/MarcoMastroddiSW/BeeBEEP |
A copy on a USB stick, or a folder set by your administrator, keeps its data elsewhere: the data folder tells which.
Import from BeeBEEP 5.x, in the Apps tab, copies 5.x's beehosts.ini into BeeBEEP's data folder when there is none there yet; a file already there is yours and stays as it is. BeeBEEP reads the file at every start, so quit BeeBEEP and open it again once after the import.
Without the import, do it by hand, in either of two ways:
- Copy the file. Copy
beehosts.inifrom BeeBEEP 5.x's folder (the folder of itsbeebeep.ini) into BeeBEEP's data folder, then start BeeBEEP again. Write the network. Create
beehosts.iniin BeeBEEP's data folder with one line for the office's network, as your IT department names it:192.168.205.0/24BeeBEEP sends its announcement to every address of that network at start, when your own network changes and when you search.
BeeBEEP 5.x wrote a network as its last address with 5.x's port, such as 192.168.205.255:36475. BeeBEEP reads that line as the network 192.168.205.0/24 from version 5.99.1; an earlier BeeBEEP skips it with a warning in its log. How a line is written has every form.
Colleagues still on BeeBEEP 5.x across the VPN find you too when their own beehosts.ini names your network or your computer; from version 5.99.1, also when they start BeeBEEP 5.x after you. While BeeBEEP knows that 5.x is around (it imported 5.x, met a 5.x user or heard one), it repeats 5.x's own announcement every minute: to each computer of beehosts.ini written with udp or nothing, and to the last address of each network line, as 5.x did. A 5.x that hears it connects to you. Where the VPN does not carry a message to a network's last address, a 5.x started after you and reached only through a network line waits for your next start or search: name its computer on a line of its own.
When nobody appears
Send the following to whoever helps you, or to report a problem:
- the
beehosts.iniof BeeBEEP's data folder, and 5.x's if it had one; - your address on the VPN and one colleague's (Find or add users shows yours under This device);
- what Test connection, in Find or add users, shows for that colleague's address;
- BeeBEEP's log of that day,
beebeep-<year>-<month>-<day>.login the data folder; - whether you use a network password, and whether the colleagues use BeeBEEP 5.x or the new BeeBEEP.
When it does not work
- Test connection, in Find or add users, tries the address once and shows each step: the name, the port's answer, who answered and whether that BeeBEEP can reach you in turn; the first step that fails says the most likely cause (see test the connection).
- A firewall on either device may allow BeeBEEP on the local network only. Allow it on the network the VPN creates too.
- If your VPN restricts ports, TCP
6475, UDP6475and UDP36475must pass between the two devices (what the network must let through). - If you use a network password (Settings > Network > Use network password), both devices need the same one.