LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-06-2006, 08:24 AM   #1
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 195

Rep: Reputation: 31
vnc in the internet


hi i got a small LAN that has some machines that i administer remotely through tightvnc. is there any way to see that machine through the internet? the machine internal IP is 192.168.1.100 and i got setup the no-ip configurations for the router to follow my dynamic IP.
 
Old 07-06-2006, 08:29 AM   #2
blinkey
Member
 
Registered: Mar 2006
Posts: 30

Rep: Reputation: 15
192.168.x.x is a private address. To access via the internet you will need to set up your router to forward the vnc port to the relevent machine. Depending on the router, you may be able to have diffrent ports for each machine.

Once set up you will access each machine by pointing VNC at your external address and the port number. eg: xx.xx.xx.xxort

If you cannot access this function on the router you cannot set this up.

:-)
 
Old 07-06-2006, 08:29 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
you would need to do port forawrding on your router to push a port of your choosing through to the VNC port number on the internal machine
 
Old 07-06-2006, 08:35 AM   #4
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 195

Original Poster
Rep: Reputation: 31
ok i know that i need to do port forward, but which port do i need to change? my modem/router is a Linksys WAG354g
 
Old 07-06-2006, 08:52 AM   #5
blinkey
Member
 
Registered: Mar 2006
Posts: 30

Rep: Reputation: 15
You need to forward the port that you have chosen to use for VNC. This is a configurable item when you set up VNC. You could use a different port on each machine if you wish. That way you could access different machines by pointing at different ports.

The default is 5900. When you start the vnc viewer you specify the address and port. eg 134.97.56.45:5900 OR may be 134.97.56.45:0.

This has a short discussion on the topic : http://faq.gotomyvnc.com/fom-serve/cache/52.html

Remember, Google is your friend.
 
Old 07-06-2006, 08:59 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Typical ports for VNC are 5800 and 5900 (assuming you're using the default '0' display).

So:
External <----> Router <-----> your machine
(1) (2) uses port 5800 or 5900 for incoming VNC requests (3)

Now, what you need is to make the VNC requests comming in on (1) go through to (3).
So, take a port > 1024 that's not in use on interface (1) and forward that to port 5800 or 5900 on your internal machine (3).
Interface (1) has your external IP address associated with it.

You may be tempted to use your router's external 5800 or 5900 ports, so that the client doesn't need to setup a different port number in his config, but this may lead to additional attacks.
ie hackers also know that ports 5800 and 5900 are often used for VNC, so they may attempt to break in via those ports, using a VNC exploit.

Have you also considered ICA protocol instead of VNC? It's supposed to be more reliable (ie for connections over internet), but it may also be more expensive.
 
Old 07-06-2006, 09:04 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
check out portforward.com they have a *massive* matrix of routers and services to show you what to change. http://portforward.com/english/appli...C/VNCindex.htm
 
  


Reply


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
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 10:38 AM
VNC over Internet rnice Linux - Networking 2 06-23-2005 09:03 PM
VNC over Internet to computer with internal ip... help! QtCoder Linux - Networking 13 03-12-2005 07:00 PM
VNC over lan but not Internet? blop Linux - Software 2 01-21-2004 05:46 PM
VNC over the internet nander Linux - Newbie 6 10-02-2003 10:01 PM


All times are GMT -5. The time now is 02:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration