WSL icon indicating copy to clipboard operation
WSL copied to clipboard

[open_sockraw] socket(): Protocol not supported.

Open fhackman opened this issue 10 years ago • 11 comments

whenever i use hping3 i get the following error [open_sockraw] socket(): Protocol not supported. [main] can’t open raw socket please Help me

fhackman avatar Nov 18 '16 03:11 fhackman

Raw sockets are currently only limited to the ICMP protocol. If you can share the strace (strace -o <cmd> -ff <trace_file>, we can identify what exactly is missing/going on. Thanks for trying out WSL!

sunilmut avatar Nov 18 '16 05:11 sunilmut

Also, do identify which Windows build you are on.

sunilmut avatar Nov 18 '16 05:11 sunilmut

I have the same error when running $ tcptraceroute host 1883 libnet_init() failed: libnet_open_raw4(): SOCK_RAW allocation failed: Protocol not supported

$ sudo traceroute -T -p port host socket: Protocol not supported

Version 1607 (OS Build 14393.953)

madisonleavo avatar Aug 09 '17 15:08 madisonleavo

@madisonleavo - Thanks for your feedback. Yes, tracepath/traceroute currently does not work on WSL. See #717. I am marking this duplicate. Here is the user voice page for the same, please upvote if you would like us to prioritize this.

Also, we have made significant updates to WSL since the 14393 build (Anniversary Update). You will definitely have a better experience with WSL if you can upgrade.

sunilmut avatar Aug 10 '17 01:08 sunilmut

[open_pcap] pcap_open_live: eth1: socket: Invalid argument
[main] open_pcap failed

On 1709 (16299.248)

ghost avatar Mar 11 '18 16:03 ghost

Creators update still same error

ksaltik avatar Apr 25 '18 15:04 ksaltik

this still doesnt work tried on Kali Linux

ghost avatar Jul 26 '18 00:07 ghost

this still doesnt work tried on Kali Linux

this same.

rastuch avatar Jan 31 '19 22:01 rastuch

[open_pcap] pcap_open_live: socket for SIOCETHTOOL(ETHTOOL_GET_TS_INFO): Socket type not supported [main] open_pcap failed This is my problem need some help

Daquavias avatar Feb 07 '20 16:02 Daquavias

This one was deemed /dupe #717 but not closed.

therealkenc avatar Jun 12 '20 08:06 therealkenc

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

ghost avatar Jun 12 '20 08:06 ghost