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
JMeter's HTTP Request sampler provides a special field to set source IP address:
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.