Update: UltraVNC and UltraVNC SC viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.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
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
I could solve the problem with

Code: Select all

ssh -4 -L 5900:localhost:5900 -N user@host
and the chain becomes

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