Sometimes you need to check the status of your network requests while testing your phone client. Using the way you view log in the IDE solves the problem, but it can be more complicated. Wireshark not be able to do proxy, and fiddler is mainly to catch HTTP requests, no Wireshark powerful. The combination of both can be used to grab the phone's HTTP and TCP requests, and do not need to use tcpdump such tools.
1, fiddler do agent
Premise: Mobile phones and PC computers need to connect to the same domain name network
Steps:
(1) Tools-Fiddler Options ...
Configure the port number according to the above content.
(2) Modify the network configuration on the mobile side, modify the proxy settings to manual settings
The above server is the IP address of the Fiddler running machine, the port number is the port number that was just set, save.
Actual results:
Using your phone to open the app we want to monitor, we'll see all the HTTP requests monitored in Fiddler, and the rest of the fiddler.
2. Wireshark Grasping bag
Prerequisite: The fiddler agent has been set up according to the 1 steps
Steps:
(1)
Results:
OK, we can see all requests from the local NIC.
Use Wireshark and Filddler to grab the TCP and HTTP requests on the phone side