I know how to specify a listening port of VNC server under Linux, but what puzzles me is that I can not find a way to specify a VNC listening IP.
When started VNC server under CentOS 5.6, I found its process "Xvnc" is listening on 127.0.0.1:5901
. Maybe this is why I always failed to get in when I use any XNC client. I do not know why it listened on "lo" network interface but not on "eth0".
Best Answer
It sounds like your vncserver is started with
localhost
parameter:You should probably check the
/etc/sysconfig/vncservers
and the init script/etc/init.d/vncserver
.If you want to bind to specific IP, do it with iptables or take a look at this.