You are not logged in.
Pages: 1
Hi,
I want an X11VNC connection through firewall (ufw) within the LAN.
I opened port 5900 (for DISPLAY :0), but I noticed that it needs additional ports that are random about 24000 to 48000 or higher.
How can I make that ports static for x11vnc?
I tought port 5900 is sufficient, but netstat -atvn (on client) says for example:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 1 192.168.2.99:42097 192.168.2.89:5900 SYN_SENT
I have to open port 42097 on the VNC Server to let the client connect. Nevertheless the port changes every try. Can one make it static?
Greetz
JD
Offline
I have to open port 42097 on the VNC Server to let the client connect.
No you don't.
Your netstat output shows that a connection is being made from port 42097 on the client to port 5900 on the server just as it should do.
As long as the firewall rule on your server is accepting connections from any source port to destination port 5900 then you should be up and running.
Offline
Thanks for that advice
Offline
I recommend you do not expose 5900 to the world. Instead, use an ssh tunnel. See the vnc page on the wiki.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
I restrict the access to my local network at this time.
Offline
I restrict the access to my local network at this time.
But using ssh with x11vnc is the "canonical" way to do it. See the man page for x11vnc which is riddled with examples and snippets on how to use it with ssh.
Offline
Pages: 1