network-programmingtcpdumpwindows-subsystem-for-linuxnetwork-tools

windows 10 bash tcpdump: socket: Invalid argument


I am using windows 10 bash to use tcpdump From tutorial i found that to listen to a interface command is:

tcpdump -i eth0 //eth0 is ethernet interface
tcpdump -i any // to listen to any interface

In both cases I am getting tcpdump: socket: Invalid argument error. NOTE:

tcpdump -D

does not print anything on console.


Solution

  • Based on https://github.com/Microsoft/WSL/issues/69, this is a limitation of the current Windows Subsystem for Linux. The Fall Creators update added a lot of functionality, but tcpdump still does not work.