How to make VNC server listen on a specific IP under Linux?
Solution 1:
It sounds like your vncserver is started with localhost
parameter:
# vncserver -h
usage: vncserver [:<number>] [-nohttpd] [-name <desktop-name>] [-depth <depth>]
[-geometry <width>x<height>]
[-pixelformat rgbNNN|bgrNNN]
<Xvnc-options>...
# Xvnc -h
Unrecognized option: -h
...
Global Parameters:
localhost - Only allow connections from localhost (default=0)
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.