sixty-one。 Remember the process of using fiddler to grab mobile network packets.
Using Fiddler can easily grab network requests, such as Http, but how to use Fiddler on your computer to grab network requests in your phone? For example, we need to debug a mobile phone App.
one。 Download Fiddler
First of all, you have to download Fiddler. By the way, it is only available on windows, and it is very troublesome to use mac.
The download address can be Baidu or Tencent.
Https://pc.qq.com/detail/10/detail_3330.html
two。 Set Fiddler2.1 to open Fiddler
2.2 set connection parameters
Tools- > Options- > Connections- > Allow remote computers to connect is shown below
The default port is 8888
2.3 restart Fiddler III. Cell phone connection 3.1Connect to WIFI
Connect the WIFI of the mobile phone. Note that it is the same WIFI as the computer.
Set the proxy for the WIFI of the mobile phone. The hostname is the IP address of the computer, and the port is the port set by Fiddler. Default is 8888.
3.2 access to the computer agent address
Open the mobile browser and enter the IP address of the http:// computer: proxy port
The computer address is the IP address of the Fiddler running computer.
The proxy port is the port of the proxy of Fiddler. The default is 8888 above.
four。 test
Operate on the phone to see if the Fiddler on the computer shows the phone's Http request.