Websockify

289 views
Skip to first unread message

Julius Hamilton

unread,
Apr 1, 2022, 2:53:40 PM4/1/22
to no...@googlegroups.com

Hey,


I installed websockify but I’m not sure how to integrate it my with local VNC server for NoVNC.


Is it the section of the README “Encrypted WebSocket connections (wss://)” that explains it?


Or is there any guide on this?


Thanks very much,

Julius

Samuel Mannehed

unread,
Apr 4, 2022, 3:20:41 AM4/4/22
to no...@googlegroups.com
On 2022-04-01 20:53, Julius Hamilton wrote:
> I installed websockify but I’m not sure how to integrate it my with
> local VNC server for NoVNC.
>
> Is it the section of the README “Encrypted WebSocket connections
> (wss://)” that explains it?

No.

> Or is there any guide on this?

No guide, sorry.

websockify is started by running the command "run":

./run [source_addr:]source_port [target_addr:target_port]

If you're simply connecting to a local VNC server using noVNC you might
also want to use the option "--web=DIR" to start a web server that can
serve the noVNC files:

./run --web=DIR [source_addr:]source_port [target_addr:target_port]

DIR in the above command should point to the directory you want the web
server to serve from.

source_addr and source_port in the above command is the address and port
from which you want to proxy, i.e. the address/port you will use in your
browser.

target_addr and target_port is the address and port of your VNC server.

Is there any specific reason to why you didn't use noVNC's helper script
"novnc_proxy"?

Best regards,
--
Samuel Mannehed Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46 13 214 600

Julius Hamilton

unread,
Apr 10, 2022, 11:46:44 AM4/10/22
to no...@googlegroups.com
Thank you.

I’m pretty sure I’ll use that noproxy script. I think the setup might be much simpler than I thought.

I’m curious, why does this document seem to say that one can normally access a VNC server from a web browser, without any special setup? 

And why in general can web browsers not do this? Why not just include the VNC package in their internal libraries?

I mean why Firefox, Chrome, etc don’t build this in.

Thanks very much,
Julius 








--
You received this message because you are subscribed to the Google Groups "noVNC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to novnc+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/novnc/277d724e-c0da-05d7-ea8a-69b50fee66b2%40cendio.se.

Samuel Mannehed

unread,
Apr 11, 2022, 3:36:23 AM4/11/22
to no...@googlegroups.com
Hi Julius,

On 2022-04-10 17:46, Julius Hamilton wrote:
> I’m curious, why does this document seem to say that one can normally
> access a VNC server from a web browser, without any special setup?
> https://www.ibm.com/docs/en/i/7.3?topic=support-using-vncviewer-web-browser
> <https://www.ibm.com/docs/en/i/7.3?topic=support-using-vncviewer-web-browser>

That document is referring to RealVNC, which (while sharing a common
ancestor a long time ago) is a different thing. RealVNC is not open
source and neither is their protocol, it's a paid product. It's
impossible for projects like noVNC to be compatible with RealVNC. And
they don't have any interest in being compatible with open source
clients like us.

While we can't know for sure, my guess is that RealVNC's server has a
built-in WebSocket proxy, just like the one we're talking about here.

> And why in general can web browsers not do this?
It's not about VNC, it's about communication with a regular TCP service.
Browsers are built to be mostly cut off from the local system, it's
often referred to as a sandboxed environment. Just imagine that a script
somewhere on the internet gets loaded into the browser and could from
inside the browser access every computer reachable by the browser with
arbitrary protocols. It's as a safety barrier.

> Why not just include the VNC package in their internal libraries?
>
> I mean why Firefox, Chrome, etc don’t build this in.

You have Chrome Remote Desktop, perhaps that's what you're looking for?

Plugins or extensions in the browser likely has fewer restrictions, but
that means you're loosing one of the main advantages of a web
application - the users will have to install something.

Nathan McCorkle

unread,
Jun 6, 2022, 6:19:04 PM6/6/22
to noVNC


On Monday, April 11, 2022 at 12:36:23 AM UTC-7 sam wrote:
Hi Julius,

 It's
impossible for projects like noVNC to be compatible with RealVNC.

I am using noVNC with a realVNC server. I had to disable authentication though. Still playing with the startup options on the server to see if there's a "best" configuration for the two to talk. 
Reply all
Reply to author
Forward
0 new messages