0

My jmeter setup is installed in a virtual machine, I want to hit requests such that they appear to come from different IPS. Need a possible solution if any.

1 Answer 1

1

JMeter's HTTP Request sampler provides a special field to set source IP address:

enter image description here

so you can create a list of IP addresses, put them into a CSV file and use CSV Data Set Config so each request would go from a different IP.

Just be aware of one constraint: the IP address (or at least an IP alias)must be present in the operating system so you need to perform the necessary configuration for your operating system.

See IP Spoofing With JMeter: How to Simulate Requests from Different IP Addresses article for more details.

Also the approach will work for local intranet, if you're behind the NAT and the target system is in the Internet - it will see requests coming from one address only.

2
  • Is it possible to do in EC2 machines? Commented Oct 18, 2022 at 7:19
  • EC2 machine isn't different from any other machine
    – Dmitri T
    Commented Oct 18, 2022 at 7:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.