Main features
- VNC client that runs in any modern browser
- Works in mobile browsers on iOS and Android, with touch gestures
- JavaScript library for embedding in other web applications
- websockify proxy with a built-in web server
- VNC password, RSA-AES, VeNCrypt Plain, Apple and UltraVNC logins
- Tight, ZRLE, JPEG and H.264 encodings
- Scaling, clipping and remote resizing
- Unicode clipboard copy and paste
- Snap package that can serve several VNC servers
What noVNC does
noVNC lets you use a VNC desktop from a web browser. It is two things in one repository: a JavaScript library that speaks the VNC protocol inside the browser, and a small web application built on it with a connection screen, settings and an on-page control bar. Because it needs no plugin or installed client, it works from locked-down PCs, Chromebooks, tablets and phones.
Many platforms embed it for exactly that reason. The README names OpenStack, OpenNebula, LibVNCServer and Cendio’s ThinLinc, and the project wiki keeps a longer list. When a hosting panel or virtualization manager offers a “console” button that opens a desktop in a browser tab, it is often noVNC.
How connections work
Browsers cannot open raw TCP connections, so noVNC talks WebSockets. Some VNC servers, such as x11vnc (LibVNCServer) and QEMU, accept WebSocket connections directly. For everything else, the sister project websockify translates between WebSockets and the VNC server’s TCP port and also serves the noVNC web pages. The bundled novnc_proxy script downloads and starts websockify for you, for example in front of a TigerVNC session on port 5901, and prints the address to open.
There is no NAT traversal, account system or device list. noVNC reaches whatever VNC servers the proxy can reach, and you decide how the proxy itself is exposed. The README suggests binding it to localhost when it does not need to be public; otherwise give websockify a TLS certificate so the browser connects over wss://.
Security
noVNC supports a wide range of VNC security types: none, the classic VNC password, RealVNC’s RSA-AES, Tight, VeNCrypt Plain, XVP, Apple’s Diffie-Hellman scheme used by macOS Screen Sharing, and UltraVNC’s MSLogonII. Which ones you can use depends on the server. Logins, permissions and audit trails are not part of noVNC. If you need several users with different rights, put it behind an authenticating reverse proxy, or use a gateway such as Apache Guacamole or a server with built-in user management such as KasmVNC.
Features and platforms
The client handles the common VNC encodings (raw, copyrect, RRE, hextile, tight, tightPNG, ZRLE, JPEG, Zlib) and H.264. It can scale or clip the remote desktop to the window, ask the server to resize, render the cursor locally and copy and paste text with full Unicode. Touch gestures stand in for mouse actions on phones and tablets, and the interface is translated into many languages. Support for a Linux Wayland desktop depends entirely on the VNC server behind it.
Setting up noVNC
For a quick test, clone the repository and run ./utils/novnc_proxy --vnc localhost:5901. For a longer-lived setup, the snap package (snap install novnc) can run as a service with several listeners, each pointing at a different VNC server. Distribution packages and container images from other projects are also common. Developers can import the library and build their own interface around it.
Licensing
The core library is MPL-2.0, which lets you embed it in proprietary web applications as long as changes to noVNC’s own files are shared. The HTML and CSS files use the BSD-2-Clause license, the Orbitron font the SIL Open Font License, and the images Creative Commons BY-SA 3.0, which is why GitHub reports the license as “Other”. websockify is LGPL-3.0.
Limitations
noVNC is only a client. It needs a VNC server and usually websockify, offers no logins or permissions of its own, and has no file transfer or audio. Performance is bound by VNC and by decoding in the browser, so video and 3D work are better served by Sunshine or RDP.
Who it suits
noVNC suits developers and administrators who want browser access to VNC servers they already run, and platform builders who need an embeddable remote console. For a complete browser gateway with accounts and MFA, see Apache Guacamole. The remote desktop guide explains where each tool fits.
License details
MPL-2.0. Core JavaScript is MPL-2.0; HTML and CSS are BSD-2-Clause, the bundled font is OFL-1.1 and images are CC BY-SA 3.0. The websockify proxy is a separate LGPL-3.0 project.
Technical details
Self-hosting needs
- A VNC server
- websockify (unless the server speaks WebSockets)
Built with
- JavaScript
- Python
GitHub topics
- arraybuffer
- html
- html-canvas
- html5
- javascript
- modern-browsers
- novnc
- vnc-client
- websockets
- websockify
- wss
Reviewed by the OpenSourcePicks editors from the project's repository and documentation. Something out of date? Tell us.