WinVNC behind Proxy Server & Firewall
Thu Jun 12 13:30:01 2003
You might try the following:
The following is the process that Rod and I worked out with the help of Jim
Redman from ErgoTech. Both Rod and I are able to get this work. It is not
the fastest interface but it does work.
Note, you can also try tunneling VNC over SSH where SSH is set to use port
80. I have gotten that to work as well.
Hi Brad, I finally got it working. There are many details that need to be
worked out, but for the most part is right.
I don't want to be pessimistic, but I think I did reach this point before,
and when I tried from work, it didn't work. Maybe the proxy from work is
not compatible. We have Squid 2point something. But anyways, this is how I
got it working.
I extracted all the .class files from the "vncviewer.jar" that you
downloaded from ergo --yes, that's where the VNCProxyServlet.class is also.
I used WinAce for that, but I'm sure Winzip can do it also.
ergo sets the VNCProxyServlet in the web.xml file located:
C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\WEB-INF\web.xml
</servlet>this is the end of a some servlet...
<servlet> this is the beginning of another servlet...
Now you have to copy the all the .class including VCNProxyServlet.class
extracted from the "vncviewer.jar" and put them:
C:\Program Files\Apache Group\Tomcat
That is the container of the servlets.
You have to re-start tomcat at this point for the changes to take place.
To invoke them you simply type in your browser
Notice the word servlet and not servlets
Now you need an html page, I put it in the:
C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\servlets\vnc.htm
and this is the content. You can customize it later, but I just wanted to
make it work.
VNC HTTP Tunnel Demonstration Desktop
<param name=HOST value=http://vanity/examples/servlet/VNCProxyServlet>
<param name=PORT value=80></APPLET>
the address in the browser is:
notice the word "servlets" with as "s" in the address, that's the directory
of the examples of tomcat.
Also, if you are not using the "basecode=" you have to copy all the .class
files from the "vncviewer.jar"
into the servlet container
C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\servlets\
The viewer will never start without them. I dunno, can you say:
I haven't tried that yet. If it works, then you don't have to copy the
.class files on both locations...
This is very similar to how I got it to work previously. However the proxy
from work didn't allowed me to connect.
One minor problem with this setup. That is it freezes the mouse at my
server machine after disconnecting from the host. I can re-connect many
times, and it works, but the mouse at the server is frozen ... until .. I
reconnect using port http://vanity.hn.org:5800, then after disconnecting,
the mouse at the server machine works again... why??
tomcat is also using port 80 not 8080 in this case.
You can customize the .html page by using the "new window" feature from the
ergo example. I'm going to create the mini servlet like the .java example I
sent you yesterday. It works fine. But it's no different then the html page
Let me know if this setup works from your work, it didn't from my work...
Brad Eichstadt, PMP, CPIM
Cap Gemini Ernst & Young - TMN Outsourcing Services
<jaxsantiago@yah To: firstname.lastname@example.org
Sent by: Subject: WinVNC behind Proxy Server & Firewall
Currently, on our customer side (overseas), we have a
few applications deployed and we'd like to monitor
them. Using PCAnywhere via Modem to Modem, we're
incurring a lot on IDD cost so we're checking on using
VNC's "Reverse Connection" feature.
However, our customer's very strict when it comes to
security matters so only HTTP is allowed to go
through. So my question is, assuming that it's
possible, how do I setup VNC to run behind a Proxy
Server and a Firewall?
Thanks in advance!
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
VNC-List mailing list
To remove yourself from the list visit: