LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   configuring Xtightvnc/Xvnc/vncserver to listen via specific IP (https://www.linuxquestions.org/questions/linux-software-2/configuring-xtightvnc-xvnc-vncserver-to-listen-via-specific-ip-908646/)

Skaperen 10-17-2011 03:33 PM

configuring Xtightvnc/Xvnc/vncserver to listen via specific IP
 
The Xtightvnc server has an option called "-interface <address>" to specify what IP address to bind to its listen socket. However, that option only affects port 590X for the VNC side. It does not affect port 600X for the X side, which continues to bind to 0.0.0.0. Anyone know of a way to force this program to do BOTH listens on a specific IP address?

hapihakr 10-19-2011 10:14 PM

You have to specify the correct parameters for the vncviewer:

vncviewer [options] [host][:display]
vncviewer [options] [host][::port] <-- bracket colon colon p o r t bracket (ignore the smiley)
vncviewer [options] -listen [display]

The server options only control the server.

Skaperen 10-23-2011 02:51 PM

Sorry, but I can see by using "netstat -antup" that Xtightvnc is listening wrong:

Code:

dirac/root /root 1# netstat -antup | fgrep vnc
tcp        0      0 172.30.60.1:5901        0.0.0.0:*              LISTEN      3245/Xtightvnc 
tcp        0      0 0.0.0.0:6001          0.0.0.0:*              LISTEN      3245/Xtightvnc 
dirac/root /root 2#

The highlighted 0.0.0.0 needs to be 127.0.0.1 so it will not accept connections from anywhere other than localhost. This is the server doing the wrong address binding. I need to know how to configure the server to do this.


All times are GMT -5. The time now is 06:52 AM.