LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't get to server using VNC (https://www.linuxquestions.org/questions/linux-newbie-8/cant-get-to-server-using-vnc-222278/)

rwalkerphl 08-25-2004 01:06 PM

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.

lopette 09-16-2004 10:02 AM

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:host:port" 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.

rwalkerphl 09-16-2004 11:35 AM

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.

lopette 09-16-2004 03:04 PM

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

rwalkerphl 09-16-2004 03:16 PM

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.


All times are GMT -5. The time now is 07:50 AM.