This content has been marked as final. Show 6 replies
vncserver ports are opened from 5900 upwards. 10061 means that the server computer was reachable, but not accepting connections on the port you were trying to connect to.
Do you have anything in "tail /var/log/messages" on the server?
Did you run "system-config-securitylevel-tui"? Select “Customize” and add 5900 to the other ports list
To troubleshoot if it is a firewall problem you can temporarily disable it until the next server restart by typing "service iptables stop"
You may want to check that port 5900 is available by typing "telnet 10.0.0.1 5900" at the command prompt from Windows "run:cmd", or better isntall Nmap from http://nmap.org/dist/nmap-5.21-win32.zip to scan for open ports on your Linux server.
Edited by: Markus Waldorf on Aug 14, 2010 11:24 AM
Hi,1 person found this helpful
besides the points Markus mentioned, normally if you start VNCServer in linux, the first port used is 5901 and not 5900.
Maybe you just checked the wrong port.
Try looking with netstat -na |grep 5900
if really the server is listening to 5900.
I don't have RHEL 4.7 around to play with, but the first VNC user port depends on whether or not you have GNOME remote desktop or remote administration installed that uses Display 0, which is default in some Linux distributions, like Fedora. The first VNC client normally uses TCP port 5900 - Display 0, the 2nd 5901 - Display 1, and so on.
The port can be configured in:
Also, in order to to connect, a password needs to be set, e.g. for user XYZ:
Btw, Java VNC, to connect from within a browser uses TCP port 5800
did you execute command like this? vncserver :1 (port number from 1~9), then input password or not.
at the windows client side, running the vncview to connect the ip address of server with port#, like 10.10.10.10:1 then input password as same as at server side
Thanks all of you (especially ssolbach)for informing me to use port 5901 instead of 5900.
When I connect to the server,the image is a dull grey screen showing an equally dull terminal.
I had expected the image to have all the colours of the Linux X Window e.g. on my Linux desktop,the desktop image is of my dog.I cannot see this from my Windows client side vnc connection.
How do I resolve this?
If you connect to vncserver and get a blank grey screen with a consol window then this means that the ~/.vnc/xstartup script is not initializing the windows manager correctly.
And make sure it looks like this:
Also, you have to make this file executable, using the following
#!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & startx & exec gnome-session &
chmod u+x /home/testuser/.vnc/xstartup
Then, run ‘vncserver’ to create a new session based on the above script!
Edited by: Markus Waldorf on Aug 22, 2010 10:23 AM