Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upIssues with ifconfig, sockets, nmap, ping, nslookup, dig and others not working #69
Comments
javydekoning
changed the title
Issues with socket.c nmap,ping and nslookup not working.
Issues with socket.c: nmap,ping,nslookup,dig and others not working.
Apr 8, 2016
This comment has been minimized.
This comment has been minimized.
Aneurin
commented
Apr 8, 2016
All of the ones which produce "socket.c: 1915: internal_send ..." are BIND tools that don't seem to work here. You can install the Knot DNS equivalents which do, using For the rest, it looks like only certain types of sockets can be created. Maybe raw sockets aren't permitted so we can only open TCP and UDP sockets? You would at least expect ICMP to be available though. |
tkelman
referenced this issue
Apr 11, 2016
Closed
node/npmconf: os.networkInterfaces() appears to fail with EINVAL #118
sunilmut
referenced this issue
Apr 11, 2016
Closed
unable to list/enumarate network interfaces through any means #136
This comment has been minimized.
This comment has been minimized.
Yes, NETLINK sockets are currently not implemented. ICMP is also currently not supported. UDP and TCP sockets should work fine though. We will be tracking\prioritizing which features to light up next by looking at the feedback provided at the wpdev portal. We appreciate your feedback and please make sure to provide it through the wpdev portal as well. Looks like there is already a post tracking this which you can up vote (or add a new one): |
sunilmut
closed this
Apr 11, 2016
sunilmut
reopened this
Apr 18, 2016
sunilmut
added
the
network
label
Apr 22, 2016
This comment has been minimized.
This comment has been minimized.
nianyush
commented
Apr 26, 2016
so when this problem can be solved? |
This comment has been minimized.
This comment has been minimized.
@xiaoyu9964 Thanks for your patience and we understand that not having basic network tools working, can be frustrating. That being said, support for RAW/ICMPv4 sockets are being checked in our development branch. That should unblock ping. ping6 still doesn't work. We are working to unblock these scenarios as well in future. Meanwhile, please help us prioritize this by up voting this specific request in the User Voice page. Thanks again for trying WSL and providing feedback. |
This comment has been minimized.
This comment has been minimized.
MadcowD
commented
May 1, 2016
This issue is causing issues with libzmq and other socket libraries. Related issue is #134 |
MadcowD
referenced this issue
May 1, 2016
Closed
ifaddrs.h: getifaddrs() causing invalid argument exception. #308
This comment has been minimized.
This comment has been minimized.
Deshke
commented
Jul 17, 2016
any update on this? network is a rather big point and should work |
This comment has been minimized.
This comment has been minimized.
A lot has changed since this ticket was last updated. It's probably be worth re-testing the specific issues reported here. |
This comment has been minimized.
This comment has been minimized.
ldanicel
commented
Jul 17, 2016
I just fresh installed 4 days ago and it acts the same. |
This comment has been minimized.
This comment has been minimized.
This issue is actually an aggregation of a bunch of bugs, some of which are known to be fixed. Could you please include your specific Windows build and which of the issues on this ticket you tested? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ldanicel
commented
Jul 17, 2016
•
traceroute, mtr, ifconfig, ip, route, tcpdump, nmap are not functioning at all root@CASH:~# traceroute google.com root@CASH:~# nmap -O google.com root@CASH:~# route -n root@CASH:~# ip addr show root@CASH:~# tcpdump ` ping looks to be ok but still has some spookie latencies reported, like: ping google.com windows build is Microsoft Windows [Version 10.0.14388] |
This comment has been minimized.
This comment has been minimized.
Deshke
commented
Jul 18, 2016
i'm currently on Windows 10 Insider Preview 14390 - and i've got the same issues as in #69 (comment) |
This comment has been minimized.
This comment has been minimized.
Skalin
commented
Jul 28, 2016
14394 - still not working properly, traceroute does not work |
cole15601
referenced this issue
Aug 4, 2016
Closed
SIOCGIFADDR, SIOCGIFNETMASK, SOCGIFBRDADDR not working #763
This comment has been minimized.
This comment has been minimized.
vnodecg
commented
Aug 4, 2016
Any update on this? |
This comment has been minimized.
This comment has been minimized.
CharlieEriksen
commented
Aug 4, 2016
When you started Bash with administrative privileges, not sudo, and nmap 192.168.1.1, you get this error instead:
Ping works when you run it with administrative privileges. |
This comment has been minimized.
This comment has been minimized.
DennisSc
commented
Aug 5, 2016
•
inetutils-traceroute gives the following error: ping works now, and name resolution too (I added 127.0.0.1 mywindowspcname. to /etc/hosts, don't know if this helps but it remedied the error "host not found" when issuing pings to IP addresses I think) Lokks like things are still under construction... edit - "arp" command doesn't work neither |
This comment has been minimized.
This comment has been minimized.
The major blocker behind |
This comment has been minimized.
This comment has been minimized.
DJviolin
commented
May 18, 2017
You know you have to unsub from a git issue, when you reading about Mercedes E63s, and you still driving a 35 year old Audi 80... |
This comment has been minimized.
This comment has been minimized.
n8cn
commented
May 18, 2017
This comment has been minimized.
This comment has been minimized.
JBFUK
commented
May 18, 2017
I guess you're right - unlucky that the tools I wanted to use don't work yet, maybe one day. If the tools you like to work with will run then good for you. |
This comment has been minimized.
This comment has been minimized.
mmathys
commented
May 18, 2017
@gudenuff my comment sounds harsh sorry for that. I do appreciate the efforts of Microsoft and believe that they are doing the right thing with Windows. However, one can't deny that at this state lots of things are broken and IMO it's frustrating |
This comment has been minimized.
This comment has been minimized.
wildan2711
commented
May 28, 2017
•
I was dang excited when I saw this project because it means I didn't have to run a VM to do my networking tasks which was only available in Ubuntu, too bad it's one of the main weakness/issue in this project. Well just have to wait now, great job though WSL team.. |
This comment has been minimized.
This comment has been minimized.
I am going to close this issue out because it is a "catch-all" issue for a lot of different networking tools and has become unmanageable. It will be easier to track the individual networking tools that are not working with separate issues. As of Creators Update, the following tools should work:
Not working: If you would like to see support for any additional tools, please open a new issue. Thanks all for chiming in here. |
sunilmut
closed this
Jun 13, 2017
This comment has been minimized.
This comment has been minimized.
yesterday679
commented
Jul 12, 2017
netstat still not work, |
This comment has been minimized.
This comment has been minimized.
ahmedAlmasri
commented
Jul 14, 2017
nmap still not working route_dst_netlink: cannot bind AF_NETLINK socket: Invalid argument |
This comment has been minimized.
This comment has been minimized.
wirehack7
commented
Jul 23, 2017
•
I am getting errors while doing
|
This comment has been minimized.
This comment has been minimized.
@wirehack7 - |
This comment has been minimized.
This comment has been minimized.
@yesterday679 - Thanks for the feedback. We are aware of |
This comment has been minimized.
This comment has been minimized.
@ahmedAlmasri - Thanks for your post. |
This comment has been minimized.
This comment has been minimized.
outofcontrolnate
commented
Aug 18, 2017
Trying to run tcpdump and getting "tcpdump: socket: Invalid argument" any suggestions or fixes? |
This comment has been minimized.
This comment has been minimized.
@outofcontrolnate - |
This comment has been minimized.
This comment has been minimized.
haidescs
commented
Oct 16, 2017
How to solve this problem? @ldanicel I meet the save issue with you, do you solve this issue yet? |
This comment has been minimized.
This comment has been minimized.
OvermindDL1
commented
Oct 18, 2017
@sunilmut Your link just displays And yep, still see the same issue near a year later... |
This comment has been minimized.
This comment has been minimized.
erlinux
commented
Nov 18, 2017
So is this problem solved? |
This comment has been minimized.
This comment has been minimized.
THIS THREAD IS CLOSED - please take discussion to more specific and therefore actionable issues.This bug is a pain because it lists several networking tools which were/are not working because of several different, and unrelated issues. As noted in @sunilmut's message just prior to closing this issue:
IP config tools are a lower priority right now, but can be worked-around by calling Windows commands to manage IP configuration via interop. Tools requiring raw sockets (e.g. nmap, wireshark) are not currently supported on WSL. As noted in the Microsoft docs on Raw Sockets,
We are looking into improving things here, but it's not our highest priority since there are already many tools available on Windows for network penetration testing, packet capture, etc. Please make this the last reply to this thread - take further discussion to more specific and therefore more actionable issues. Thanks. |
DarthSpock
referenced this issue
Dec 13, 2017
Open
arp command not working at all - /proc/net/arp: No such file or directory #2279
therealkenc
referenced this issue
Aug 6, 2018
Open
Ping using specific interface (SO_BINDTODEVICE error) #3440
This comment has been minimized.
This comment has been minimized.
nakedgoat
commented
Sep 24, 2018
nmap has some errors and arp fails w/no such f/d on my windows box at home; however everything else works ping, dig, nslookup & ifconfig, on my work computer ALSO windows 10 also running bash as an admin (only real difference is work computer is on a domain via vpn) @ work non of said commands work for me.. i've updated/upgraded both systems no real changes to much .. anyway hope this might help let me know if details are needed - even tho tread is closed :) |
This comment has been minimized.
This comment has been minimized.
adamfortuno
commented
Dec 3, 2018
tcptraceroute doesn't work either. tcptraceroute 10.140.103.197 3389 If I'm root, the error I get reads as follows:
If I'm not root, the error I get reads as follows:
I'm running the following version of tcptraceroute:
|
This comment has been minimized.
This comment has been minimized.
MCMainiac
commented
Jan 24, 2019
When will this be fixed? |
javydekoning commentedApr 8, 2016
nmap:
root@localhost:/mnt/c/users/jdekoning# nmap google.com
Starting Nmap 6.40 ( http://nmap.org ) at 2016-04-08 12:37 UTC
route_dst_netlink: cannot create AF_NETLINK socket: Invalid argument
Ping:
root@localhost:/mnt/c/users/jdekoning# ping google.com
ping: icmp open socket: Socket type not supported
nslookup:
root@localhost:/mnt/c/users/jdekoning# nslookup google.com
socket.c:2447: setsockopt(20, SO_TIMESTAMP) failed: Invalid argument
socket.c:1915: internal_send: 10.142.23.200#53: Invalid argument
socket.c:2447: setsockopt(21, SO_TIMESTAMP) failed: Invalid argument
socket.c:1915: internal_send: 10.141.23.200#53: Invalid argument
socket.c:2447: setsockopt(22, SO_TIMESTAMP) failed: Invalid argument
socket.c:1915: internal_send: 10.130.23.100#53: Invalid argument
traceroute:
root@localhost:/mnt/c/users/jdekoning# traceroute 8.8.4.4
traceroute to 8.8.4.4 (8.8.4.4), 30 hops max, 60 byte packets
setsockopt IP_MTU_DISCOVER: Invalid argument
DIG:
root@localhost:/mnt/c/users/jdekoning# dig @8.8.4.4 google.com
socket.c:2447: setsockopt(20, SO_TIMESTAMP) failed: Invalid argument
socket.c:1915: internal_send: 8.8.4.4#53: Invalid argument