File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Applet - Servlet Communication bypassing Firewall Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Applet - Servlet Communication bypassing Firewall" Watch "Applet - Servlet Communication bypassing Firewall" New topic
Author

Applet - Servlet Communication bypassing Firewall

Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Hi

I want to know how I can communicate between an Applet and Servlet bypassing the Firewall in between. I heard that I can do that by HttpTunneling.

But Im not sure what it exactly meant.

What Im trying to do is to change the browser's proxy settings from an Applet through Servlet.

Pls Help


Thanks


A Moment's insight is sometimes worth a Life's experience.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
You can't get around the firewall. It's on the server, and all client accesses will need to get through it. Trying to bypass it (or force your way through it) might be seen as an attack that has legal ramifications.

HTTP tunneling refers to other protocols being piggy-backed on top of HTTP, in order to get through the firewall on port 80 (which is generally open for the web servers). But if you can run servlets on the server, then you can just use HTTP to begin with (which applets can easily use thanks to java.net.URL and friends).

What is the purpose of wanting to change the proxy settings? Applets can use proxies, too, when they make their HTTP connections.


Ping & DNS - updated with new look and Ping home screen widget
Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Thanks !

I have the scenario like this;

For eg: if Amazon cannot check out to Singapore, if it only does to US,

I want to create a US proxy with which I could do the checkout.. ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
You'd need to run a proxy server somewhere in the USA, obviously.
Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Sorry I think Ive confused you.

I have an App which makes purchases in US on behalf of customer in Asia .
US sites dont usually accept orders from Asia.

The proxy server, using our system, provides the resource by connecting to the specified server and requesting the service on behalf of the client. A proxy server can alter the client's request or the server's response, and sometimes it may serve the request without contacting the specified server using 'cache mechanism'
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I don't see any confusion there.
If a site will only interact with an IP in the US, you need to set up your proxy in the US.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet - Servlet Communication bypassing Firewall
 
Similar Threads
firewell issue
Proxy Servlet/Web Browser monitor
jboss 4.2.3 basic security
How to stop a servlet initiated by JRUN?
Servlet can Call an Applet