{"id":385,"date":"2014-12-03T10:28:47","date_gmt":"2014-12-03T09:28:47","guid":{"rendered":"http:\/\/dev.flauschig.ch\/wordpress\/?p=385"},"modified":"2014-12-10T09:41:11","modified_gmt":"2014-12-10T08:41:11","slug":"capturing-mobile-traffic-from-device-with-fiddler","status":"publish","type":"post","link":"http:\/\/dev.flauschig.ch\/wordpress\/?p=385","title":{"rendered":"Capturing mobile traffic from device with fiddler"},"content":{"rendered":"<p>Monitoring traffic from a mobile device can help in many debugging scenarios. <a href=\"http:\/\/www.telerik.com\/fiddler\" target=\"_blank\">Fiddler<\/a> is a great tool to monitor and debug http(s) requests. This post will describe all necessary steps to use Fiddler to monitor any traffic from a mobile device (also for apps).<\/p>\n<p><strong>Install and configure Fiddler<\/strong><\/p>\n<ol>\n<li>Install the latest version of Fiddler.<\/li>\n<li>Install the\u00a0<a href=\"http:\/\/www.telerik.com\/fiddler\/add-ons\" target=\"_blank\">CertMaker for iOS and Android<\/a> (overrides the default cert-maker from Fiddler to get compatibility with Android\/iOS)<\/li>\n<li>Open Fiddler Options (Tools -&gt; Fiddler Options)<\/li>\n<li>Switch to Connections tab<\/li>\n<li>Check the Fiddler\u00a0listens on port (should be 8888, but you can change it if needed)<\/li>\n<li>Make sure that\u00a0&#8220;Allow remote computers to connect&#8221; is checked<\/li>\n<li>Switch to HTTPS tab<\/li>\n<li>Make sure that &#8220;Capture HTTPS CONNECTs&#8221; is checked<\/li>\n<li>Make sure that &#8220;Decrypt HTTPS traffic&#8221; is checked<br \/>\n<blockquote><p>Note: If you previously already had a certificate made with the default or another generator than the CertMaker, you might need to regenerate the certificate (by deactivating &#8220;Decrypt HTTPS traffic&#8221;, then clicking &#8220;Remove Interception Certificates&#8221; and then reactivating &#8220;Decrypt HTTPS traffic&#8221; again).<\/p><\/blockquote>\n<\/li>\n<li>Make sure &#8220;Ignore server certificate errors&#8221; is checked<\/li>\n<li>Restart Fiddler<\/li>\n<\/ol>\n<p><strong>Setup proxy on Android<\/strong><\/p>\n<ol>\n<li>Open Settings -&gt; Wi-Fi<\/li>\n<li>Edit the network you&#8217;re currently using<\/li>\n<li>Choose &#8220;Show advanced options&#8221;<\/li>\n<li>Change &#8220;Proxy settings&#8221; to &#8220;Manual&#8221;<\/li>\n<li>Enter the IP of the Windows PC with Fiddler under &#8220;Proxy host name&#8221;<\/li>\n<li>Enter the Fiddler port (default 8888) under &#8220;Proxy port&#8221;<\/li>\n<li>Save the settings<\/li>\n<\/ol>\n<p><strong>Setup proxy on iOS<\/strong><\/p>\n<ol>\n<li>Open Settings<\/li>\n<li>Edit your current network<\/li>\n<li>Go to &#8220;Http-Proxy&#8221; and set it to &#8220;Manual&#8221;<\/li>\n<li>Enter the IP of the Windows PC with Fiddler under &#8220;Server&#8221;<\/li>\n<li>Enter the Fiddler port (default 8888) under &#8220;Port&#8221;<\/li>\n<li>Make sure &#8220;Authenticate&#8221; is <span style=\"text-decoration: underline;\">not<\/span> checked<\/li>\n<\/ol>\n<p><strong>Install the Fiddler certificate on the device (needed for HTTPS)<\/strong><\/p>\n<ol>\n<li>Open any browser on the mobile device<\/li>\n<li>Browse to http:\/\/&lt;your windows ip&gt;:&lt;fiddlerport&gt; (eg: http:\/\/192.168.1.30:8888)<br \/>\n<blockquote><p>Note: You might get a &#8220;Connection Refused&#8221; here. If this is the case, you can try to disable the &#8220;Enable IPv6 (if available)&#8221; checkbox in the &#8220;General&#8221; tab.<\/p><\/blockquote>\n<\/li>\n<li>Click on &#8220;FiddlerRoot certificate&#8221;<\/li>\n<li>Install the certificate (might need your device pin or password)<\/li>\n<\/ol>\n<p><strong>Hint: Chrome traffic not captured<\/strong><\/p>\n<p>If the traffic from the chrome browser is then not visible in Fiddler this might be because of the &#8220;<a href=\"https:\/\/support.google.com\/chrome\/answer\/2392284?hl=en\" target=\"_blank\">Reduce data usage<\/a>&#8221; setting of chrome. This means that the traffic is redirected thru a google proxy and therefore does not work with your Fiddler proxy. To fix this, just disable the &#8220;Reduce data usage&#8221; and &#8220;Preload webpages&#8221; option in Chrome (Advanced -&gt; Bandwidth management)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Monitoring traffic from a mobile device can help in many debugging scenarios. Fiddler is a great tool to monitor and debug http(s) requests. This post will describe all necessary steps to use Fiddler to monitor any traffic from a mobile device (also for apps). Install and configure Fiddler Install the latest version of Fiddler. Install &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-roemer","4":"post-385","6":"format-standard","7":"category-uncategorized"},"acf":[],"views":3086,"_links":{"self":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/385"}],"collection":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=385"}],"version-history":[{"count":0,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/385\/revisions"}],"wp:attachment":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=385"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}