Inspect network traffic on an Android device with Fiddler

  1. Step 1: Install and Configure Fiddler on PC
  2. Step 2: Set Up Proxy on Android Device
  3. Step 3: Install Fiddler’s Root Certificate on Android Device
  4. Step 4: Start Capturing Traffic

To inspect network traffic on an Android device using Fiddler, you’ll need to set up a proxy configuration to route the device’s traffic through Fiddler. Fiddler works as a proxy server, capturing and logging all HTTP and HTTPS traffic that passes through it. Here’s how you can set it up:

Step 1: Install and Configure Fiddler on PC

  1. Download and Install Fiddler Classic from Fiddler’s official website.
    • After installation, launch Fiddler.
  2. Configure Fiddler to listen on all interfaces:
    • In Fiddler, go to Tools > Options.
    • In the Connections tab, check the box Allow remote computers to connect.
    • Set the Fiddler Classic listens on port to something like 8888 (default port).
    • Click OK to apply the changes.
  3. Configure Fiddler to capture HTTPS traffic:
    • In Fiddler, go to Tools > Options > HTTPS.
    • Check Decrypt HTTPS traffic.
    • Check Ignore server certificate errors (unsafe).
    • Click Actions > Trust Root Certificate to install root certificate on your PC.

Step 2: Set Up Proxy on Android Device

  1. Get your PC’s IP address by running ipconfig in your Command Prompt or Powershell. usually something like 192.168.x.x.
  2. Configure proxy on your Android device.

Step 3: Install Fiddler’s Root Certificate on Android Device

  1. Visit http://<your_pc_ip>:<port> in your Android browser, for example: http://192.168.0.101:8888, it will open a webpage generated by Fiddler.
  2. Click on the FiddlerRoot certificate link on the page and save it to your Android device.
  3. Install the Root Certificate in the settings.

Step 4: Start Capturing Traffic

  1. Enable capture in Fiddler. In Fiddler ensure that Capturing is enabled.
  2. Use your Android device: Open any app or browser on your Android device, and start browsing or using the app. All network traffic will be routed through Fiddler.
  3. You should start seeing the network traffic appear in Fiddler’s window.