Select to view content in your preferred language

Configuring Fiddler to Capture Web Traffic from an iPhone/iPad Device

15028
2
12-06-2011 12:01 PM
Labels (2)
by Anonymous User
Not applicable
3 2 15K
As an ArcGIS Server Support Analyst, I often assist customers with web traffic related incidents. While there are many applications available to monitor and capture web traffic from an internet browser, I have found Fiddler (a popular freeware solution) to be invaluable in troubleshooting web applications that fail to display some or all of a web map.

This works fine on Windows machines where Fiddler can be installed and work with the Windows browsers, but what happens if the web application is being accessed from an iPhone or iPad? Fortunately Fiddler provides an option where it can be installed on another machine and configured as a proxy server to capture the web traffic from these types of mobile devices.
NOTE: This configuration assumes there is a Wi-Fi network available for the connecting mobile device. From this Wi-Fi network, the mobile device needs to be able to communicate with the machine that has Fiddler installed.

To configure Fiddler to capture web traffic from iOS devices, just follow these steps.

  1. Open Fiddler. Click Tools, Fiddler Options...
  2. Select the Connections tab. Fiddler listens on port 88888 by default but can be changed here if needed. Make sure the 'Allow remote computers to connect' option is checked. It is not checked by default.
  3. Click OK. You will need to close and re-open Fiddler for the changes to take effect.
  4. Once Fiddler is re-opened, make sure it is capturing traffic by clicking on File. The Capture Traffic option should have a checkmark next to it. It will also say ‘Capturing’ at the bottom left corner of the Fiddler window.
  5. Now that Fiddler is ready, we need to configure the mobile device to use Fiddler as a proxy server. The following screen-shots are from an iPad but the same concept can be applied to other mobile devices. On the iPad, tap on the Settings icon from the main screen and tap on Wi-Fi. This will display the Wi-Fi network it is currently connected to. Tap on the arrow next to the active Wi-Fi network (as circled below) to get to the details screen.
  6. At the bottom of the network details screen, tap on the 'Manual' button under HTTP Proxy.
  7. Type in the IP address (or hostname) of the machine with Fiddler running and the port number of 8888. This will route all network traffic from the mobile device through Fiddler. Now ArcGIS for iOS can be opened and access to basemaps and map services will be captured.

Jeff S. - Server Usage Support Analyst
2 Comments
AndresCastillo
MVP Regular Contributor

excellent article

BennyG
by
New Contributor

If you need to capture HTTPS traffic, there is 1 extra step you need to do (as found here https://www.telerik.com/blogs/how-to-capture-ios-traffic-with-fiddler)

 

Capture HTTPS Traffic

With the current setup you should be able to capture HTTP traffic. However, if you try to open any HTTPS website, you’ll get the This site’s security certificate is not trusted! error. To fix this, you should trust the Fiddler root certificate.

  1. In your browser, navigate to http://ipv4.fiddler:8888
  2. Click on the Fiddler root certificate link to download it
  3. Install the certificate on your device.
  4. (iOS 10.3+) Go to General->About->Certificate Trust Settings and enable full trust for the DO_NOT_TRUST_FiddlerRoot certificate.

Now you should be able to capture HTTPS traffic too.