Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture Android Emulator traffic using Fiddler

I've been trying to capture the network traffic populated from the browser and an app hosted inside the Android emulator, using Fiddler.

I've been unsuccessful even after following the workarounds of adding proxy to the emulator (Settings - More - Cellular Networks - Access Point Names - adding the system IP and port).

like image 509
Span 4qa Avatar asked Dec 27 '16 11:12

Span 4qa


People also ask

Can Fiddler capture network traffic?

Fiddler Everywhere allows you to capture, inspect, monitor and replay both HTTP and HTTPS network traffic from any browser and any app.

Can Fiddler capture UDP traffic?

After deploying HoloLens 2 to your organization, you may need to capture network traffic for troubleshooting purposes. Both Fiddler and Wireshark will work with the HoloLens 2 to identify and diagnose problems in the HTTP(S) and TCP/UDP levels.


3 Answers

You should enter this ip-address: 10.0.2.2 as a Proxy-address. You should use it cause of Android emulator haven't direct access to your local network and can't connect to local computer. But Android Emulator has a virtual router, so you can connect to your computer by address 10.0.2.2. You can read more here

-OR-

You can use Visual Studio Android Emulator. There's using Hyper-V virtual network adapter that can connect directly to your local network

like image 144
Eugene Voynov Avatar answered Nov 04 '22 13:11

Eugene Voynov


The point is you should switch air-plane mode on-off once after fill this settings in Cellular network setting / Access point Names with this settings:

  1. Set your system IP in -> Proxy
  2. Set fiddler port number (8888 is default) in -> Port
  3. Clear Username and Password field.
  4. Save and exit.
  5. Turn-on airplane mode and then turn it off.

Now your data will capturing by Fiddler.

like image 26
Mahdi Avatar answered Nov 04 '22 12:11

Mahdi


It just working on an old version of android.

like image 1
Amir Astaneh Avatar answered Nov 04 '22 13:11

Amir Astaneh