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

  • retag add tags

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

smrsh's avatar
1
smrsh
asked 2020-10-08 23:24:38 +0000
edit flag offensive 0 remove flag close merge delete

Comments

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

WSL 1 or WSL 2?

Guy Harris's avatar Guy Harris (2020-10-08 23:47:08 +0000) edit

The Wireshark is running on windows. WSL1

smrsh's avatar smrsh (2020-10-08 23:55:09 +0000) edit

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's avatar Guy Harris (2020-10-09 00:20:53 +0000) edit

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's avatar smrsh (2020-10-09 00:30:53 +0000) edit
  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's avatar Chuckc (2020-10-09 01:12:21 +0000) edit
add a comment see more comments