分享

如何让Fiddler2监视安卓模拟器

 aaie_ 2012-10-12
CONFIGURING FIDDLER
First we need to configure Fiddler to accept traffic from the emulator. In this case I am running Fiddler on the machine that is also hosting the emulator.

1. Start Fiddler

2. Go to Tools, then Fiddler Options
Figure: Going to Tools –> Fidler Options

3. Configure General and Connections tabs to look like the ones below:
Figure: The General tab’s settings

Figure: The Connections tab’s settings

4. Click OK

5. Quit and Relaunch Fiddler (important!)

6. Enable the Streaming feature in Fiddler so HTTP requests are shown as they occur.




CONFIGURING THE EMULATOR
1. Start the emulator

2. Go to Settings, then Wireless controls

3. Tap Mobile networks

4. Select Access point names
 
Figure: Access point names option

5. Choose the selected access point and configure the following options:
- Name : Internet
- APN : Internet 
- Proxy : Fiddler’s proxy IP address (10.0.1.26 in my case.Use cmd.exe then "ipconfig" to see your IP address
- Port : Fiddler’s proxy IP port (8888)
- Username : <Not set> (clear it if anything is already there) 
- Password : <Not set> (clear it if anything is already there)
- MCC : 310 
- MNC : 260
Don’t play with any of the other settings!

6. Press MENU and then press Save

7. Keep going back until you’re at the home screen. I don’t know if this makes a difference, but I’m just making sure…

8. Try loading a Web site and you should see the traffic in Fiddler.

Figure: Web traffic still works, but is flowing through Fiddler.

 
Figure: Traffic being captured in Fiddler.

That should do it!

Note: You may need to disable Windows Firewall to make this work. Obviously I don’t need to tell you not to do this on a public network.

If you have any questions, please let me know on our support site.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多