Is it possible to run networking commands like nmap in WSL?

35,319

No, according to this thread: https://github.com/Microsoft/BashOnWindows/issues/69 the network options to support nmap are currently not all implemented.

Share:
35,319

Related videos on Youtube

Flare Cat
Author by

Flare Cat

I am a 15 year old student, that enjoys programming in C++. Youtube: https://www.youtube.com/channel/UC5W7n0gefWSWXBqefZPrgLQ/

Updated on September 18, 2022

Comments

  • Flare Cat
    Flare Cat over 1 year

    I recently got the Windows 10 anniversary update and installed bash. I tried installing nmap, but it wouldn't run.

    My question: Is there any way for commands like nmap to correctly run in WSL?

    Thanks in advance!

    Error I get when running sudo nmap -sn 192.168.1.*: route_dst_netlink: cannot bind AF_NETLINK socket: Invalid argument

    I remember reading somewhere that WSL doesn't have support for sockets, but can use TCP. Is this possible in this case? Also, will WSL ever have support for sockets?

  • Jonathan
    Jonathan about 6 years