Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

applet + proxy

Status
Not open for further replies.

passertm

Programmer
Aug 2, 2005
16
AZ
i have applet what must connect with servlet.

when it try to connect to localhost, it can.

but if it try to connect to other server cant find proxy. i can write my proxy to applet but if other client load this applet. it will not work. how applet can define proxy automatic
 
applets live in a sandbox... The sandbox has the follwoing rules:
- applets can only call home
- applets can't modify the client computer, unless the app is approved (by signature)

So, if you want to connect an applet to another server, they have to do it by way of the local server. So, the problem is because of the proxy, the applet things it's being servered by by the proxy (which it is) and the server the applet connects to isn't on the proxy. The solution is to make a proxy for the java applet that forwards information on the ports the applet uses to the original server.

[plug=shameless]
[/plug]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top