LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-20-2007, 12:55 AM   #1
justanto
LQ Newbie
 
Registered: Jul 2006
Location: Indiana, USA
Distribution: Fedora
Posts: 13

Rep: Reputation: 0
Exclamation vnc doesn't work over the internet.


I'm running ubuntu 6.10. I can vnc into my computer from within my own network but when I try to vnc to a computer out side of my network it doesn't work. I have tried everything I can think of. I have tried to vnc to a computer outside of my network with my mac and it just times out. I have set up a vpn between these computers and this still doesn't solve the problem. I have had equally little success trying to do the same processes from my ubuntu pc to the other ubuntu pc outside of my network. several times when I tried I was given the error "no route to host" this confuses me because I had a vpn set up between them. I have vnced over a vpn within my network with no problem but as soon as an external machine gets involved everything seems to fall apart.

all help is very appreciated.
 
Old 01-20-2007, 01:49 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
I cannot imagine what your problem might be. I've used VNC over SSH tunnels and over Cisco VPNs without any issues. It seems like it's probably an underlying network problem, not a VNC problem. It just uses TCP ports after all...
 
Old 01-20-2007, 10:27 AM   #3
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
That sounds like your vnc client is trying to use your normal default gateway rather than the vpn gateway. See the following:
Code:
[root@john-fc6 jslittl]# /sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.8.0.5        *               255.255.255.255 UH    0      0        0 tun0
10.8.0.1        10.8.0.5        255.255.255.255 UGH   0      0        0 tun0
128.1.0.0       10.8.0.5        255.255.0.0     UG    0      0        0 tun0
128.3.0.0       10.8.0.5        255.255.0.0     UG    0      0        0 tun0
128.7.0.0       10.8.0.5        255.255.0.0     UG    0      0        0 tun0
128.9.0.0       10.8.0.5        255.255.0.0     UG    0      0        0 tun0
172.16.0.0      *               255.255.0.0     U     0      0        0 eth1
default         172.16.0.1      0.0.0.0         UG    0      0        0 eth1
[root@john-fc6 jslittl]#
Here my normal defaut gw is eth1 (see the last column Use Iface) because that is my internal network and routes all calls to the internet except for the IP's in the 10.x.x.x and 128.x.x.x range. However all calls to the Ip's in the 10.x.x.x and 128.x.x.x go through the tun0 interface. That is where yours should be going to connect to the vnc machine on the other end of your vpn.
 
  


Reply

Tags
desktop, remote, vnc, vpn



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
vnc in the internet binary_dreamer Linux - Networking 6 07-06-2006 08:04 AM
VNC over Internet rnice Linux - Networking 2 06-23-2005 08:03 PM
Getting vnc to work Wynand1 Linux - Networking 2 09-17-2004 08:48 AM
VNC over lan but not Internet? blop Linux - Software 2 01-21-2004 04:46 PM
VNC over the internet nander Linux - Newbie 6 10-02-2003 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:13 AM.

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