wayvnc icon indicating copy to clipboard operation
wayvnc copied to clipboard

Reverse-VNC

Open 1000i100 opened this issue 3 years ago • 4 comments

I love to find something as easy to use as Gitso, but compatible with wayland.

Does wayvnc will handle reverse-vnc connection ?

1000i100 avatar Apr 30 '21 11:04 1000i100

No, but if your goal is to tunnel through NAT, then you can use ssh tunneling.

any1 avatar Apr 30 '21 11:04 any1

@1000i100 : Does SSH tunneling meet your needs?

Perhaps a FAQ.md entry and/or example script to cover this case would be useful?

lack avatar Jan 18 '23 09:01 lack

SSH is surely a more secure alternative, but for cases where this is not easily possible, the following would be a pure client-side possibility:

WAYVNC_SOCKET=$XDG_RUNTIME_DIR/wayvnc.socket wayvnc -u $WAYVNC_SOCKET & socat unix-connect:$WAYVNC_SOCKET tcp-connect:$MY_VNC_SERVER:5500

It simply starts wayvnc in "normal" vnc mode and makes socat connect both listening sockets initiating a reverse VNC connection. What do you think of putting this as an alternative into FAQ?

bwildenhain avatar Apr 06 '23 08:04 bwildenhain

This feature would be most welcome in this scenario:

  • Technician runs xtigervncviewer -listen, and does port forward in his router,
  • Remote user needing support, just runs wayvnc -connect technician-ip. Just one command. No port forwarding, no SSH tunnels...

@bwildenhain, I tried that command from raspios12 with xtighervncviewer -listen and Ubuntu 22.04 on the other side, but it didn't work for me. Later on when I Ctrl+C'ed the wayvnc process, the tigervnc on the other side said The connection was dropped by the server before the session could be established. So it sounds like there was an attempt, but it was unsuccesful. Did you manage to make that command work for you? If so what configuration did you use? Thank you!

alkisg avatar Oct 12 '23 09:10 alkisg