Capturing IP traffic from a Genymotion Android VM under windows is not trivial. The Genymotion virtual network adaptor communicates independently of the IP Stack of the host OS. Additionally network analyser packages running under windows such as Wireshark rely on WinPCAP library which attaches to the windows IP stack. (Also Loopback traffic doesn’t exercise the IP stack hence is not detected by packages such as Wireshark.)
The way to capture traffic is to configure an interception proxy on the Genymotion VM. This example will use fiddler as the proxy.
Configuring a Proxy on Genymotion
Select WIREDSSID from the Settings Menu
Click on WiredSSID and hold down for 2 seconds to get Modify Network Window
Select Modify Network then manually configure proxy. The IP address will be the IP address of the host machine
Port 8888 is the default proxy port for Fiddler and most other proxy software
Save this. Now all http traffic will be forced to the proxy where it can be intercepted.
Also by proxying to a physical address traffic is forced through the Hosts TCP/IP stack allowing packages such as Wireshark to capture traffic also.
Fiddler is a Http capture tool from Telerik and can be found at http://www.telerik.com/fiddler
To view the traffic in fiddler ensure that the “Allow remote computers to connect” option under Connections is selected
Now you will be able to see Requests from the Dalvik (Android VM) in fiddler. Enjoy debugging your awesome apps.