any1 / wlvncc

A Wayland Native VNC Client
ISC License
94 stars 12 forks source link

Implement reverse connections #3

Open NDagestad opened 3 years ago

NDagestad commented 3 years ago

I needed to do a reverse connection to the vnc server so I implemented it quickly, if My libvncserver changes are merged upstream, would you want this in wlvnc ? (my patches to libvncserver can be found in my fork or at https://git.dagestad.fr/~nicolai/libvncserver)

any1 commented 3 years ago

What do you use this for?

NDagestad commented 3 years ago

When the computer your want to contrôle is not accepting incoming connections or behind a nat or something it can be quite useful, in my cas it is on a corporate windows PC where I cannot control the firewall rules. I am not sure how common the functionality is, but I have seen some clients implement it like vinagre, tigerVNC, and tightVNC (at least the server does so I would assume the client too)

any1 commented 3 years ago

Can this not also be done with ssh tunneling?

NDagestad commented 3 years ago

It might be, I am not familiar enough with windows to know on top of my head, I can try when I get back on Monday

NDagestad commented 3 years ago

Well after a few days of trying, I could not get VNC to work through the ssh tunnel. The tunnel itself works but for some reason, it just doesn't connect to the server...