View Single Post
  #1 (permalink)  
Old August 23rd, 2002
Unregistered
Guest
 
Posts: n/a
Lightbulb Looking for ideas/code/etc...

Here at my office, all our ports (except 80 of course) are blocked
by the firewall. In response to this effort, I have a simple Java app that allows the developers here to surf site that aren't on Port 80. Now we are hoping to extend that idea to file sharing.
Here is the idea so far:

We have downloaded the Phex JAR to a Java host outside the firewall... and written a servlet that has successfully connected to the Gnutella network on Port(s) 6346. The goal is to write a web interface that allows searching the Gnutella network, and downloading the files to that java host. Once the files are downloaded to a directory on the external java host, they would become available to the rest of the Gnutella network... but more importantly, the developers here would be able to download them through Port 80.

Here is the servlet service method code thus far:

............
public void doGet( HttpServletRequest req,
HttpServletResponse res ) throws ServletException
{
try{
out = res.getWriter();
try {
ServiceManager.getListener().startup();
}
catch (Exception ex) {
out.println ( "error getting listener: " + ex );
}
ServiceManager.getNetworkManager().init();
ServiceManager.getManager().startJobsRunner();
out.println("Service Manager initialization complete.");
}
catch (IOException ex) {
out.println ( "error getting writer: " + ex );
}
}
...............

It's not much... but it's a start. If anyone has any ideas or code that would help us out, it would be greatly appreciated!!!!!!!

Thanks in advance.
Dave Cain
Reply With Quote