How can I monitor HTTP traffic from BlueStacks?

user4951 picture user4951 · Dec 3, 2013 · Viewed 50.8k times · Source

I want monitor HTTP traffic from BlueStacks so that I can debug web analytics tracking - any idea how?

For example, my application calles my server. I want to know what actual API my application actually called during testing.

I do not see any HTTP requests in Fidller even when using the BlueStacks.

I thought fiddler capture all internet request done by any software.

Answer

Radu Simionescu picture Radu Simionescu · Jan 24, 2014

Actually you can use fiddler. You see, fiddler configures the winINET proxy to go through it (the one used by internet explorer and all other microsoft software, but sometimes even third pary software uses winINET proxy config - that is why some programs just magically work with fiddle). Some programs ignore wininet config completly and have their own method of setting a proxy (like firefox, chrome). And other programs, like bluestacks, have no support for proxy at all.

But you can force BlueStacks to go through the fiddler proxy. A tool which can do that, and which has a tutorial on this, is ProxyCap: http://www.proxycap.com/bluestacks.html Just use 127.0.0.1 as server and 8888 as port number in configuration of the proxies in proxycap. You must also add HD-Agent and HD-Frontend executables in the rules, as specified in the last part of the step-by-step guide.

Unfortunately, proxycap is a 30 day trial. You can use free proxifiers out there. Find something that supports http. http://en.wikipedia.org/wiki/Comparison_of_proxifiers I did manage to make this work with proxyCap myself and haven't tried anything else yet.

I think this is better for http traffic sniffing than wireshark which is for lower level network sniffing