You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Miguel Godinho da Fonseca <Lu...@BCI.CO.MZ> on 2012/02/02 14:30:37 UTC

Can't put to Work the property from HTTP Request Source IP address

Hi There!

I have here an issue that I don't even know if it's my misusage or a real issue.
In order to load test a web application I need to simulate request's from different hosts. This because, the web application validates the host via its IP address.

So I was thinking in using the property from HTTP Request Source IP address and load the IP's from a dataset.
It did not worked as expected. I sent the request's from an address different from the ones I intended.

After this I have tried a different approach: Force Jmeter to send all request from the same address by configuring it in the Jmeter.properties file as shown above:
#httpclient.localaddress=1.2.3.4
httpclient.localaddress=10.2.31.253

Same behavior. Meaning that it kept sending request from the same address.

Please keep in mind that for every configuration change I have restarted Jmeter.
I'm Using:
SO: XP SP2;
Jmeter 2.5.1;
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing)

Kind Regards,
Miguel Fonseca

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


RE: Can't put to Work the property from HTTP Request Source IP address

Posted by Miguel Godinho da Fonseca <Lu...@BCI.CO.MZ>.
I just wanted for Jmter to work as described :)

In Jmeter website it says that you can force the sending IP address using the http request. Here you have a property / field where you can put the IP you want to use. The catch is that it must be one IP from your machine (Jmeter host machine as several IP Addresses).

I have all this!
Four IP addresses in my Jmeter host machine, and "forced" the request to be sent via one of this addresses. But it does not work.

I wanted help to find out what am I missing here.
I know what and how to do it with Jmeter... IT just seems no to work as described.

Miguel Godinho da Fonseca
Direcção de Sistemas de Informação

-----Original Message-----
From: Oliver Lloyd [mailto:oliver_lloyd@hotmail.com] 
Sent: quinta-feira, 2 de Fevereiro de 2012 17:41
To: jmeter-user@jakarta.apache.org
Subject: Re: Can't put to Work the property from HTTP Request Source IP address

Ah, right, once only access based on IP. It might be worth taking another approach here and either adjusting this restriction or just outright disabling it. This will allow you to proceed much faster.

Of course, the problem with that is you won't be testing this code - perhaps this table will grow and grow over time and not be indexed properly? To mitigate this risk you could run a component test further down the stack simulating lots of the relevant calls using different IPs. This test could be at the database level directly or perhaps you could write a simple widget of some sort that makes these calls and then call the widget using JMeter passing in a new 'IP string' each time.

-----
http://www.http503.com/
--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-from-HTTP-Request-Source-IP-address-tp5450654p5451074.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Can't put to Work the property from HTTP Request Source IP address

Posted by Oliver Lloyd <ol...@hotmail.com>.
Ah, right, once only access based on IP. It might be worth taking another
approach here and either adjusting this restriction or just outright
disabling it. This will allow you to proceed much faster.

Of course, the problem with that is you won't be testing this code - perhaps
this table will grow and grow over time and not be indexed properly? To
mitigate this risk you could run a component test further down the stack
simulating lots of the relevant calls using different IPs. This test could
be at the database level directly or perhaps you could write a simple widget
of some sort that makes these calls and then call the widget using JMeter
passing in a new 'IP string' each time.

-----
http://www.http503.com/
--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-from-HTTP-Request-Source-IP-address-tp5450654p5451074.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Can't put to Work the property from HTTP Request Source IP address

Posted by MiguelFonseca <lu...@googlemail.com>.
Thanks!

I have just downloaded Jmeter 2.6 and the problem was the Jmeter Version!
I was still in 2.5.

Thanks for All the Help.

Kind Regards



On 6 February 2012 10:41, sergio <se...@bosoconsulting.it> wrote:
> Il 06/02/2012 07:48, Miguel Godinho da Fonseca ha scritto:
>>
>> But what I can't do is put it to work!
>>
>> I've read that in Jmeter webpage and gave it a try. Configured three IP
>> addresses in my machine and with a CSV dataset I was trying to force the
>> Source IP address...
>> The thing is that the requests are still being sent by other address
>> different from the ones I have loaded from the CSV dataset file.te
>
> no I did not use a variable ...
> The way I worked was a little bit more complicated (but maybe someone has a
> better way):
>
> - I setup different instances (1 for each address); each instance has its
> own RMIregistry, on a different port
> - I passed the IP address as a property to each instance
>
> Here I included the script I used to launch everything:
> The network address is written in to the script, the last byte is passed as
> a parameter.
> Remember to:
> - modify JMeter properties so that RMI registry is not launched
> automatically;
> - use only HttpClient sampler
> - split data (e.g. creddentials between instances), as if it were a
> distributed installation
>
> HTH
> best regards
>
> Sergio
>
>
>> Have you done something special for it to work?
>>
>> Miguel Godinho da Fonseca
>> Direcção de Sistemas de Informação
>>
>>
>> -----Original Message-----
>> From: sergio [mailto:sergio@bosoconsulting.it]
>> Sent: quinta-feira, 2 de Fevereiro de 2012 17:59
>> To: JMeter Users List
>> Subject: Re: Can't put to Work the property from HTTP Request Source IP
>> address
>>
>> Il 02/02/2012 15:23, sebb ha scritto:
>>>
>>> On 2 February 2012 14:14, Miguel Godinho da Fonseca
>>> <Lu...@bci.co.mz>   wrote:
>>>>
>>>> It's a Kind of restricted!
>>>>
>>>> It's a Bank application that only allows each host or user (they ate not
>>>> mutual exclusive) to connected only once.
>>>> During login the web application reads the source IP Address and
>>>> matches it with a host on the database. So if I'm using Jmeter from
>>>> the same host... I'm in trouble :)
>>
>> well, you can work around this, but you need to add ALL the IP address you
>> need to the Jmeter server LAN interface.
>> Then, you launch different Jmeter instances passing an IP address to each
>> of them, and using HTTPclient.
>>
>> I did this to test a load balanced infrastructure,and worked pretty well,
>> but I think you find limitations to few IP addresses (maybe 8 or 10 or so)
>> due to OS limitations.
>>
>> regards
>>
>>> You are also likely to be in trouble if you try and access the app
>>> from behind a NAT router.
>>>
>>>> So I have thought about using HTTP-Request-Source-IP-address and create
>>>> separate LAN cards on my host and use these new addresses.
>>>> What I'm saying is that neither HTTP-Request-Source-IP-address or
>>>> forcing a host address via httpclient.localaddress.
>>>>
>>>> Can you explain further what do you mean when you say "This only works
>>>> using HttpClient sampler "?
>>>
>>> Have you read:
>>>
>>> http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Requ
>>> est
>>>
>>> Read up on "Implementation".
>>>
>>>
>>>> Kind Regards,
>>>> Miguel
>>>>
>>>> -----Original Message-----
>>>> From: Oliver Lloyd [mailto:oliver_lloyd@hotmail.com]
>>>> Sent: quinta-feira, 2 de Fevereiro de 2012 15:59
>>>> To: jmeter-user@jakarta.apache.org
>>>> Subject: Re: Can't put to Work the property from HTTP Request Source
>>>> IP address
>>>>
>>>> When you say 'validates' are you talking about load balancing or some
>>>> form of restricted access?
>>>>
>>>> If restricted access then just get the IP addresses of the hosts you are
>>>> running jmeter on added to the relevant whitelist of IPs. If load balancing
>>>> then, basically, jmeter does not support ip spoofing. Depending on the exact
>>>> setup of the load balancer algorithm you can *potentially* get away with
>>>> simply using multiple hosts to run the test from (keep in mind some load
>>>> balancers base traffic on DNS, in this case do some research on 'Java DNS
>>>> caching').
>>>>
>>>> If your host has multiple IPs then httpclient.localaddress allows you to
>>>> chose one for each running instance of jmeter. This only works using
>>>> HttpClient sampler.
>>>>
>>>>
>>>>
>>>> -----
>>>> http://www.http503.com/
>>>>
>>>> --
>>>> View this message in context:
>>>> http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-fro
>>>> m-HTTP-Request-Source-IP-address-tp5450654p5450764.html
>>>>
>>>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>
>>
>
>
> --
>
> Ing. Sergio Boso
>
> Mail:
> Web:
> PEC:
> Cell:
> Linkedin:
> Skype:
>
>
>
> sergio@bosoconsulting.it <ma...@yahoo.it>
> www.bosoconsulting.it
> sergio.boso@ingpec.eu <ma...@ingpec.eu>
> +39 335 7243 445
> http://it.linkedin.com/in/sergioboso
> <http://www.linkedin.com/pub/sergio-boso/1/29b/255>
> sbos61
>
> In caso di erronea ricezione da parte di persona diversa, siete pregati di
> eliminare il messaggio e i suoi allegati in modo definitivo dai vostri
> archivi e di volercelo comunicare immediatamente restituendoci il messaggio
> via e-mail al seguente indirizzosergio@bosoconsulting.it
> <ma...@yahoo.it>
> L’interessato può, inoltre, esercitare tutti i diritti di accesso sui propri
> dati previsti dal decreto 196/2003, tra i quali i diritti di rettifica,
> aggiornamento e cancellazione, inviando un messaggio
> all’indirizzo:sergio@bosoconsulting.it <ma...@yahoo.it>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Can't put to Work the property from HTTP Request Source IP address

Posted by sergio <se...@bosoconsulting.it>.
Il 06/02/2012 07:48, Miguel Godinho da Fonseca ha scritto:
> But what I can't do is put it to work!
>
> I've read that in Jmeter webpage and gave it a try. Configured three IP addresses in my machine and with a CSV dataset I was trying to force the Source IP address...
> The thing is that the requests are still being sent by other address different from the ones I have loaded from the CSV dataset file.te
no I did not use a variable ...
The way I worked was a little bit more complicated (but maybe someone has a better way):

- I setup different instances (1 for each address); each instance has its own RMIregistry, on a different port
- I passed the IP address as a property to each instance

Here I included the script I used to launch everything:
The network address is written in to the script, the last byte is passed as a parameter.
Remember to:
- modify JMeter properties so that RMI registry is not launched automatically;
- use only HttpClient sampler
- split data (e.g. creddentials between instances), as if it were a distributed installation

HTH
best regards

Sergio


> Have you done something special for it to work?
>
> Miguel Godinho da Fonseca
> Direcção de Sistemas de Informação
>
>
> -----Original Message-----
> From: sergio [mailto:sergio@bosoconsulting.it]
> Sent: quinta-feira, 2 de Fevereiro de 2012 17:59
> To: JMeter Users List
> Subject: Re: Can't put to Work the property from HTTP Request Source IP address
>
> Il 02/02/2012 15:23, sebb ha scritto:
>> On 2 February 2012 14:14, Miguel Godinho da Fonseca
>> <Lu...@bci.co.mz>   wrote:
>>> It's a Kind of restricted!
>>>
>>> It's a Bank application that only allows each host or user (they ate not mutual exclusive) to connected only once.
>>> During login the web application reads the source IP Address and
>>> matches it with a host on the database. So if I'm using Jmeter from
>>> the same host... I'm in trouble :)
> well, you can work around this, but you need to add ALL the IP address you need to the Jmeter server LAN interface.
> Then, you launch different Jmeter instances passing an IP address to each of them, and using HTTPclient.
>
> I did this to test a load balanced infrastructure,and worked pretty well, but I think you find limitations to few IP addresses (maybe 8 or 10 or so) due to OS limitations.
>
> regards
>
>> You are also likely to be in trouble if you try and access the app
>> from behind a NAT router.
>>
>>> So I have thought about using HTTP-Request-Source-IP-address and create separate LAN cards on my host and use these new addresses.
>>> What I'm saying is that neither HTTP-Request-Source-IP-address or forcing a host address via httpclient.localaddress.
>>>
>>> Can you explain further what do you mean when you say "This only works using HttpClient sampler "?
>> Have you read:
>>
>> http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Requ
>> est
>>
>> Read up on "Implementation".
>>
>>
>>> Kind Regards,
>>> Miguel
>>>
>>> -----Original Message-----
>>> From: Oliver Lloyd [mailto:oliver_lloyd@hotmail.com]
>>> Sent: quinta-feira, 2 de Fevereiro de 2012 15:59
>>> To: jmeter-user@jakarta.apache.org
>>> Subject: Re: Can't put to Work the property from HTTP Request Source
>>> IP address
>>>
>>> When you say 'validates' are you talking about load balancing or some form of restricted access?
>>>
>>> If restricted access then just get the IP addresses of the hosts you are running jmeter on added to the relevant whitelist of IPs. If load balancing then, basically, jmeter does not support ip spoofing. Depending on the exact setup of the load balancer algorithm you can *potentially* get away with simply using multiple hosts to run the test from (keep in mind some load balancers base traffic on DNS, in this case do some research on 'Java DNS caching').
>>>
>>> If your host has multiple IPs then httpclient.localaddress allows you to chose one for each running instance of jmeter. This only works using HttpClient sampler.
>>>
>>>
>>>
>>> -----
>>> http://www.http503.com/
>>> --
>>> View this message in context:
>>> http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-fro
>>> m-HTTP-Request-Source-IP-address-tp5450654p5450764.html
>>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>


-- 

Ing. Sergio Boso

Mail:
Web:
PEC:
Cell:
Linkedin:
Skype:

	

sergio@bosoconsulting.it <ma...@yahoo.it>
www.bosoconsulting.it
sergio.boso@ingpec.eu <ma...@ingpec.eu>
+39 335 7243 445
http://it.linkedin.com/in/sergioboso <http://www.linkedin.com/pub/sergio-boso/1/29b/255>
sbos61

In caso di erronea ricezione da parte di persona diversa, siete pregati di eliminare il messaggio e i suoi allegati in modo 
definitivo dai vostri archivi e di volercelo comunicare immediatamente restituendoci il messaggio via e-mail al seguente 
indirizzosergio@bosoconsulting.it <ma...@yahoo.it>
L’interessato può, inoltre, esercitare tutti i diritti di accesso sui propri dati previsti dal decreto 196/2003, tra i quali i 
diritti di rettifica, aggiornamento e cancellazione, inviando un messaggio all’indirizzo:sergio@bosoconsulting.it 
<ma...@yahoo.it>





RE: Can't put to Work the property from HTTP Request Source IP address

Posted by Miguel Godinho da Fonseca <Lu...@BCI.CO.MZ>.
But what I can't do is put it to work!

I've read that in Jmeter webpage and gave it a try. Configured three IP addresses in my machine and with a CSV dataset I was trying to force the Source IP address... 
The thing is that the requests are still being sent by other address different from the ones I have loaded from the CSV dataset file.

Have you done something special for it to work?

Miguel Godinho da Fonseca
Direcção de Sistemas de Informação


-----Original Message-----
From: sergio [mailto:sergio@bosoconsulting.it] 
Sent: quinta-feira, 2 de Fevereiro de 2012 17:59
To: JMeter Users List
Subject: Re: Can't put to Work the property from HTTP Request Source IP address

Il 02/02/2012 15:23, sebb ha scritto:
> On 2 February 2012 14:14, Miguel Godinho da Fonseca 
> <Lu...@bci.co.mz>  wrote:
>> It's a Kind of restricted!
>>
>> It's a Bank application that only allows each host or user (they ate not mutual exclusive) to connected only once.
>> During login the web application reads the source IP Address and 
>> matches it with a host on the database. So if I'm using Jmeter from 
>> the same host... I'm in trouble :)
well, you can work around this, but you need to add ALL the IP address you need to the Jmeter server LAN interface.
Then, you launch different Jmeter instances passing an IP address to each of them, and using HTTPclient.

I did this to test a load balanced infrastructure,and worked pretty well, but I think you find limitations to few IP addresses (maybe 8 or 10 or so) due to OS limitations.

regards

> You are also likely to be in trouble if you try and access the app 
> from behind a NAT router.
>
>> So I have thought about using HTTP-Request-Source-IP-address and create separate LAN cards on my host and use these new addresses.
>> What I'm saying is that neither HTTP-Request-Source-IP-address or forcing a host address via httpclient.localaddress.
>>
>> Can you explain further what do you mean when you say "This only works using HttpClient sampler "?
> Have you read:
>
> http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Requ
> est
>
> Read up on "Implementation".
>
>
>> Kind Regards,
>> Miguel
>>
>> -----Original Message-----
>> From: Oliver Lloyd [mailto:oliver_lloyd@hotmail.com]
>> Sent: quinta-feira, 2 de Fevereiro de 2012 15:59
>> To: jmeter-user@jakarta.apache.org
>> Subject: Re: Can't put to Work the property from HTTP Request Source 
>> IP address
>>
>> When you say 'validates' are you talking about load balancing or some form of restricted access?
>>
>> If restricted access then just get the IP addresses of the hosts you are running jmeter on added to the relevant whitelist of IPs. If load balancing then, basically, jmeter does not support ip spoofing. Depending on the exact setup of the load balancer algorithm you can *potentially* get away with simply using multiple hosts to run the test from (keep in mind some load balancers base traffic on DNS, in this case do some research on 'Java DNS caching').
>>
>> If your host has multiple IPs then httpclient.localaddress allows you to chose one for each running instance of jmeter. This only works using HttpClient sampler.
>>
>>
>>
>> -----
>> http://www.http503.com/
>> --
>> View this message in context: 
>> http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-fro
>> m-HTTP-Request-Source-IP-address-tp5450654p5450764.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>


-- 

Ing. Sergio Boso

Mail:
Web:
PEC:
Cell:
Linkedin:
Skype:

	

sergio@bosoconsulting.it <ma...@yahoo.it> www.bosoconsulting.it sergio.boso@ingpec.eu <ma...@ingpec.eu>
+39 335 7243 445
http://it.linkedin.com/in/sergioboso <http://www.linkedin.com/pub/sergio-boso/1/29b/255>
sbos61

In caso di erronea ricezione da parte di persona diversa, siete pregati di eliminare il messaggio e i suoi allegati in modo definitivo dai vostri archivi e di volercelo comunicare immediatamente restituendoci il messaggio via e-mail al seguente indirizzosergio@bosoconsulting.it <ma...@yahoo.it> L’interessato può, inoltre, esercitare tutti i diritti di accesso sui propri dati previsti dal decreto 196/2003, tra i quali i diritti di rettifica, aggiornamento e cancellazione, inviando un messaggio all’indirizzo:sergio@bosoconsulting.it
<ma...@yahoo.it>





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Can't put to Work the property from HTTP Request Source IP address

Posted by sergio <se...@bosoconsulting.it>.
Il 02/02/2012 15:23, sebb ha scritto:
> On 2 February 2012 14:14, Miguel Godinho da Fonseca
> <Lu...@bci.co.mz>  wrote:
>> It's a Kind of restricted!
>>
>> It's a Bank application that only allows each host or user (they ate not mutual exclusive) to connected only once.
>> During login the web application reads the source IP Address and matches it with a host on the database. So if I'm using Jmeter from the same host... I'm in trouble :)
well, you can work around this, but you need to add ALL the IP address you need to the Jmeter server LAN interface.
Then, you launch different Jmeter instances passing an IP address to each of them, and using HTTPclient.

I did this to test a load balanced infrastructure,and worked pretty well, but I think you find limitations to few IP addresses 
(maybe 8 or 10 or so) due to OS limitations.

regards

> You are also likely to be in trouble if you try and access the app
> from behind a NAT router.
>
>> So I have thought about using HTTP-Request-Source-IP-address and create separate LAN cards on my host and use these new addresses.
>> What I'm saying is that neither HTTP-Request-Source-IP-address or forcing a host address via httpclient.localaddress.
>>
>> Can you explain further what do you mean when you say "This only works using HttpClient sampler "?
> Have you read:
>
> http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request
>
> Read up on "Implementation".
>
>
>> Kind Regards,
>> Miguel
>>
>> -----Original Message-----
>> From: Oliver Lloyd [mailto:oliver_lloyd@hotmail.com]
>> Sent: quinta-feira, 2 de Fevereiro de 2012 15:59
>> To: jmeter-user@jakarta.apache.org
>> Subject: Re: Can't put to Work the property from HTTP Request Source IP address
>>
>> When you say 'validates' are you talking about load balancing or some form of restricted access?
>>
>> If restricted access then just get the IP addresses of the hosts you are running jmeter on added to the relevant whitelist of IPs. If load balancing then, basically, jmeter does not support ip spoofing. Depending on the exact setup of the load balancer algorithm you can *potentially* get away with simply using multiple hosts to run the test from (keep in mind some load balancers base traffic on DNS, in this case do some research on 'Java DNS caching').
>>
>> If your host has multiple IPs then httpclient.localaddress allows you to chose one for each running instance of jmeter. This only works using HttpClient sampler.
>>
>>
>>
>> -----
>> http://www.http503.com/
>> --
>> View this message in context: http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-from-HTTP-Request-Source-IP-address-tp5450654p5450764.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>


-- 

Ing. Sergio Boso

Mail:
Web:
PEC:
Cell:
Linkedin:
Skype:

	

sergio@bosoconsulting.it <ma...@yahoo.it>
www.bosoconsulting.it
sergio.boso@ingpec.eu <ma...@ingpec.eu>
+39 335 7243 445
http://it.linkedin.com/in/sergioboso <http://www.linkedin.com/pub/sergio-boso/1/29b/255>
sbos61

In caso di erronea ricezione da parte di persona diversa, siete pregati di eliminare il messaggio e i suoi allegati in modo 
definitivo dai vostri archivi e di volercelo comunicare immediatamente restituendoci il messaggio via e-mail al seguente 
indirizzosergio@bosoconsulting.it <ma...@yahoo.it>
L’interessato può, inoltre, esercitare tutti i diritti di accesso sui propri dati previsti dal decreto 196/2003, tra i quali i 
diritti di rettifica, aggiornamento e cancellazione, inviando un messaggio all’indirizzo:sergio@bosoconsulting.it 
<ma...@yahoo.it>





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Can't put to Work the property from HTTP Request Source IP address

Posted by sebb <se...@gmail.com>.
On 2 February 2012 14:14, Miguel Godinho da Fonseca
<Lu...@bci.co.mz> wrote:
> It's a Kind of restricted!
>
> It's a Bank application that only allows each host or user (they ate not mutual exclusive) to connected only once.
> During login the web application reads the source IP Address and matches it with a host on the database. So if I'm using Jmeter from the same host... I'm in trouble :)

