Reputation: 141
I have an application installed on my machine for learning purposes. Its URL is http://Localhost:8080/*****. JMeter fails to record the requests whenever I use the URL above. If I replace "localhost" with the machine IP, JMeter records without any issues. Loadrunner can record both URLs.
Is it a bug or is the JMeter proxy setting designed in that way?
Thanks...
Upvotes: 3
Views: 1491
Reputation: 21
Latest version of Firefox by default does not allow localhost or 127.0.0.1 to be proxied.
After searching a lot online, finally the following steps worked for me:
Enter about:config in the Firefox URL bar
Search for config network.proxy.allow_hijacking_localhost using the search box and toggle its value to true
Now try recording scripts in Jmeter from localhost related webpages.
Note:
Please find the about:config page for Firefox browser below.
Upvotes: 2
Reputation: 168002
JMeter doesn't filter loopback URLs, however you browser can do this, at least latest Firefox does:
As per How to Run Performance Tests of Desktop Applications Using JMeter article you might also need to install Microsoft Loopback Adapter
And last, but not the least, the application, browser and JMeter might be looking into different protocols: IPv4 and IPv6, you need to ensure that your localhost
hostname resolves into the same IP address for all 3 components.
Upvotes: 1