Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse-VNC #99

Open
1000i100 opened this issue Apr 30, 2021 · 4 comments
Open

Reverse-VNC #99

1000i100 opened this issue Apr 30, 2021 · 4 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@1000i100
Copy link

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

Does wayvnc will handle reverse-vnc connection ?

@any1
Copy link
Owner

any1 commented Apr 30, 2021

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

@lack
Copy link
Collaborator

lack commented Jan 18, 2023

@1000i100 : Does SSH tunneling meet your needs?

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

@lack lack added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Jan 18, 2023
@bwildenhain
Copy link

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?

@alkisg
Copy link

alkisg commented Oct 12, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants