Link to home
Start Free TrialLog in
Avatar of thehaze
thehaze

asked on

VNC behind a firewall

I've been using the Virtual Network Computer software to connect to my home PC from work. My public IP is x.x.x.x and my internal IP behind my home router/firewall is y.y.y.y, how do I connect to my home PC from the internet. I need to connect via port 6000.
The syntax I've tried as been:

x.x.x.x y.y.y.y 6000

Can anybody point me in the right direction.?
Avatar of Pasdargent
Pasdargent
Flag of United States of America image

Unless you setup some type of SSH or VPN access to the internal LAN or setup port forwarding on your peripheral device, you won't be able to.  To do the last option, you will need to tell the firewall to route any traffic coming to port 6000 point to the internal IP address at port 6000.
Avatar of scraig84
scraig84

Pretty hard to tell you the syntax you should use for a command when you haven't told us what type of device this would be on....
Avatar of Steve Jennings
Why port 6000? For what it's worth, that's X-windows.

At any rate, you can set the display number to 100 and VNX will listen on port 6000 instead of 5900. We set the port number to -5820 to be able to have VNC listen on port 80 which most firewalls have open.

Steve
Good point Steve.  Actually by default I believe it listens on 5800 for the first connection and 5900 for the second, or is it vice-versa?
ASKER CERTIFIED SOLUTION
Avatar of Steve Jennings
Steve Jennings

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thehaze

ASKER

The router is a D-Link 604, and I am connecting to my home PC via port 6000 using ZVNC.
Avatar of thehaze

ASKER

The router is a D-Link 604, and I am connecting to my home PC via port 6000 using ZVNC.
In looking at the product manual for this, I see nothing solid about setting up port forwarding to be able to send data sent to a specified port on the router to an internal IP/computer.  You may want to see if there is something in the web-based setup and configuration utility that will be able to setup such a forwarder.
With VNC the default port is 5900.  If you want to use port 6000 then what you have to do is uncheck the Auto Check box and then put 100 in the Display number.
That will give port 6000.  For further example, if you wanted port 6050 then you would use display number 150.  Port 4000 would be Display Number -1900

Get it?

On the VNC Viewer machine you would then use www.myip.com:6000 and that would connect you to port 6000.  If you have a firewall, open up port 6000 only and it will work fine.

Shawn
Soatly and thehaze,

I believe to get the web service to answer on port 6000 you'd need to set the display number to 200 to bring the default VNC app listener to 6100 and the VNC web service to 6000. By the way, you cant enter a negative number in the "display" field, that has to be done in the registry.
SteveJ,

I actually run my VNC on port 6000 and I use display 100.

I thought you could put the negative number in there but you are probably right - I try to stay to higher ports for that stuff so not to confuse any other apps.

But the display number for sure is 100.  

Shawn
Avatar of thehaze

ASKER

Are all the above settings also applicable for ZVNC.?
I have never used ZVNC - where can I download it?  I will give it a shot.

Shawn
Shawn,

Just to be sure we're clear . . . and Im always ready to learn . . . When I run VNC "raw" the VNC app connects on port 5900, but when I use Internet Exploder, I have to specify port 5800. It just so happens that port 6000 is open on our firewalls to allow X-windows, so we connect to VNC using a web browser by setting the display field to 200 . . . Are you saying that you are connecting to VNC using a browser or are you referring to the standard VNC listener app?

Steve
That's probably the difference...  :)

I am using the standard app....  

Just the regular distro.

Shawn
To be honest, I have used VNC for years and I just found out a couple of months ago that you could use a browser to access a VNC-enabled machine.

Steve
Yeah?  Using regular Windows??  What distro do you use??
I figured you knew this!  You can connect to a VNC "server" by typing into Internet Explorer or Netscape http://netbiosname:5800.  That brings up a Java-based interface.
I'm using 3.3.3 R9. It's not all that helpful except that you don't have to load VNC on a machine that you just want to use as a listener.

Steve
thehaze:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.