Re: When does java proxy take effect?



Jim wrote:
On 2 Apr 2006 23:19:27 -0700, fltcpt@xxxxxxxxx wrote:


Hello,

I am more than 10 years late but finally I have
to write java applets. My applet does something like
this

Socket s = new Socket();
s.connect(server, ...);

Behold, it succeeds in connecting to "server"... good
news? No, because I've configured an unreachable
proxy in my browser (internet explorer)... and
my java control panel says "use browser settings"
for proxy.

It seems to me my socket.connect() is not connecting
through the proxy, is that true? am I correct?
If that's the case, what is the java plug-in
proxy setting for? When or what api will go through
the proxy according to the plugin settings?

Thanks alot.


try this site

http://www.rgagnon.com/javadetails/java-0085.html

I found it helpful when trying to get through our proxy at work

BTW : different properties for ftp, etc

Just to note that proxySet has never been tested by the JDK. It was used by the shortlived HotJava browser bean. These days the proxy properties to set are http.proxyHost and http.proxyPort. The ones mentioned on that website still work but they're not actually the ones documented in the JDK.
.



Relevant Pages

  • Re: IE6 + WinXP + JRE 1.5.0_05: applets wont load
    ... > When I go to a web page with applets on it, the applets don't load, and ... > I'm behind a SOCKS v4 proxy; IE have no problems with the ... I told Java to use the browser settings. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: adding IP range server nat/basic firewall
    ... we dont use proxy settings ... what about the nat setting in server, i had to forward ports for exchange ... Then you don't have a proxy, and hence have no "proxy settings" in the ... If the product uses Java Applets, the version of the Java JRE needs to be ...
    (microsoft.public.windows.server.networking)
  • When does java proxy take effect?
    ... to write java applets. ... proxy in my browser... ... my java control panel says "use browser settings" ...
    (comp.lang.java.programmer)
  • Re: what to do with java.lang.reflect.Proxy ???
    ... > The main drawback I see with Proxy, is that I should re-engineer alot ... implementing MouseWheelListener can be used to support the ... mouse wheel on Java 1.4, for code that must also run on Java 1.3. ... I've seen stubs that ...
    (comp.lang.java.programmer)
  • Re: JDK 1.5.0_05 wont load applets from the Internet?
    ... > proxy out of the picture, but this did not fix things. ... > I have Java configured to use the browser's settings; ... > proxy settings manually makes no difference. ... > N.B. The applets themselves do not appear to be the problem -- I tried ...
    (comp.lang.java.gui)