Since you have already specified firewall rules for your VNC server, the problem is most likely to be listening to the VNC port.
first make sure that VNC is running on the local host
nc localhost 5901
nc = netcat (you may need to install the package), change the port to 5901
You can also view the VNC executable instances:
vncserver -list
Now, if everything seems to be working, run this command to display the port statistics
sudo netstat -ntpl | grep 5901
change the 5901 port on your name.
if something like
127.0.0.1:5901 assigned tcp, then the problem lies in the fact that the work on VNC
0.0.0.0:5901
which means that he must accept all traffic, not just localhost!
finally run the vncserver, running vncserver -kill :1 (screen name), run the following command:
vncserver -localhost no
PS its an old question, but it may help future seekers of answers.
source share