Skip to content

Guides · Connecting

Remote access by ID (MangoScreen)

Reach a machine behind a home router or office NAT with a 9-digit Remote ID and a password, with no port forwarding and no VPN. Remote desktop is its own app, MangoScreen: install it on the machine you share and on the one you connect from. Both dial out to your relay, which pairs them and steps aside when a direct path is possible.

  • Needs a relay server
  • MangoScreen on both machines
  • Host: Windows, macOS, Linux
  • About 10 minutes

How it works

The machine you want to reach is the host. With incoming access on, MangoScreen on the host connects out to your relay and registers. The relay hands back a Remote ID (9 digits) and a password (6 digits). The host never opens an inbound port.

The machine you connect from is the viewer. It also connects out to the relay and presents the ID and password. If they match, the relay pairs the two. MangoScreen then tries a direct peer-to-peer path between the machines. If that works, the relay only brokered the introduction. If not, the session keeps flowing through the relay.

The viewer and the host both connect outbound to the relay, which pairs them. A direct peer-to-peer path is tried first, with the relay as fallback. Viewer types ID + password Your relay pairs, then falls back Host (behind NAT) registered, no open ports direct P2P path, tried first
Both ends dial out, so neither needs a public address. The relay pairs them and carries the session only when the direct path cannot be set up.

Before you start

  • MangoScreen on both machines. Download it from the MangoScreen page. On Windows it is a single MangoScreen.exe with nothing to install: run it from wherever it was downloaded. It is separate from MangoSSH, and both can be used side by side.
  • A relay server. There is no public one. Run your own with the relay guide.
  • The same relay on both machines. In MangoScreen, open Settings → Relay Server on the host and on every viewer, and enter the same Relay URL and Auth token. It is the same relay MangoSSH uses for SSH Persistent Sessions and the PAM Broker, but each app keeps its own copy of the setting.
A saved relay makes this machine reachable

Once a Relay URL is saved, MangoScreen registers the machine with the relay every time it starts, and generates a fresh ID and password. With the default accept mode, anyone who has both can connect. The ID and password are only shown inside MangoScreen, but treat them like a password. To require a click at the keyboard, change the accept mode as described below.

The MangoScreen window

MangoScreen is one window with two pages in its title bar:

  • Dashboard shows this machine's Device ID and Access Password, an Ask someone to connect to this computer row for invites, a Connect to Remote card, and your saved and recent devices.
  • Settings holds the Access, Relay Server and Startup tabs.

Closing the window keeps MangoScreen running in the system tray, so the machine stays reachable. Right-click the tray icon to quit.

Used remote desktop inside MangoSSH?

Earlier MangoSSH versions had this as a P2P window. It now lives in MangoScreen, and MangoSSH no longer registers the machine with the relay. Set the relay in MangoScreen once and carry on. MangoSSH still connects to Windows machines by ID over RDP.

Allow incoming access

  1. On the host, open MangoScreen's Settings → Access.

  2. Under How people can reach this machine, turn on Connect by ID — relay. Click Test beside it to check the relay answers.

  3. The Connection details panel shows the Remote ID and Password with Copy buttons. Send both to the person connecting, the way you would send a password.

  4. Choose what happens when someone connects (next section).

  5. So the machine stays reachable after a reboot, open the Startup tab and tick Start MangoScreen on login. This covers a machine where someone signs in. For a Windows PC that must be reachable at the sign-in screen, use the unattended service.

Regenerate issues a new ID and password, which locks out anyone who had the old ones. The ID and password also change whenever MangoScreen restarts or re-registers with the relay. After five wrong passwords the relay refuses further attempts for that ID, and the host has to regenerate.

When someone connects

The When someone connects setting, on the Access tab, applies to every incoming connection on this machine.

OptionWhat happens
Let them straight in — ID and password onlyThe default. The right ID and password connect at once. This is the only mode that works when nobody is at the machine.
Ask me here firstThe viewer still needs the ID and password. Then an Allow remote access? dialog appears on the host. Nobody answering counts as a decline after 60 seconds.
Ask me here first (password still required)Behaves exactly like Ask me here first. It exists because other remote-access tools name the choice this way.

