HACK: PC's hosts file on iPhone (and web traffic monitoring)


On iPhone it's impossible to change the hosts file without jailbreaking your device. Unluckily on business contexts this is quite impossible, so I needed to find a method to use my pc's hosts file on the iPhone. The easiest way was to use a software called Fiddler (if you follow my page you already heard about it) as a proxy to connect directly to the source. A side effect is that I'm now allowed to debug the network traffic without a Mac :)



  1. Get Fiddler https://www.telerik.com/download/fiddler
  2. Enable Remote connection on the Fiddler
Open Fiddler and enter Tools > options
In the connection tab select
  • Allow remote computers to connect
  • Act as system proxy on startup

Remember to annote the Fiddler listen port, you'll need it later
      3. Reboot Fiddler to apply the remote connection setting
      4. Enable proxy on iphone's wifi connection  (Settings > WiFi > Info > HTTP Proxy)

      5. enjoy

Commenti

Post più popolari