Use Wireshark and Filddler to grab the TCP and HTTP requests on the phone side

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.