Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/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://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