LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-25-2004, 02:06 PM   #1
rwalkerphl
Member
 
Registered: Jun 2004
Location: NJ, US (Ex UK)
Distribution: RHEL3.0 / FC2
Posts: 79

Rep: Reputation: 15
Can't get to server using VNC


I have managed to get VNC up and running on one of my servers, and although slow, it works for my needs. Here is my problem though:

I have 2 server on a network that I want to access using VNC. I have set up both with VNCServer running, the main server on :1 and the second on :2

I am not sure how, but when I connect to the first one remotely (i.e. outside the LAN) using the following command:

www.domainname.com:1

it finds it fine and I connect.

When I try to get to the second server using:

www.domainname.com:2

it says it cannot connect to the server

I tried using port numbers with port forwarding on the router, but it still cannot find the second server...

My feeling right now is that it is getting to the router, and doesn't know how to get to the server, but what is confusing me is how it is finding the first server...

Any thoughs are much appreciated!

Many thanks,

Robin.
 
Old 09-16-2004, 11:02 AM   #2
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
What kind of router are you using? and what nat options does it provide?

to solve a similar ptoblem, I used SSH, thus encrypting my VNC connections.

all ports are forwared to a specific debian/linux linux machine (actually acting as web/mail server), and to VNC to other PCs, including windows, I type (as root, haven't tried it as a regular user)

Code:
#: ssh -L 5900:ip_or_hostname_of_desired_VNC_server:5900
#: xvnc4viewer your.domain.org
and it should get you the prompt to enter your VNC user and password on the right machine.

this was done without changing any settings on the VNC servers, of course you may change the port one of them and cumulate the "-L port:hostort" when running your ssh client. and using DSA keys with blank passphrases, it will save you the hassle of typing your password all the time.
 
Old 09-16-2004, 12:35 PM   #3
rwalkerphl
Member
 
Registered: Jun 2004
Location: NJ, US (Ex UK)
Distribution: RHEL3.0 / FC2
Posts: 79

Original Poster
Rep: Reputation: 15
Hi Lopette,

I have got around the problem by putting a router with a vpn end point in. I can not access the betwrok as if I am on the LAN.

Regards,
Robin.
 
Old 09-16-2004, 04:04 PM   #4
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
sorry, I have no experience with VPNs since I've never really had any use for them.

and if you can't get a "LAN" IP from the outside one way or another, you'll never be as if you were on the lan.

maybe you can tell me more about it... I'm curious to see how that works

c ya
 
Old 09-16-2004, 04:16 PM   #5
rwalkerphl
Member
 
Registered: Jun 2004
Location: NJ, US (Ex UK)
Distribution: RHEL3.0 / FC2
Posts: 79

Original Poster
Rep: Reputation: 15
I just upgraded the firmware on the router, and have a VPN client. I wil be home Saturday and get the set up complete. Once I have tested it, I will let you know the results.

My intent, once the VPN is running is to shutdown all open ports on the router other than those I need to get mail, etc, and VPN in when I need to do server maintenance, etc.

Regards,

Robin.
 
  


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 server Swift&Smart Linux - Software 0 07-01-2004 12:52 AM
VNC Server linuxguru Linux - General 5 09-21-2003 10:02 AM
VNC server Kocil Mandriva 2 08-22-2003 08:25 AM
VNC on a server RedHat123 Linux - Security 1 09-30-2002 11:41 AM
VNC server niamor Linux - Networking 1 09-23-2002 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration