how can i use wireshark with WSL (Windows Subsystem for Linux)

asked Oct 8 '0

smrsh gravatar image

I'm using wsl, windows subsystem for Linux but I'm not able to trace my network from Wireshark

Preview: (hide)

Comments

Wireshark running on Windows or Wireshark-for-Linux running under WSL?

WSL 1 or WSL 2?

Guy Harris gravatar imageGuy Harris ( Oct 8 '0 )

The Wireshark is running on windows. WSL1

smrsh gravatar imagesmrsh ( Oct 8 '0 )

So which network are you trying to trace? Are you saying you're not seeing any network traffic (whether it involves WSL or not), or just not seeing any network traffic from WSL programs?

Guy Harris gravatar imageGuy Harris ( Oct 9 '0 )

I can't trace any networks at all for example, when I run the "ping google.com" command, I can't see any activity I'm my Wireshark application

smrsh gravatar imagesmrsh ( Oct 9 '0 )
  1. Which WSL image? (located in /etc/os-release and/or /etc/lsb-release)
  2. Which Wireshark? (full output from wireshark -v or Help->About Wireshark)
  3. You can successfully ping google.com from a windows command prompt? (so DNS and plumbing ok)
  4. You can successfully ping google.com from a WSL prompt? (so DNS and plumbing ok)
Chuckc gravatar imageChuckc ( Oct 9 '0 )