yes, setup the proxy from inside the code
System.getProperties().put
System.getProperties().put
System.getProperties().put
Main Topics
Browse All TopicsI can use -DproxyURL and -DproxyPort to make the java application using proxy server. But, how to set exceptions of addresses using proxy.
E.g. I want computers with
1. computer name: abc i
2. p address 1.2.3.4
get rid of passing through the proxy server. How to set it up then?
Thanks!
Mullin
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sorry that I think I didn't make it clear.
In fact, my java application will call some internet servive/application to get back some results and then after some processing, and output back.
Since there's a proxy server, I need to run the java application like
java -DproxyURL -DproxyPort abc
But like the IE's setting that we can set some addresses to get rid of the proxy server, like the intranet. But, I can't do it then. I just know that I can tell jvm about my proxy server and the port, but how to pass some addresses that no need to pass to the proxy server?
Is it clear then?
Thanks!
before accessing address that needs proxy, call
System.getProperties().put
System.getProperties().put
System.getProperties().put
and before accessing address that should be accessed without proxy, call
System.getProperties().put
thanks! but, i found out what I want at
http://java.sun.com/j2se/1
that's nonProxyHosts!
Thanks!
mscproj:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
hcyu and mscproj,
Are you the same person? hcyu answered as if you were the asker of the question. Duplicate accounts are strickly against the Membership Agreement.
http://www.experts-exchang
Which account do you want to close? Please respond here within 72 hours or I will be obligated to turn both accounts over to Administration.
YensidMod
Community Support Moderator @Experts Exchange
Business Accounts
Answer for Membership
by: CEHJPosted on 2002-11-11 at 03:18:00ID: 7433116
The only way i can think of is to filter on IP address and set those properties in code.