Just try to figure out how to do ip spoofing in JMeter on my mac. What is done is that I created file which contains ip addresses somewhere in my subnetwork. When I try to run thread JMeter shows me:
java.net.BindException: Can't assign requested address
Only my IP has ping. So, could you please advice me where I am wrong?
You can add an IP alias from Terminal application (it is under Applications -> Utilities) as
sudo ifconfig en0 alias 192.168.0.12 255.255.255.0
where:
en
- is Network Interface name 192.168.0.12
- is the IP alias Once you set up the alias, you can use new IP address in the "Source address" input
And HTTP requests will use that IP address as source one:
You can remove the IP alias when it is no longer required as
sudo ifconfig en0 -alias 192.168.0.12
See Using IP Spoofing to Simulate Requests from Different IP Addresses with JMeter guide for more detailed information on the domain.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.