Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-05-2011, 03:37 AM   #1
LQ Newbie
Registered: Jul 2011
Location: Ahmedabad
Posts: 11

Rep: Reputation: Disabled
Question unable to connect vnc server over Internet

On the server having live ip address, I have installed vnc server using:
yum install vnc-server
yum groupinstall "X Window System" "GNOME Desktop Environment"
yum install xinetd vnc-ltsp-config
/sbin/chkconfig xinetd on
/sbin/chkconfig vncts on
/sbin/service xinetd restart

On my local machine connected to internet via LAN, I have installed vnc viewer using:
yum install vnc

When I connect to the vnc server using
vncviewer ipaddressofvncserver:1

it shows
unable to connect to host. No route to host (113)
Old 08-05-2011, 05:40 AM   #2
LQ Newbie
Registered: Jul 2011
Location: Ahmedabad
Posts: 11

Original Poster
Rep: Reputation: Disabled
by doing /sbin/service iptables stop, I cloud connect using VNC. But I wished, if I could do it without causing security issues. Any alternate option ??
Old 08-05-2011, 10:59 AM   #3
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Indeed you should not turn off the firewall. You need to read up on tunneling vnc through ssh. That way you only need to open the ssh port.

Here's a simple guide.

If you google for it, you'll find many more.
Old 08-06-2011, 03:44 AM   #4
LQ Newbie
Registered: Jul 2011
Location: Ahmedabad
Posts: 11

Original Poster
Rep: Reputation: Disabled
Nice one.

Now localhost is working on that server (having live ip)
But when I try to connect from local machine to liveipmachine (using http://liveipofserver), it is unable to connect.

nginx is installed on the server machine.

any help regarding that ?

(By the way, when I did "/sbin/service iptables stop", local machine was able to connect server. But as you know I don't want to do "/sbin/service iptables stop"


centos, internet access, vnc, vncserver, vncviewer

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Connect to VNC server (vino) tiger.woods Ubuntu 1 03-08-2009 10:35 PM
Unable To Connect VNC carlosinfl Debian 1 06-29-2007 07:48 AM
Real VNC. Unable to connect joeman3429 Linux - Networking 4 10-18-2005 07:27 PM
unable to connect to server thru vnc... marvc Linux - Software 0 05-25-2003 07:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration