{
  "id": 22887923,
  "title": "How We Built Browser-Based Remote Desktop for Windows PCs",
  "url": "https://urgent.news/2026/12/01/how-we-built-browser-based-remote-desktop-for-windows-pcs",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-01T02:38:58.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/oniconnect/how-we-built-browser-based-remote-desktop-for-windows-pcs-2g7n"
  },
  "original_language": null,
  "account": "Remote-support tools typically require installation of a viewer app before assistance can be provided. However, OniConnect's RMM platform sought a different approach: admins open a browser tab, click a device, and instantly see its screen without any client software, VPN, or port forwarding on the customer's network. This article details how they built this system and the trade-offs encountered along the way.\n\nThe system consists of three main components: a Windows agent (built in C# with .NET Framework) installed on each managed PC, a PHP backend managing accounts, device inventory, sessions, and authorization, and a small Node.js relay that sits between the agent and the browser, forwarding frames.\n\nThe relay is kept separate from the backend to ensure high-speed, latency-sensitive screen traffic doesn't compete with web requests. It receives screen frames from the agent and forwards them to the browser via WebSocket connections. The relay acts as a dumb intermediary, forwarding bytes without interpreting them.\n\nWhen an admin clicks \"Remote connect,\" the backend verifies the user's entitlements and sends a short-lived session token to the agent. The agent establishes a WebSocket connection to the relay, and the browser connects to the relay with the same token. Communication between the agent and the browser is done via WebSocket messages, with INPUT (mouse move/click, key events), PING, and END_SESSION messages. The relay forwards all messages without modification.\n\nScreen capture is achieved through GDI (BitBlt on the desktop DC), encoding frames, and streaming them as binary WebSocket messages. The agent sends these frames immediately after session acceptance to minimize the time to first frame, which was initially around 26 seconds but improved to near-instantaneous within the OniConnect system.\n\nInput from the browser is translated into device coordinates and sent as INPUT messages to the agent, which then replays them using SendInput. Keyboard handling accounts for layout differences to ensure accurate input replication. For headless or RDP-only machines, the system temporarily moves the session to the console before connecting.\n\nSecurity measures include HMAC-signed agent requests, step-up verification for full-control sessions using authenticator codes, and short-lived, audited sessions with idle and absolute timeouts. The relay protocol does not include terminal/PTY message types, and remote command execution occurs through the backend's command queue, separate from the screen-streaming path.\n\nFuture improvements might involve implementing WebRTC for lower latency and adaptive bitrate, but the current approach using outbound-only agents, a dumb relay, and a browser viewer serves the purpose well for a small team.",
  "summary": "Most remote-support tools make you install a viewer app before you can help anyone. We wanted the opposite: an IT admin opens a dashboard in a browser tab, clicks a device, and sees its screen — no client software, no VPN, no port forwarding on the customer's network. This post is a walkthrough of how we built that for OniConnect, our RMM (remote monitoring and management) platform, and the…",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}