Every request is asked about in the MangoScreen window, which opens itself from the tray if needed.

RDP or MangoSSH Direct

The viewer picks how to see the host, per connection. The host serves whichever is asked for.

RDPMangoSSH Direct
What it isWindows' own Remote Desktop server on the host, reached through the relay.MangoScreen's own screen capture and input, with no RDP involved.
Host needsWindows with Remote Desktop turned on.A signed-in desktop session. On macOS, Screen Recording and Accessibility permission.
Sign-inThe viewer enters a Windows username and password after the ID and password.None beyond the ID and password. You see the desktop as it is.
Connect fromMangoSSH's Connect by ID (RDP view).MangoScreen.
AlsoStandard RDP behaviour.Clipboard, file and folder transfer (drag and drop works), chat, several sessions at once. No audio yet.

On macOS, grant the two permissions from the Remote Access settings: Grant… next to Screen Recording and Open Settings… next to Accessibility. Apple only lets you turn these on by hand in System Settings. It is a one-time step.

What each host platform supports

Host OSRDPMangoSSH DirectDirect P2P pathBefore sign-in
WindowsYesYesYesYes, with the service (RDP)
macOSNoYesYesNo
LinuxNoExperimentalYes, not yet verifiedNo

On Linux, release builds capture X11 and wlroots-based Wayland desktops such as Sway. GNOME and KDE on Wayland are not included, and pairing reports that. MangoScreen's Settings show which capture engine was detected. Linux hosting has not been tested on real hardware yet. Viewers work on Windows, macOS and Linux.

Connect from another device

With MangoScreen (MangoSSH Direct): on the Dashboard, fill in Remote Device ID and Access Password in the Connect to Remote card and click Connect. Tick Save this device and its password to keep it under Saved for one-click reconnects; the password goes to your OS keychain. Each session opens in its own tab, so you can be connected to several machines at once.

With MangoSSH (RDP):

  1. Open the RDP view and click Connect by ID.

  2. Leave Connection method on Remote ID and enter the Remote ID and Password from the host.

  3. Fill in Windows sign-in with an account on the host. The Remote ID and password only open the path. The Windows account signs you in. Tick Remember sign-in for this ID to keep the Windows credentials in your OS keychain. Display quality sets resolution and colour depth: lower is smoother on slow links.

  4. Click Connect.

A saved password only works while the host keeps the same registration. After the host restarts, connect with the new values and save again, or use the Windows service for a fixed ID.

Invite someone to connect

Reading an ID and password out over the phone is slow and easy to get wrong. An invite skips it: the person who needs help sends one to you.

  1. You (the helper) tell them your MangoScreen Device ID. It is not secret on its own.

  2. On their Dashboard, under Ask someone to connect to this computer, they type your ID, optionally their name, and click Invite.

  3. Your MangoScreen opens and asks: … invites you to connect to their computer. Click Connect. Their ID and password come with the invite, so nobody types them.

Both machines need MangoScreen open with the same relay. The relay only passes an invite on after checking the sender's own ID and password, refuses invites to a machine already in a session, and allows one delivered invite every few seconds. If the sender's When someone connects is set to ask, they still click Allow. An invite waits two minutes for an answer. A relay older than this feature answers that it doesn't support invites yet; update it from the relay guide.

Direct path and relay fallback

Every Connect by ID session tries a direct connection first and falls back to the relay by itself. There is nothing to switch on. A direct path is usually faster, and the session's data then never passes through the relay. Sessions are encrypted between the two machines on either path.

  • Windows and macOS hosts form a direct path. Linux hosts do too in principle; that is not yet verified on real hardware.
  • To find a path through NAT, MangoScreen asks public STUN servers (Google and Cloudflare) for each machine's public address.
  • Some networks block the direct path, for example strict corporate firewalls. The relay fallback covers them, at relay speed.

Unattended access on Windows