You are also likely to be in trouble if you try and access the app
from behind a NAT router.

> So I have thought about using HTTP-Request-Source-IP-address and create separate LAN cards on my host and use these new addresses.
> What I'm saying is that neither HTTP-Request-Source-IP-address or forcing a host address via httpclient.localaddress.
>
> Can you explain further what do you mean when you say "This only works using HttpClient sampler "?

Have you read:

http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request

Read up on "Implementation".


> Kind Regards,
> Miguel
>
> -----Original Message-----
> From: Oliver Lloyd [mailto:oliver_lloyd@hotmail.com]
> Sent: quinta-feira, 2 de Fevereiro de 2012 15:59
> To: jmeter-user@jakarta.apache.org
> Subject: Re: Can't put to Work the property from HTTP Request Source IP address
>
> When you say 'validates' are you talking about load balancing or some form of restricted access?
>
> If restricted access then just get the IP addresses of the hosts you are running jmeter on added to the relevant whitelist of IPs. If load balancing then, basically, jmeter does not support ip spoofing. Depending on the exact setup of the load balancer algorithm you can *potentially* get away with simply using multiple hosts to run the test from (keep in mind some load balancers base traffic on DNS, in this case do some research on 'Java DNS caching').
>
> If your host has multiple IPs then httpclient.localaddress allows you to chose one for each running instance of jmeter. This only works using HttpClient sampler.
>
>
>
> -----
> http://www.http503.com/
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-from-HTTP-Request-Source-IP-address-tp5450654p5450764.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


