There is a really weird problem I have. I setup a vnc some days back. I setup 4 accounts. everything worked fine then, I was able to connect to vnc via remote desktops. Now I am trying to add a 5th one and its not working, saying
main: unable to connect to host: Connection refused (111)
1. I setup the /etc/sysconfig/vncservers file. For 5 accounts, I have acc1:1, acc2:2, acc3:3, acc4:4, acc5:5.
2. I edited the xstartup file for the new account. Uncommented those two lines.
3. I opened up the port 5905 in iptables.
4. I restarted both iptables and vncserver services.
What else is left that I am missing, or am I doin something wrong?