Welcome to the most active Linux Forum on the web.
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 11-02-2004, 12:10 AM   #1
Registered: May 2004
Location: Virginia
Distribution: ubuntu
Posts: 31

Rep: Reputation: 15
Step by step VNC over internet please...

So, I searched threads for the answer I need but to no avail, although I am sure it is probably out there. I am trying to connect to my linux mandrake 10.0 machine from a remote location using the internet.
I have VNC on my machine. I just don't know what to do. Can someone please give me exact directions on how to do this. I think my address may be but I'm not sure. How do I find out? Thanks. Alrighty. -Greg
Old 11-02-2004, 12:39 AM   #2
Registered: Aug 2004
Location: internet
Distribution: slackware
Posts: 133

Rep: Reputation: 15
ifconfig -a

will show the ip address of your machine, this won't do you much good if you have a router inbetween your machine and the internet though, as the router will assign your machine a local network address. In this case you will need to setup port forwarding on the router so as to make things work.

also, you are going to need a vnc server on your remote machine, and a vnc client on the local machine. Which VNC implementation are you using ?
Old 11-02-2004, 06:42 AM   #3
Registered: May 2004
Location: Virginia
Distribution: ubuntu
Posts: 31

Original Poster
Rep: Reputation: 15
I will use VNC

Thanks for reply. I will use the virtual network controller that comes with mandrake. Oh, so I need to have another vnc? On the other machine? I thought I could access it through the internet. Is that only with apache? or such...-Greg
Old 11-02-2004, 08:06 AM   #4
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
you need a client to connect to the remote vnc server.. how else do you expect to see the screen?

actually, some vnc servers also export a java connection on port 5900, which means you can access it from a web browser.
Old 11-02-2004, 12:19 PM   #5
Registered: Aug 2003
Location: Cleveland, OH
Distribution: Ubuntu 6.06
Posts: 66

Rep: Reputation: 15
If you're running a computer that has ssh capabilities away from home, this is easy:

1. ssh -l <yourusername> -L 5801: -L 5901: <yourserveraddress>
2. Make sure the home machine is running a vncserver
3. Start a vnc server locally.
4. Run a vnc viewer program that connects to your LOCAL machine ( and use the password specified on the server at your home.

You can find all the programs you'd need in various OSes at

This works for me from work in Mac OS X 10.3. Not sure about using Windows, but I'd bet you could do it with puTTY too. Anyone?

Edit: The reason I use ssh here is that it tunnels your connection through ssh, making it a secure connection. No eavesdropping. If you didn't want to do it this way, you could probably just get a viewer for the away-from-home computer and connect directly to home. This isn't secure, and passwords etc. will be sent in the open if I'm not mistaken.

Last edited by marcheikens; 11-02-2004 at 12:24 PM.


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
Step by Step guied for Installation pent@net Dvb card under linux mobassir Linux - Networking 4 06-07-2006 08:31 PM
I need a step by step help to instal Suse 9.3 Pro on the same hdd as XP Home & 2003 suse91pro Linux - General 4 09-07-2005 02:15 PM
Step by step guide to setting up the internet using Ubuntu. chazyd Linux - Networking 2 04-24-2005 02:48 PM
Step-by-Step: Making integrated Broadcome wireless adapter work with Mandrake 9.2 jmp875 Linux - Wireless Networking 16 06-30-2004 01:50 AM
step-by-step VNC implementation mattlegere Red Hat 3 01-31-2004 11:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:06 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