RE: Can't put to Work the property from HTTP Request Source IP address

Posted by Miguel Godinho da Fonseca <Lu...@BCI.CO.MZ>.
It's a Kind of restricted!

It's a Bank application that only allows each host or user (they ate not mutual exclusive) to connected only once.
During login the web application reads the source IP Address and matches it with a host on the database. So if I'm using Jmeter from the same host... I'm in trouble :)

So I have thought about using HTTP-Request-Source-IP-address and create separate LAN cards on my host and use these new addresses.
What I'm saying is that neither HTTP-Request-Source-IP-address or forcing a host address via httpclient.localaddress.

Can you explain further what do you mean when you say "This only works using HttpClient sampler "?

Kind Regards,
Miguel 

-----Original Message-----
From: Oliver Lloyd [mailto:oliver_lloyd@hotmail.com] 
Sent: quinta-feira, 2 de Fevereiro de 2012 15:59
To: jmeter-user@jakarta.apache.org
Subject: Re: Can't put to Work the property from HTTP Request Source IP address

When you say 'validates' are you talking about load balancing or some form of restricted access?

If restricted access then just get the IP addresses of the hosts you are running jmeter on added to the relevant whitelist of IPs. If load balancing then, basically, jmeter does not support ip spoofing. Depending on the exact setup of the load balancer algorithm you can *potentially* get away with simply using multiple hosts to run the test from (keep in mind some load balancers base traffic on DNS, in this case do some research on 'Java DNS caching').

