VNCViewer Unable To Connect To Host No Route To Host (113)


Error Message:# vncviewer
VNC Viewer Free Edition 4.1.2 for X - built Jul 27 2010 10:24:13
Copyright (C) 2002-2005 RealVNC Ltd.
See for information on VNC.
Fri May 4 17:23:26 2012 
main: unable to connect to host: No route to host (113) or
main:  unable to connect to host: Connection refused (111)   FROM REMOTE SYSTEM

Level 1)Check whether vncserver is running with specified port.
# netstat -ap | grep vn
tcp 0 0 *:vnc-server *:* LISTEN 5324/vino-server
Level 2)if it is running check whether these port is opening on localhost and also to the remote host.
# nmap localhost
Level 3)Also to the remote host ip.
# nmap
If you find any difference between these port.
Then we have to check with iptables and selinux.
Level 4)Kill gnome-screensaver
1)if gnome-screensaver is running on server then we can't take remote vncviewer connectivity.
kill gnome-scrensaver then we can take the remote connectivity.
Level 5)If any of the user is not login in X window in tty login then also we will get that error message.So confirm X window is created in any of the tty login.Default tty1.
# w | grep tty
root   tty1  :0  12:38   3:03m  3.34s 3.34s  /usr/bin/Xorg :

No comments:
Write comments