Enhancement: pass-through web browsing requests

16 views
Skip to first unread message

Mario Nigrovic

unread,
Jan 28, 2025, 6:54:45 PM1/28/25
to tigervn...@googlegroups.com
Folks -

I'm curious whether anyone has ever requested some mechanism where web browsing requests could get passed from the VNC session back out to the machine where vncviewer is running?

For example, if I run vncviewer from a Windows machine where I'm also running my Chrome browser, then when some CAD tool running under VNC requests a web page be displayed, the request would somehow get handed off to Chrome (under Windows) to handle the actual request.

This would mean we wouldn't have to run a second browser within the VNC environment. Furthermore, at least in my environment, the Linux machines don't have direct access to the WWW, and cutting and pasting URLs is tedious.

-- Mario

This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.

Andrew Aitchison

unread,
Jan 29, 2025, 11:29:37 AM1/29/25
to TigerVNC User Discussion/Support

This is a great request.

I have the same desire; but my local device is an Android tablet,
so no tigervnc. I guess we want interoperability between VNC solutions ?

(Some) Linux distros have a web-browser command like sensible-browser,
urlviewer or htmlview which is intended to be customized,
then used by all applications which wish a web page to be displayed.
This might be a good place for the vnc mechanism to hook into.

Currently I use 'xclip' to pass the URL from the remote application
to the clipboard on my viewing device. From there it is easy to paste
it into the local browser and view.
(I have a script involving tty-copy to do nearly the same thing
through a mosh/ssh terminal session)

> For example, if I run vncviewer from a Windows machine where I'm also
> running my Chrome browser, then when some CAD tool running under VNC
> requests a web page be displayed, the request would somehow get handed off
> to Chrome (under Windows) to handle the actual request.

Do you happen to know how your CAD tool currently requests the URL
to be displayed on the remote screen ?
If this is "under the hood", the enhancement would need to hook
into that mechanism to divert the request to the local/client device.

Andrew Aitchison

unread,
Jan 29, 2025, 11:32:46 AM1/29/25
to TigerVNC User Discussion/Support

file:// URLs will only work when the tigervnc client
and server machines share a filesystem.
Should this be restricted to socket or localhost connections ?

The URL will of course need to be escaped and checked carefully,
so that the local device is not induced to run a command controlled
by an attacker on the remote machine.
Reply all
Reply to author
Forward
0 new messages