Urgent.News

What's breaking now, across hundreds of outlets.

Tech

How We Built Browser-Based Remote Desktop for Windows PCs

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…

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.

The 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.

The 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.

When 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.

Screen 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.

Input 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.

Security 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.

Future 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.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Why We Built an RMM Priced Per Device, From $0.50

If you've ever shopped for RMM (remote monitoring and management) software as a one-person IT shop, you've probably had the same experience: every vendor wants to talk about "per-technician pricing,"…

  • OniConnect offers per-device pricing starting at $0.50 per device per month.
  • Designed for solo admins and small MSPs managing 20-500 endpoints.
  • Transparent pricing eliminates need for sales calls or demos.

Install Nginx on Ubuntu (AWS EC2): Start It, Enable It, Check It

My Node app runs on port 4000. That means anyone who opens it has to type :4000 at the end of the URL. Real sites don't work like that. The fix is to put a web server in front of the app.

  • Install Nginx on Ubuntu EC2 using sudo apt install -y nginx
  • Start Nginx service with sudo systemctl start nginx
  • Verify Nginx status with sudo systemctl status nginx

More from Tuesday, 1 December 2026 →