Select specific Network adapter

1 Answer 1111 Views
Fiddler Classic Windows
SkyDancer
Top achievements
Rank 1
Iron
SkyDancer asked on 27 Nov 2021, 07:17 PM
I have two adapters work togather in same time and I use one for common stuff on my host and one for Android Emulator only, and the question is: Can I somehow define which network adapter Fiddler has to use for traffic capture? Is there any way to do it?

1 Answer, 1 is accepted

Sort by
1
Accepted
Nick Iliev
Telerik team
answered on 28 Nov 2021, 05:19 PM | edited on 24 Aug 2023, 11:22 AM

Hello,

Instead of trying to differentiate the network adapter, you could filter the traffic based on the client IP column (the IP of the Android device).

Regards,
Nick Iliev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

SkyDancer
Top achievements
Rank 1
Iron
commented on 28 Nov 2021, 05:32 PM

The problem is not filtering, when I set up proxy as wifi adapter IP in my Android emulator I have IP address from my main LAN Adapter on the emulator, this is the reason why I want to change adapter for the Fiddler. Or maybe I can configure the proxy to catch traffic only from my wifi adapter? 

P.S. I use adapter #1 Wifi on my Emulator and want to capture traffic from this adapter only and also I want to have IP address from this adapter on my Emulator. This is my final goal so far.

Nick Iliev
Telerik team
commented on 30 Nov 2021, 11:16 AM | edited

In Fiddler 2.2.6.5 and later, you can force Fiddler to issue all requests from a particular network interface (rather than the default). To do so, you need to set a new preference in Fiddler with the IP address of that interface. Use the QuickExec box to set the IP:

prefs set fiddler.network.egress.IP 131.107.0.111

You can remove the current preference setting by typing:
prefs remove fiddler.network.egress.IP

You can view the current preference settings by typing:
prefs show

SkyDancer
Top achievements
Rank 1
Iron
commented on 30 Nov 2021, 04:19 PM

Thank you, Nick. Tbh I already have seen this config but did not understand the logic and failed yesterday with it (Cuz the info and guide was from some other site), but with this original link I finally realized how this config works! Now I understood how to configure my emulator to force it use my WiFi adapter and it works like a charm! Even better now I don't even need to setup my Wi-Fi Interface in Emulator settings, I just set NAT and add proxy for the WiFi settings and I have my WiFi interface IP on my Emulator and Fiddler also catch all traffic.

Now, only last case left to fix (Do the same but with connected VPN on Host) and everything is going to be fine and I finally can work with my stuff :)

Tags
Fiddler Classic Windows
Asked by
SkyDancer
Top achievements
Rank 1
Iron
Answers by
Nick Iliev
Telerik team
Share this question
or