Bug 40438

Summary: setting "httpclient.localaddress" has no effect
Product: JMeter - Now in Github Reporter: andresgr <angoro>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: major    
Priority: P2    
Version: 2.2   
Target Milestone: ---   
Hardware: Other   
OS: Linux   

Description andresgr 2006-09-07 15:32:01 UTC
In jmeter.properties the mentioned property should allow to set the local ip
address for HTTP requests.

It does not work. Revising the class HTTPSampler2 i have found that 

251: HostConfiguration hc = new HostConfiguration();

this "hc" object is correctly created but it is  *not* used in the creation of
the httpClient object.
Comment 1 Sebb 2006-09-07 18:31:28 UTC
I see what you mean. Not sure what is going on here, because I thought the 
proxy code was working, and that uses the HostConfiguration ... perhaps 
neither works.

I've checked in a change to add the host configuration to the client object - 
if you would like to give it a try, this is in the nightly build: 2-2.20060907.

If this fixes the problem (or not!) please update this issue accordingly.

Thanks.
Comment 2 andresgr 2006-09-08 08:40:27 UTC
OK.

It works fine now.

Thanks.
Comment 3 The ASF infrastructure team 2022-09-24 20:37:37 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1785