Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac (Mojave): Error: Failed to listen on network interface: No such file or directory #45

Closed
michaelterryio opened this issue Dec 30, 2019 · 10 comments

Comments

@michaelterryio
Copy link

Full message:

Error: Failed to listen on network interface: No such file or directory (os error 2)

This is a MacBook Pro 13-inch, early 2015 running Mojave (10.14).

@ebroto
Copy link
Collaborator

ebroto commented Dec 30, 2019

Probably related to #31, a failure to listen on one interface will prevent the program from running even if there are other working interfaces.

@grishy is working on a fix, in the meantime, does it work for you using the -i flag and pointing to a working interface?

@michaelterryio
Copy link
Author

I have 8 interfaces listed by ifconfig and I got the same error for each of them.

@zomars
Copy link

zomars commented Dec 31, 2019

@michaelterryio run with sudo

@tuledev
Copy link

tuledev commented Dec 31, 2019

I got the same error without sudo.
And with sudo, it doesn't show any data.

Thanks. Look like a great repo.

@johngrib
Copy link

I got the same error with sudo.
image

@imsnif
Copy link
Owner

imsnif commented Dec 31, 2019

@michaelterryio - are you on wifi? maybe the interface you're looking for is in iwconfig? Thankyou for your patience, we're smoothing out the edges of the multi-platform part :)

@tuledev - have you tried (or would you be willing to try) this? I think it might help in your case: https://apple.stackexchange.com/questions/208478/how-do-i-disable-system-integrity-protection-sip-aka-rootless-on-macos-os-x

@andrewrech
Copy link

andrewrech commented Dec 31, 2019

Thanks for this great repo! I'm hardwired with SIP disabled, and I get:

$ bandwhich -i en0
Error: Failed to listen on network interface: No such file or directory (os error 2)

Running under sudo does not error, but shows no activity under any interface, similar to @tuledev. Works perfectly on my Linux box.

Darwin localhost.local 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64

ProductName:	Mac OS X
ProductVersion:	10.15.2
BuildVersion:	19C57

bandwhich 0.6.0

@imsnif

@michaelterryio
Copy link
Author

@michaelterryio - are you on wifi? maybe the interface you're looking for is in iwconfig? Thankyou for your patience, we're smoothing out the edges of the multi-platform part :)

@tuledev - have you tried (or would you be willing to try) this? I think it might help in your case: https://apple.stackexchange.com/questions/208478/how-do-i-disable-system-integrity-protection-sip-aka-rootless-on-macos-os-x

sudo worked. No iwconfig: The wireless lan interface should be listed by ipconfig on Mac and is apparently en1 by default, and sudo what -i en1 worked for me.

Thanks.

@michaelterryio
Copy link
Author

michaelterryio commented Dec 31, 2019

I mean, works in the sense I don't get that error. I'm watching youtube videos and all I see is this.

image

I'm seeing mixed info about which of en0 and en1 are the wireless interface, but either way, I don't see any bandwidth when watching yt vids.

@imsnif
Copy link
Owner

imsnif commented Dec 31, 2019

There's another issue about the "no traffic displayed" issue, so seeing as this is the "only" problem left, I'd like us to move the discussion there: #51

@imsnif imsnif closed this as completed Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants