Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JRE proxy bypass for local addresses always bypasses proxy

858990May 2 2011 — edited May 3 2011
Hi all,

I'm currently dealing with an issue with the proxy configuration in java.

Situation: I need a proxy server to connect to the internet, and I have some addresses configured in Internet Explorer that bypass the proxy.
example of the way I configured it : *.google.com;212.115.*;62.69.179.198

The address that I am trying to reach is not in the bypass list, or in any of the excluded ranges in the bypass list.

Initially I had java configured using browser settings. I thought it did not pick up the browser settings at all.
However after configuring the proxy manually in java it was still not working.

During the research I came to the conclusion that as soon as I enable the "bypass proxy server for local addresses" in Internet Explorer, or manually in java.
The JRE client automatically bypasses the proxy and is always using "proxy=direct" . As soon as I disable that feature it starts using the proxy server.

I have no idea why this is happening ?
This post has been answered by handat on May 2 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2011
Added on May 2 2011
3 comments
3,925 views