Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Capturing Traffic via Virtual Router

DZone's Guide to

Capturing Traffic via Virtual Router

· Cloud Zone ·
Free Resource

Discover a centralized approach to monitor your virtual infrastructure, on-premise IT environment, and cloud infrastructure – all on a single platform.

[This article was written by Eric Lawrence.]

Fiddler offers many ways to gather traffic from mobile devices; in most cases, you simply turn off the device’s cellular connection, enable WiFi, and point the device’s proxy settings at your desktop PC running Fiddler (see iOS, Android, Windows Phone).

However, in some cases, a device (e.g. a Smart TV, or locked 1st generation Kindle Fire) won’t allow you to configure proxy settings. You might try using Fiddler as a reverse proxy, but thanks to Fiddler’s new ability to import packet captures from NetMon or Wireshark, you have a new traffic viewing option.

The open-source Virtual Router tool for Windows 7+ allows you to share your wireless-enabled PC’s network connection as a virtual WiFi router. Use it to create a new access point on your PC:

image

On your device, connect your WiFi to the virtual router you’ve just created. Now, your network traffic is flowing through your PC.

Next, start NetMon or Wireshark and capture the traffic flowing over your PC’s network connection. When you’ve completed your test scenario on the device, export the traffic as a PCAPNG, PCAP, or CAP file.

Inside Fiddler, choose File > Import > Packet Capture, and select the capture file. Fiddler will load the file, parse out the HTTP traffic, and display it in the Web Sessions list, just like if you’d captured it directly in Fiddler.

Learn how to auto-discover your containers and monitor their performance, capture Docker host and container metrics to allocate host resources, and provision containers.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}