Packet Capture Setup¶
Packet Capture Setup involves configuring a system, typically a desktop computer running a proxy tool, to intercept and inspect network traffic from other devices, such as mobile phones.^[600-developer__tools__mobile__Fiddler-Classic.md]
Common Tools¶
On Windows, Fiddler Classic is a widely used tool for this purpose^[600-developer__tools__mobile__Fiddler-Classic.md]. It allows users to capture HTTP(s) packets and analyze network behavior^[600-developer__tools__mobile__Fiddler-Classic.md].
Configuration Steps¶
Setting up packet capture generally involves three main stages: configuring the tool, setting up the proxy on the target device, and ensuring secure HTTPS traffic can be decrypted.
1. Tool Configuration¶
In Fiddler Classic, the tool must be set to allow remote connections^[600-developer__tools__mobile__Fiddler-Classic.md]. This usually requires enabling the "Allow remote computers to connect" option in the Connections settings^[600-developer__tools__mobile__Fiddler-Classic.md]. You must also note the proxy port (often 8888) and the computer's local IP address to use on the target device^[600-developer__tools__mobile__Fiddler-Classic.md].
2. Device Proxy Setup¶
The target device (e.g., a mobile phone) must be configured to route its traffic through the proxy.^[600-developer__tools__mobile__Fiddler-Classic.md]
- Network Settings: Navigate to the mobile device's WiFi settings and find the connection details for the current network^[600-developer__tools__mobile__Fiddler-Classic.md].
- Manual Proxy: Set the proxy type to Manual^[600-developer__tools__mobile__Fiddler-Classic.md].
- Input Details: Enter the desktop computer's IP address as the proxy hostname and the port number (e.g.,
8888) identified in the previous step^[600-developer__tools__mobile__Fiddler-Classic.md].
3. Certificate Installation (HTTPS)¶
To capture HTTPS traffic, the target device must trust the proxy tool's security certificate.^[600-developer__tools__mobile__Fiddler-Classic.md]
- Download Certificate: Access the specific IP and port from the mobile device's browser to download the CA Root certificate^[600-developer__tools__mobile__Fiddler-Classic.md].
- Install Profile: Install the downloaded certificate profile on the device^[600-developer__tools__mobile__Fiddler-Classic.md].
- Enable Trust: On some operating systems (like iOS), you must manually enable "Full Trust" for the root certificate in the device's general settings management screen^[600-developer__tools__mobile__Fiddler-Classic.md].
Related Concepts¶
- [[Proxy]]
- [[HTTPS]]
- [[Network Debugging]]
Sources¶
600-developer__tools__mobile__Fiddler-Classic.md