After more 2 000 000 (two million) views on forum for 1.5.0.x development versions... and 1.6.1.0, 1.6.3.0-dev versions
A new stable version, UltraVNC 1.6.4.0 and UltraVNC SC 1.6.4.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38095
Feedback is always welcome

2025-12-05: Celebrating the 23th anniversary of the UltraVNC (26th anniversary since the laying of the foundation stone): https://forum.uvnc.com/viewtopic.php?t=38130

2025-12-03: Could you please complete our poll/survey? Renaming UltraVNC files and service to be more clear: https://forum.uvnc.com/viewtopic.php?t=38128
There was a problem to vote, it is solved now! Thanks in advance!

2025-12-02: We need help: English Wikipedia UltraVNC page has been requested to deletion: https://forum.uvnc.com/viewtopic.php?t=38127
Any help is welcome to improve the UltraVNC page and/or to comment on the Wikipedia Talk page

2025-05-06: Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078

2023-09-21: Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Development: UltraVNC development is always here... Any help is welcome
Feedback is welcome

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Connection with no open ports on both sides

Single Click discussions / bugs
Post Reply
rik_rs
8
8
Posts: 9
Joined: 2009-12-12 12:06

Connection with no open ports on both sides

Post by rik_rs »

I use SSVNC on Debian with the option -listen to accept reverse connection from SC clients. This way the clients don't have to open any ports.
100% all good and working.
The problem arises when I'm out of the office with a smarphone + tethering and I have to accept a reverse connection. In such case there is no way to open a port and that's a big problem!

I thought: no problem! I have a server in the office so I can make a tunnel so that instead of
ScClient:5900-->5900:router:5900-->PC:5900->ssvnc:5900
I could solve the problem with

Code: Select all

ssh -4 -L 5900:localhost:5900 -N user@host
and the chain becomes
ScClient:5900-->5900:router:5900-->Server:5900<--sshPC:5900<--ssvnc:5900

Unfortunately it doesn't work and I can't figure out why. The only possible problem I see is that when the tunnel is active, SSVNC shows this info
ListenAtTcpPort: bind: Address already in use
vncviewer -listen: listening on port 5900 ipv4_fd: -1 ipv6_fd: 4

If i close the tunnel and run ssvnc again, the first line is not present and the 2nd one says
vncviewer -listen: listening on port 5900 ipv4_fd: 4 ipv6_fd: 5

Any help?
Post Reply