If your host has multiple IPs then httpclient.localaddress allows you to chose one for each running instance of jmeter. This only works using HttpClient sampler.



-----
http://www.http503.com/
--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-from-HTTP-Request-Source-IP-address-tp5450654p5450764.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Can't put to Work the property from HTTP Request Source IP address

Posted by Oliver Lloyd <ol...@hotmail.com>.
When you say 'validates' are you talking about load balancing or some form of
restricted access?

If restricted access then just get the IP addresses of the hosts you are
running jmeter on added to the relevant whitelist of IPs. If load balancing
then, basically, jmeter does not support ip spoofing. Depending on the exact
setup of the load balancer algorithm you can *potentially* get away with
simply using multiple hosts to run the test from (keep in mind some load
balancers base traffic on DNS, in this case do some research on 'Java DNS
caching').

If your host has multiple IPs then httpclient.localaddress allows you to
chose one for each running instance of jmeter. This only works using
HttpClient sampler.



-----
http://www.http503.com/
--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-from-HTTP-Request-Source-IP-address-tp5450654p5450764.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Can't put to Work the property from HTTP Request Source IP address

Posted by Philippe Mouawad <ph...@gmail.com>.
Read embedded instead of embosses

On Monday, February 6, 2012, Philippe Mouawad <ph...@gmail.com>
wrote:
> Hello,
> Yes use hc3.1 or hc4.
> Use jmeter 2.6 as there was an issue on embosses ressources .
> Regards
> Philippe
> Http://www.ubik-ingenierie.com
> On Monday, February 6, 2012, lmfonseca <lu...@googlemail.com>
wrote:
>> I'm using the Sampler HTTP Request!
>>
>> Edit > Add Sampler > HTTP Request
>>
>> When you say "The above properties don't apply to the Java
implementation."
>> does this means I have to choose HTTP 4 or HTTP 3.1?
>>
>> I have also tried this! But I received a strange error regarding
>> malformation request...
>> But please confirm me that you are saying that I should change from Java
>> Implementation to one of the HTTP.
>>
>> Kind Regards
>>
>>
>> --
>> View this message in context:
http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-from-HTTP-Request-Source-IP-address-tp5450654p5459496.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>
>
> --
> Cordialement.
> Philippe Mouawad.
>
>
>
>

-- 
Cordialement.
Philippe Mouawad.

Re: Can't put to Work the property from HTTP Request Source IP address

Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
Yes use hc3.1 or hc4.
Use jmeter 2.6 as there was an issue on embosses ressources .
Regards
Philippe
Http://www.ubik-ingenierie.com
On Monday, February 6, 2012, lmfonseca <lu...@googlemail.com> wrote:
> I'm using the Sampler HTTP Request!
>
> Edit > Add Sampler > HTTP Request
>
> When you say "The above properties don't apply to the Java
implementation."
> does this means I have to choose HTTP 4 or HTTP 3.1?
>
> I have also tried this! But I received a strange error regarding
> malformation request...
> But please confirm me that you are saying that I should change from Java
> Implementation to one of the HTTP.
>
> Kind Regards
>
>
> --
> View this message in context:
http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-from-HTTP-Request-Source-IP-address-tp5450654p5459496.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

-- 
Cordialement.
Philippe Mouawad.

Re: Can't put to Work the property from HTTP Request Source IP address

Posted by lmfonseca <lu...@googlemail.com>.
I'm using the Sampler HTTP Request! 

Edit > Add Sampler > HTTP Request 

When you say "The above properties don't apply to the Java implementation."
does this means I have to choose HTTP 4 or HTTP 3.1? 

I have also tried this! But I received a strange error regarding
malformation request... 
But please confirm me that you are saying that I should change from Java
Implementation to one of the HTTP. 

Kind Regards 
 

--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-t-put-to-Work-the-property-from-HTTP-Request-Source-IP-address-tp5450654p5459496.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Can't put to Work the property from HTTP Request Source IP address

Posted by sebb <se...@gmail.com>.
On 2 February 2012 13:30, Miguel Godinho da Fonseca
<Lu...@bci.co.mz> wrote:
> Hi There!
>
> I have here an issue that I don't even know if it's my misusage or a real issue.
> In order to load test a web application I need to simulate request's from different hosts. This because, the web application validates the host via its IP address.
>
> So I was thinking in using the property from HTTP Request Source IP address and load the IP's from a dataset.
> It did not worked as expected. I sent the request's from an address different from the ones I intended.
>
> After this I have tried a different approach: Force Jmeter to send all request from the same address by configuring it in the Jmeter.properties file as shown above:
> #httpclient.localaddress=1.2.3.4
> httpclient.localaddress=10.2.31.253
>
> Same behavior. Meaning that it kept sending request from the same address.
>
> Please keep in mind that for every configuration change I have restarted Jmeter.
> I'm Using:
> SO: XP SP2;
> Jmeter 2.5.1;
> java version "1.6.0_30"
> Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
> Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing)

Which Sampler? Which HTTP Implementation?
The above properties don't apply to the Java implementation.

> Kind Regards,
> Miguel Fonseca
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org