The app itself only answers while someone is signed in to Windows and MangoScreen is running. To reach a PC that sits at the sign-in screen, for example after a Windows Update reboot, install MangoScreen as a Windows service. It starts at boot, before anyone signs in. This is Windows only, and it is the one time MangoScreen installs anything: it copies itself to C:\Program Files\MangoScreen and runs the service from there, so the downloaded file can be moved or deleted afterwards.

  1. Save the relay on the Relay Server tab, and set When someone connects to Let them straight in — ID and password only. Nobody can click Allow before Windows sign-in, so the service only runs in password mode.

  2. Turn on Remote Desktop in Windows on this PC. The service reaches the sign-in screen through it.

  3. On the Startup tab, under Unattended access before Windows login, click Install Service and approve the Windows administrator prompt.

  4. When the status reads Installed and running, the service's own Remote ID and Password appear. Write them down. Unlike the app's own, they stay the same across restarts, reboots and reinstalls. Only Uninstall Service resets them. It also removes the Program Files copy.

Connect to it from MangoSSH with Connect by ID over RDP, then sign in with a Windows account. MangoSSH Direct can also reach the service, but its capture before sign-in is still experimental. If someone is connected, Disconnect them ends their session.

The service copies the relay URL, the token and the allow-list below when it is installed. After changing any of them, or to move the service to a newer MangoScreen, click Install Service again from the new version. The service writes a log to C:\ProgramData\MangoSSH\service.log.

Also reachable through this PC

A registered agent can pass connections on to other machines on its own network, but only to the ones you list. The Also reachable through this PC box, on the Startup tab on Windows, takes one host:port per line:

127.0.0.1:22
10.0.0.5:3389
10.0.0.12:5900

Click Save list. The agent may reach only these targets, plus this PC's own RDP. The list is used in two places:

  • Browser sharing (next section). Picking another RDP host there adds it to the list for you.
  • PAM Broker targets behind NAT. In the Browser Access wizard's target step, Reach it through a host agent (target behind NAT) sends a brokered SSH, RDP or VNC session through this agent instead of having the relay dial the target. That needs the Windows service (for its stable ID), password mode, and the target on this list. An agent serves one session at a time. See PAM Broker.

The running app applies a saved list at once. The service reads it only at install.

Share in a browser

You can hand someone a link that opens an RDP desktop in any web browser, with nothing to install. The browser reaches the desktop through your relay and this PC, so RDP is never exposed to the internet.

  1. In MangoScreen's Settings, click Share an RDP host in a browser.

  2. Pick This PC to share your own desktop (Windows with Remote Desktop on), or a saved RDP host that this PC can reach. MangoScreen turns on incoming access if needed, adds the host to the allow-list, and copies the link.

  3. Send the link. The person opens it and signs in with that machine's Windows account.

The link is the key

A share link is single-use and expires in about 2 minutes. Anyone who opens it in that time reaches the machine's Windows sign-in. Send it the way you would send a password. For browser access where the relay holds the credential, links can be revoked and RDP sessions can be recorded on the relay, broker the host through the PAM Broker instead.

Troubleshooting

SymptomLikely cause
“Couldn't reach the relay server”The relay is down, the URL is wrong, or a firewall blocks it. Click Test next to Connect by ID — relay.
“invalid or missing bearer token”The Auth token on this device does not match the relay's RELAY_AUTH_TOKEN.
“no host is registered under that ID”The host restarted MangoScreen or lost its relay connection, so its ID changed. Ask for the current ID, or use the Windows service for a fixed one.
“host already has an active viewer”Someone else is connected. A host serves one viewer at a time. A viewer whose network dropped is cleared within about a minute.
“too many failed attempts”Five wrong passwords. The host must click Regenerate.
“nobody is online under that ID” (invite)The person you invited doesn't have MangoScreen open, or uses a different relay.
Nothing happens, then the request is declinedThe host is set to Ask me here first and nobody accepted within 60 seconds.
Service shows running but cannot be reachedRead the error shown under the service status, or service.log. After changing the relay, reinstall the service.