windows 10 bash tcpdump: socket: Invalid argument

Al-Alamin picture Al-Alamin · Oct 18, 2017 · Viewed 16.8k times · Source

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.

Answer

user3657298 picture user3657298 · Oct 30, 2017

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.