Charles-- various solutions that cannot capture packets (pro-test is effective)

Problem 1: The same wifi cannot be pinged, which leads to the inability to capture data after setting the proxy.
If all settings, such as certificates, port numbers, and proxy are all correct, you need to check whether the IP of the mobile phone and the computer are interoperable.
Open cmd–"ping the phone IP:


insert image description here
The computer and mobile phone under the same wifi cannot be pinged. Do n’t doubt that the router has made isolation restrictions. You can turn off the AP. The certificate cannot be used)
Note: The hotspot turned on by the computer can basically ping the mobile phone
(some people said that connecting to the computer WIFI hotspot cannot capture packets, but after my mobile phone is connected to the hotspot, setting the agent can capture data normally, this depends on the specific problem specific solution)

If the ping is successful, it means that the same WIFI connected to the mobile phone and the computer is in the same local area network
. At this time, it is necessary to check whether the IP of the mobile phone has been added in Proxy->Access Control Settings. If it is added, the data can basically be captured

Problem 2: The certificate is not installed on the mobile phone.
Enter chls.pro/ssl in the mobile browser such as Safari, and click Allow to download the certificate
(Note: You need to set the mobile phone proxy first, and enter chls.pro/ssl in the browser, otherwise it will not This popup appears)
insert image description here

Question 3: The trust certificate setting button is not enabled after the certificate is installed on the mobile phone.
insert image description here
Question 4: Is the Charles port number occupied by other processes?
insert image description here
If the set port number is 9999, we can use cmd to check whether the port number is occupied.
insert image description here
insert image description here
You can see here , the port number is not occupied by other processes, you can use this port with confidence

Question 5: The access control of Charles does not allow the mobile phone IP to join.
insert image description here
If Charles does not pop up the authorization box, you can manually add the IP.

Question 6: Is the Local IP Address added to other IP Addresses? Remove the redundant IP Address, and only need to keep the IP of your own computer. At
insert image description here
present, the most common problems that Little Lemon encounters are these common problems that cannot capture data, such as And those of you who encounter new situations, welcome to comment and leave a message to discuss with each other!

Guess you like

Origin blog.csdn.net/TuT0925/article/details/129038845