Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A websockets proxy, written in C

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 debian
Octocat-spinner-32 .gitignore
Octocat-spinner-32 BSDmakefile
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 wsproxy.c
README.md

wsproxy: WebSockets-to-TCP proxy (for noVNC)

Description

wsproxy is an application that can be run from inetd, which allows noVNC to connect to an unmodified libvncserver. Furthermore, it makes use of the recently added support in noVNC for file names. The file name is used to denote the port number. Say, you connect to:

ws://host:41337/25900

The wsproxy opens a connection to:

vnc://host:25900/

The address to which wsproxy connects, is the same as the address to which the client connected (using getsockname()).

Configuration

wsproxy can be enabled by adding the following line to inetd.conf:

41337 stream tcp nowait nobody /usr/sbin/wsproxy wsproxy 25900 25909

The two parameters of wsproxy denote the minimum and the maximum allowed port numbers. This allows a single wsproxy instance to multiplex connections to multiple VNC servers. When the minimum and the maximum allowed port numbers are identical, wsproxy will connect to that port, regardless of the file name provided.

Something went wrong with that request. Please try again.