Reputation: 91
Please find the steps I followed when recording the mobile device traffic
Note - Traffic is allowed through mentioned port via Firewall (inbound rule)
Observation - No any traffic from mobile is recorded.
below logs are recorded only in jmeter console
Please help to know the reason how this issue need to be resolved.
Upvotes: 0
Views: 419
Reputation: 91
I found the solution by myself.
Solution:
Originally the network profile of my lap top was set as Public. see below.
Then I changed it to "Private". problem was resolved for me with that. Thanks.
Upvotes: 0
Reputation: 168072
I don't think these steps are sufficient for Android 12, you need to additionally follow the steps from Network security configuration page of Android documentation in order to instruct your application to trust JMeter's CA certificate.
add the next line to the application section of your app manifest
android:networkSecurityConfig="@xml/network_security_config"
create network_security_config.xml file under your app resources folder with the following content
<?xml version=“1.0” encoding="utf-8"?>
<network-security-config>
<debug-overrides>
<trust-anchors>
<!-- Trust user added CAs while debuggable only -->
<certificates src="user" />
</trust-anchors>
</debug-overrides>
</network-security-config>
build your app in debug mode
replace the app in the device with the debug .apk from the previous step
More information: Configure Android Devices for Proxy Recording
Upvotes: 1