I'm running vncserver and getting this prompt:
New 'Middle:1 (root)' desktop at :1 on machine Middle
starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/Middle:1.logUse xtightvncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :1 to connect to the VNC server.
But when I try to connect using my VNC viewer on my windows machine I get The connection was refused by the computer.
This problem happened because I had edited my /etc/vnc/xstartup file since I had a grey screen every time I tried to log in the VNC server so I followed every solution I could find but they didn't fix it... Maybe made it worse.
in ragardes to sgargel's answer:

about the "can't open file Xresources" - its in my /etc/X11/ folder
What can I do ?

netstat -antpl. Check your vncserver logfile and if there is some firewall rule that reject traffic.netstatseems that vnc isn't listening on 0.0.0.0:5901