Question

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.

Was it helpful?

Solution 4

In 2019, Fiddler has been updated to support Proxy, just set up your BlueStacks to use Fiddler's proxy and you can capture all HTTP/HTTPS traffic going out from it.

OTHER TIPS

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

Use ProxyCap to let Fiddler capture the trafic.

ProxyCap forwards all Bluestack communication to HTTP proxy (in this case our proxy is Fiddler).

The full step-by-step guide, how to redirect the Bluestack application traffic through proxy, is HERE.

Use 127.0.0.1:8888 as proxy address. That is the address of Fiddler on the local computer.

Today I tried Fiddler - ProxyCap - BlueStacks. It didn't work at first. After I added "HD-Plus-Service.exe" everything was Okay. It seems like new bluestacks versions don't use HD-Network.exe? Anyway my program list includes:

  • HD-Service.exe
  • HD-Agent.exe
  • HD-Frontend.exe
  • HD-Network.exe
  • HD-Plus-Service.exe
  • HD-LogRotatorService.exe

In addition, for latest Bluestacks3 version here are the list of apps you need to add to your both program lists:

  • HD-Agent.exe ( from "C:\Program Files\Bluestacks\" )
  • HD-Player.exe ( from "C:\Program Files\Bluestacks\" )
  • Bluestacks.exe ( from where you installed Bluestacks )

Fiddler has a documentation regarding how to capture traffic of Android devices: https://docs.telerik.com/fiddler/configure-fiddler/tasks/ConfigureForAndroid. You can use the same config for bluestack

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top