Description
An RFB proxy, written in go that can save and replay FBS files
* Supports all modern encodings & most useful pseudo-encodings
* Supports multiple VNC client connections & multi servers (chosen by sessionId)
* Supports being a "websockify" proxy (for web clients like NoVnc)
* Produces FBS files compatible with tightvnc player (while using tight's default 3Byte color format)
Can also be used as:
* A screen recorder vnc-client
* A replay server to show fbs recordings to connecting clients
Tested on tight encoding with:
* Tightvnc (client + java client + server)
* FBS player (tightVnc Java player)
* NoVnc(web client)
* ChickenOfTheVnc(client)
* VineVnc(server)
* TigerVnc(client)
VncProxy alternatives and similar packages
Based on the "Networking" category.
Alternatively, view VncProxy alternatives based on common mentions on social networks and blogs.
-
fasthttp
Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http -
kcptun
A Stable & Secure Tunnel based on KCP with N:M multiplexing and FEC. Available for ARM, MIPS, 386 and AMD64。N:M 多重化と FEC を備えた KCP に基づく安定した安全なトンネル。 N:M 다중화 및 FEC를 사용하는 KCP 기반의 안정적이고 안전한 터널입니다. Un tunnel stable et sécurisé basé sur KCP avec multiplexage N:M et FEC. -
gnet
🚀 gnet is a high-performance, lightweight, non-blocking, event-driven networking framework written in pure Go./ gnet 是一个高性能、轻量级、非阻塞的事件驱动 Go 网络框架。 -
Netmaker
Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks. -
kcp-go
A Crypto-Secure, Production-Grade Reliable-UDP Library for golang with FEC -
netpoll
A high-performance non-blocking I/O networking framework, which focused on RPC scenarios, developed by ByteDance. -
mqttPaho
The Paho Go Client provides an MQTT client library for connection to MQTT brokers via TCP, TLS or WebSockets. -
fortio
Fortio load testing library, command line tool, advanced echo server and web UI in go (golang). Allows to specify a set query-per-second load and record latency histograms and other useful stats. -
go-getter
Package for downloading things from a string URL using a variety of protocols. -
gobetween
:cloud: Modern & minimalistic load balancer for the Сloud era -
gev
🚀Gev is a lightweight, fast non-blocking TCP network library / websocket server based on Reactor mode. Support custom protocols to quickly and easily build high-performance servers. -
nbio
Pure Go 1000k+ connections solution, support tls/http1.x/websocket and basically compatible with net/http, with high-performance and low memory cost, non-blocking, event-driven, easy-to-use. -
gmqtt
Gmqtt is a flexible, high-performance MQTT broker library that fully implements the MQTT protocol V3.x and V5 in golang -
peerdiscovery
Pure-Go library for cross-platform local peer discovery using UDP multicast :woman: :repeat: :woman: -
easytcp
:sparkles: :rocket: EasyTCP is a light-weight TCP framework written in Go (Golang), built with message router. EasyTCP helps you build a TCP server easily fast and less painful. -
gaio
High performance async-io(proactor) networking for Golang。golangのための高性能非同期io(proactor)ネットワーキング -
raw
Package raw enables reading and writing data at the device driver level for a network interface. MIT Licensed. -
winrm
Command-line tool and library for Windows remote command execution in Go -
arp
Package arp implements the ARP protocol, as described in RFC 826. MIT Licensed. -
go-cleanhttp
Get easily stdlib HTTP client, which does not share any state with other clients. -
ethernet
Package ethernet implements marshaling and unmarshaling of IEEE 802.3 Ethernet II frames and IEEE 802.1Q VLAN tags. MIT Licensed. -
buffstreams
A library to simplify writing applications using TCP sockets to stream protobuff messages
Access the most powerful time series database as a service
Do you think we are missing an alternative of VncProxy or a related project?
Popular Comparisons
README
VncProxy

An RFB proxy, written in go that can save and replay FBS files
- Supports all modern encodings & most useful pseudo-encodings
- Supports multiple VNC client connections & multi servers (chosen by sessionId)
- Supports being a "websockify" proxy (for web clients like NoVnc)
- Produces FBS files compatible with tightvnc's rfb player (while using tight's default 3Byte color format)
Can also be used as:
- A screen recorder vnc-client
- A replay server to show fbs recordings to connecting clients
Tested on tight encoding with:
- Tightvnc (client + java client + server)
- FBS player (tightVnc Java player)
- NoVnc(web client) => use -wsPort to open a websocket
- ChickenOfTheVnc(client)
- VineVnc(server)
- TigerVnc(client)
- Qemu vnc(server)
Executables (see releases)
- proxy - the actual recording proxy, supports listening to tcp & ws ports and recording traffic to fbs files
- recorder - connects to a vnc server as a client and records the screen
- player - a toy player that will replay a given fbs file to all incoming connections
Usage:
recorder -recFile=./recording.rbs -targHost=192.168.0.100 -targPort=5903 [email protected]@@@@
player -fbsFile=./myrec.fbs -tcpPort=5905
proxy -recDir=./recordings/ -targHost=192.168.0.100 -targPort=5903 [email protected]@@@@ -tcpPort=5903 -wsPort=5905 [email protected][email protected][email protected]!
Code usage examples
- player/main.go (fbs recording vnc client) * Connects as client, records to FBS file
- proxy/proxy_test.go (vnc proxy with recording)
- Listens to both Tcp and WS ports
- Proxies connections to a hard-coded localhost vnc server
- Records session to an FBS file
- player/player_test.go (vnc replay server)
- Listens to Tcp & WS ports
- Replays a hard-coded FBS file in normal speed to all connecting vnc clients
Architecture
Communication to vnc-server & vnc-client are done in the RFB binary protocol in the standard ways. Internal communication inside the proxy is done by listeners (a pub-sub system) that provide a stream of bytes, parsed by delimiters which provide information about RFB message start & type / rectangle start / communication closed, etc. This method allows for minimal delays in transfer, while retaining the ability to buffer and manipulate any part of the protocol.
For the client messages which are smaller, we send fully parsed messages going trough the same listener system. Currently client messages are used to determine the correct pixel format, since the client can change it by sending a SetPixelFormatMessage.
Tracking the bytes that are read from the actual vnc-server is made simple by using the RfbReadHelper (implements io.Reader) which sends the bytes to the listeners, this negates the need for manually keeping track of each byte read in order to write it into the recorder.
RFB Encoding-reader implementations do not decode pixel information, since this is not required for the proxy implementation.
This listener system was chosen over direct use of channels, since it allows the listening side to decide whether or not it wants to run in parallel, in contrast having channels inside the server/client objects which require you to create go routines (this creates problems when using go's native websocket implementation)
The Recorder uses channels and runs in parallel to avoid hampering the communication through the proxy.
The code is based on several implementations of go-vnc including the original one by Mitchell Hashimoto, and the recentely active fork by Vasiliy Tolstov.
*Note that all licence references and agreements mentioned in the VncProxy README section above
are relevant to that project's source code only.