You might try the following:

http://www.ergotech.com/misc/VNCProxy.html


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>
      <servlet-name>VNCProxyServlet</servlet-name>
 <servlet-class>VNCProxyServlet</servlet-class>
 <init-param>
  <param-name>targetPort</param-name>
  <param-value>5900</param-value>
 </init-param>
 <init-param>
  <param-name>targetHost</param-name>
  <param-value>vanity.hn.org</param-value>
 </init-param>
    </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
4.1\webapps\examples\WEB-INF\classes\VCNCProxyServlet.class
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
http://vanity.hn.org/examples/servlet/VNCProxyServlet

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.
<HTML>
<head>
<TITLE>
VNC HTTP Tunnel Demonstration Desktop
</TITLE></head>
<APPLET CODE=VncViewer.class
ARCHIVE=vncviewer.jar
WIDTH=640 HEIGHT=512>
<param name=HOST value=http://vanity/examples/servlet/VNCProxyServlet>
<param name=PORT value=80></APPLET>
<P>
</HTML>
the address in the browser is:
http://vanity.hn.org/examples/servlets/vnc.htm

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:
basecode=http://vanity.hn.org/examples/servlet
I haven't tried that yet. If it works, then you don't have to copy the
.class files on both locations...

That's it!

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
either.

Let me know if this setup works from your work, it didn't from my work...

Rod.



Brad Eichstadt, PMP, CPIM
Senior Manager
Cap Gemini Ernst & Young - TMN Outsourcing Services
913-762-4496


                                                                                       
                               
                    Jax Santiago                                                       
                               
                    <[EMAIL PROTECTED]        To:     [EMAIL PROTECTED]                
                              
                    oo.com>                 cc:                                        
                               
                    Sent by:                Subject:     WinVNC behind Proxy Server & 
Firewall                        
                    [EMAIL PROTECTED]                                                  
                                
                    ealvnc.com                                                         
                               
                                                                                       
                               
                                                                                       
                               
                    06/12/2003 02:23                                                   
                               
                    AM                                                                 
                               
                                                                                       
                               
                                                                                       
                               




Hi All!

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!

Jax Santiago

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to