Ability to bind to 2nd ethernet interface / crashes if eth0 is not up. #622
davidsanner
started this conversation in
Feature Requests
Replies: 1 comment 2 replies
-
I have a similar issue. I'd like Apparently, $ ip maddr show dev eth1 | grep 224.0.0.251
inet 224.0.0.251
$ ip maddr show dev wlan0 | grep 224.0.0.251
$ ip maddr show dev wlan1 | grep 224.0.0.251
$ Thus, My workaround is running $ python3 -c 'import socket, struct, threading; s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM); s.setsockopt(socket.SOL_IP, socket.IP_ADD_MEMBERSHIP, struct.pack("=4s4s", socket.inet_aton("224.0.0.251"), socket.inet_aton("[WLAN0_ADDRESS]"))); threading.Event().wait()' to join the multicast group: $ ip maddr show dev wlan0 | grep 224.0.0.251
inet 224.0.0.251 I used |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running librespot (via raspotify) on an RPi 4 running buster w/ a 2nd (usb) ethernet interface (eth1).
It seems librespot is only binding to the other (eth0) interface though the netstat tables says it is listening on 0.0.0.0. In fact librespot crashes starting up if eth0 is not enabled/up.
Is there and option to allow/deny interfaces or bind to a specific interface or can this be accomplished via an avahi-daemon config?
Beta Was this translation helpful? Give feedback.
All reactions