Koozali.org: home of the SME Server

VNC setup

jladdm3

VNC setup
« on: January 11, 2007, 12:34:51 AM »
I have a local machine that i have installed VNC server on. It has a static ip address (internet works). I have set up port forwarding for the e-mail server and all that stuff on the SME firewall and it works fine. Just cant seem to get VNC set up.

This is what i did to set up VNC:
1. Installed VNC on the local machine (edit: Windows 2000 computer)
2. Went to port forwarding on the SME manager and created port 5900 to go to port 5900 with the destination ip of the local mahcine that has VNC.
3 Installed VNC viewer on a local machine and typed in the SME firewall ip address. -this didnt work... also tried putting :5900 after the ip address and it still didnt work. (edit: i need to access it from outside the network)


 what am i doing wrog or not doing? please help me out. Thanks!

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: VNC setup
« Reply #1 on: January 11, 2007, 12:46:19 AM »
Quote from: "jladdm3"
Installed VNC viewer on a local machine and typed in the SME firewall ip address. -this didnt work... also tried putting :5900 after the ip address and it still didnt work.


 what am i doing wrog or not doing? please help me out. Thanks!


Use the ip address of the machine with VNC server installed.
Regards,
William

IF I give advise.. It's only if it was me....

jladdm3

VNC setup
« Reply #2 on: January 11, 2007, 12:49:21 AM »
That would only work for being inside the network.... wouldnt it?
I need to be able to access the machine from outside the network... like at home.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
VNC setup
« Reply #3 on: January 11, 2007, 01:02:46 AM »
Quote from: "jladdm3"
That would only work for being inside the network.... wouldnt it?
I need to be able to access the machine from outside the network... like at home.


Your original post to me indicated that you had VNC Server on one local computer and VNC Client on another local computer. Sorry if I misunderstood.

Depending on how you installed the VNC server ::5900 will open a window showing the linux desktop and ::5901 will open a window manager login.
Regards,
William

IF I give advise.. It's only if it was me....

jladdm3

VNC setup
« Reply #4 on: January 11, 2007, 01:21:12 AM »
so... i want to open 5901 instead of 5900? sorry i forgot to say that  the computer set up as VNC server is a win2000 computer.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
VNC setup
« Reply #5 on: January 11, 2007, 01:25:59 AM »
Quote from: "jladdm3"
win2000 computer.


In that case I don't know.
Regards,
William

IF I give advise.. It's only if it was me....

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: VNC setup
« Reply #6 on: January 11, 2007, 06:26:04 PM »
Quote from: "jladdm3"
I have a local machine that i have installed VNC server on. It has a static ip address (internet works). I have set up port forwarding for the e-mail server and all that stuff on the SME firewall and it works fine. Just cant seem to get VNC set up.

This is what i did to set up VNC:
1. Installed VNC on the local machine (edit: Windows 2000 computer)
2. Went to port forwarding on the SME manager and created port 5900 to go to port 5900 with the destination ip of the local mahcine that has VNC.
3 Installed VNC viewer on a local machine and typed in the SME firewall ip address. -this didnt work... also tried putting :5900 after the ip address and it still didnt work. (edit: i need to access it from outside the network)


 what am i doing wrog or not doing? please help me out. Thanks!
I have had it working once on a SME 7.0rc1 and an XP client running VNC.

As I can remember correctly I installed the vncserver on the client and setup port forwarding on the smeserver for port 5900 to the internal IP number of the Windows XP box.

The 5900 port only works with a VNC client at the other end (where you are sitting and try to connect). If you would like to use the java client that comes with VNC you will have to use port 5800 as thie java client runs there by default setup.

Could it perhaps be that ther is some sort of firewall on the  W2k box? Can you access the W2k box over the internal network from some other client in your network?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

jladdm3

VNC setup
« Reply #7 on: January 11, 2007, 07:29:22 PM »
thanks for your help... i can access the VNC server from inside the network with no problems. but when i try from outside the network... it tries to connect but then i get an error that says it has timed out. i have tried opening ports 5900 and 5800 and neither seem to work.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
VNC setup
« Reply #8 on: January 11, 2007, 07:37:39 PM »
Quote from: "jladdm3"
thanks for your help... i can access the VNC server from inside the network with no problems. but when i try from outside the network... it tries to connect but then i get an error that says it has timed out. i have tried opening ports 5900 and 5800 and neither seem to work.
Are you sure that you correctly created your portforwarding rule? Did you create both (UDP and TCP) for port 5900?

Have you already tried this: http://www.realvnc.com/cgi-bin/nettest.cgi
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
VNC setup
« Reply #9 on: January 11, 2007, 07:44:32 PM »
Quote from: "cactus"
Have you already tried this: http://www.realvnc.com/cgi-bin/nettest.cgi
I just quickly installed UltraVNC on my client and configured port 5900 for UDP and TDP to my local ip number. If I now connect to my outside ip number I get the following result:
Code: [Select]
The IP address requesting this web page is xxx.xxx.xxx.xxx

Connecting to port 5900 ... succeeded.

Waiting for server to send version string...

Unknown server ( RFB 003.004 )
Seems OK to me.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

jladdm3

VNC setup
« Reply #10 on: January 11, 2007, 08:06:45 PM »
i dont know what im doing wrong! something isnt working out here, i must be missing a step. this is how i set up port forwarding.
Protocol | Source Ports  | Destination Host IP Address |   Destination ports
TCP------------5900-----------------192.168.2.2 -------------------5900
UDP------------5900-----------------192.168.2.2 -------------------5900

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
VNC setup
« Reply #11 on: January 11, 2007, 08:12:32 PM »
Quote from: "jladdm3"
i dont know what im doing wrong! something isnt working out here, i must be missing a step. this is how i set up port forwarding.
Protocol | Source Ports  | Destination Host IP Address |   Destination ports
TCP------------5900-----------------192.168.2.2 -------------------5900
UDP------------5900-----------------192.168.2.2 -------------------5900

Is 192.168.2.2 the ip number of your W2k box? It should be.

Did you also try to access this page from your W2k box? What does it report?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

jladdm3

VNC setup
« Reply #12 on: January 11, 2007, 08:19:18 PM »
yes the 192.168.2.2 is my win2k machine that has VNC server.


I tried to access that link above (from that win2k computer)... and I got: "connecting to port 5900....failed."

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
VNC setup
« Reply #13 on: January 11, 2007, 08:25:48 PM »
Quote from: "jladdm3"
I tried to access that link above (from that win2k computer)... and I got: "connecting to port 5900....failed."
Then there is some problem connecting from outside your network to your local box through your SME server/gateways. Is the SME Server the only firewall standing in between or is there perhaps a router or other firewall in between as well?
What does the following command output when you execute it on your server:
Code: [Select]
config show masq
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

jladdm3

VNC setup
« Reply #14 on: January 11, 2007, 08:46:36 PM »
type that command on the SME server?