惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
B
Blog
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
Jina AI
Jina AI
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
L
LangChain Blog
M
MIT News - Artificial intelligence
Blog — PlanetScale
Blog — PlanetScale
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell
Y
Y Combinator Blog
F
Fortinet All Blogs
H
Help Net Security
B
Blog RSS Feed
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
S
SegmentFault 最新的问题

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Build a Screen Sharing App Using noVNC (Like AnyDesk)
Deepak Jaiswal · 2026-06-23 · via DEV Community

Deepak Jaiswal

 Ever wondered how tools like AnyDesk or TeamViewer let you control a remote computer right from your browser? In this guide, we’ll build exactly that — a browser-based remote desktop app using noVNC, websockify, and Node.js.

By the end, you’ll have a working screen sharing app where anyone can connect to a remote machine from a web browser — no client software needed.

What We’re Building
A remote desktop system with:

A VNC server on the host machine (the one being shared)
A WebSocket bridge to relay VNC traffic over the web
A noVNC HTML5 client that runs entirely in the browser
A Node.js + Express backend to manage sessions and serve the app
This is the same architecture used by cloud providers like AWS, DigitalOcean, and Gitpod for their browser-based terminals and desktops.

How It Works
[Browser] ←→ WebSocket ←→ [websockify] ←→ TCP ←→ [VNC Server] ←→ [Desktop]

A VNC server (like x11vnc or TigerVNC) captures the screen and handles input on the host machine
websockify acts as a bridge — it converts WebSocket connections from the browser into plain TCP connections that the VNC server understands

noVNC is a JavaScript VNC client that runs in the browser and talks to websockify over WebSockets

Prerequisites
A Linux machine (Ubuntu 20.04+ recommended) as the host
Node.js 18+
Python 3 (for websockify)
A desktop environment (GNOME, XFCE, etc.) or a virtual display
sudo apt update
sudo apt install -y x11vnc xvfb websockify nodejs npm
Step 1: Set Up a Virtual Display (Optional)
If your server doesn’t have a physical monitor, create a virtual display using Xvfb:

Start a virtual display on screen :1

Xvfb :1 -screen 0 1920x1080x24 &

Set the display environment variable

export DISPLAY=:1
To verify it’s running:

DISPLAY=:1 xterm & # Should open a terminal on the virtual display
Step 2: Start the VNC Server
We’ll use x11vnc to capture the display and expose it over VNC:

x11vnc -display :1 \
-rfbport 5901 \
-passwd yourpassword \
-forever \
-shared \
-noxdamage

view full post visit my medium

https://medium.com/@deepakmukundpur/build-a-screen-sharing-app-using-novnc-like-anydesk-03a31def47cc