Search code examples
jmeter

JMeter doesn't record HTTP traffic on the mobile device


I have to record HTTP traffic on my mobile phone with JMeter to do so I added HTTP(s) Test Script Recorder to Test Plan and set the port inside recorder to 8888. I also added Recording Controller inside Thread Group then I clicked Start button inside HTTP Proxy Server to generate certificate, after that I used ipconfig in the cmd to get my computer's IP address.

On my mobile I install transferred JMeter certificate and modify Wi-Fi network by setting parameter Proxy settings to Manual and typing IP of the computer as a hostname and 8888 as proxy port.

According to the instructions on the Internet, this configuration should allow me to record traffic on the phone, but nothing like that happens. It seems to me that something may be wrong with the proxy settings, because after I manually configured proxy the phone is offline. Does anyone know what the cause could be and how to fix this problem?

jmeter.log file doesn't show any errors, only the following information.

2021-06-01 20:26:07,289 INFO o.a.j.p.h.p.ProxyControl: Valid alias found for :root_ca:
2021-06-01 20:26:07,289 INFO o.a.j.p.h.p.ProxyControl: Valid alias found for :intermediate_ca:
2021-06-01 20:26:07,290 INFO o.a.j.p.h.p.Daemon: Creating Daemon Socket on port: 8888
2021-06-01 20:26:07,291 INFO o.a.j.p.h.p.Daemon: Test Script Recorder up and running!

Solution

  • Problem has been solved. It was because my home network was set to public, all I had to do was change this setting and everything works.