This content has been marked as final.
Show 5 replies
-
1. Re: Using proxy for localhost
jaikiran Nov 12, 2008 2:22 AM (in response to mproch)Can you post the output of the following from your code:
String nonProxyHosts = System.getProperty("http.nonProxyHosts"); System.out.println("Wont use proxy for : " + nonProxyHosts);
-
2. Re: Using proxy for localhost
mproch Nov 12, 2008 3:41 AM (in response to mproch)It says:
Wont use proxy for : null
- so I guess it's not this one... -
3. Re: Using proxy for localhost
jaikiran Nov 12, 2008 3:49 AM (in response to mproch)The reason i asked you to post that output is to ensure that you had not unitentionally set the bypass proxy for localhost through the http.nonProxyHosts system property. Your settings look correct to me.
-
4. Re: Using proxy for localhost
jaikiran Nov 14, 2008 1:55 AM (in response to mproch)"mproch" wrote:
When I replace 'host' with 'localhost' or '127.0.0.1' - the proxy is not used. If I replace it with 'ws' - which has entry in my etc/hosts file pointing to 127.0.0.1 - the proxy is used...
How are you testing this? I mean how do you come to know that the proxy is not being used? I am trying reproduce this on my local setup. -
5. Re: Using proxy for localhost
ron_sigal Nov 14, 2008 2:36 AM (in response to mproch)Just so I understand, you're saying that if you
* have a Remoting server running at localhost:8080
* have a proxy server running at localhost:8081
* create InvokerLocator "http://localhost:8080/sth" on the client
* specify system properties -Dhttp.proxyHost=localhost and -Dhttp.proxyPort=8081
the invocation goes directly to the Remoting server?