Search code examples
jmeteripspoofing

ip spoofing not working jmeter


I am trying IP spoofing in JMeter HTTP requests but my public IP is going to the request, not the IP address which I have specified under advanced option in HTTP sampler. can anyone help me in this?

I am also sharing the screenshot of my test plan.

here In my test plan my let's say my IP is x.x.x.x and the IP which I have configured for IP spoofing is: 192.168.23.12 as shown in the screenshot but request to the server is still going with my IP which is x.x.x.x.

Can anyone help me out in this?


Solution

  • As per HTTP Request sampler documentation

    Source address field [Only for HTTP Request with HTTPClient implementation]

    So change "Implementation" to HttpClient4 and it should start working as expected.

    Also be aware that you need to have this IP address (or alias) defined in the underlying operating system.

    See Using IP Spoofing to Simulate Requests from Different IP Addresses with JMeter article for more information and configuration instructions for different operating systems.