alsmith / multicast-relay

Relay multicast and broadcast packets between interfaces.
GNU General Public License v3.0
304 stars 47 forks source link

Alias #33

Closed juliodiz closed 4 years ago

juliodiz commented 4 years ago

Error using alias

multicast-relay.py --wait --interfaces eth1 eth1:1

File "/webspot/webcast/multicast-relay.py", line 872, in sys.exit(main()) File "/webspot/webcast/multicast-relay.py", line 867, in main packetRelay.addListener(addr, port, relay[1]) File "/webspot/webcast/multicast-relay.py", line 273, in addListener rx.setsockopt(socket.SOL_IP, socket.IP_ADD_MEMBERSHIP, packedAddress) File "/usr/lib64/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 98] Address already in use

alsmith commented 4 years ago

Indeed, it doesn't make sense to listen on aliases, since multicast packets are broadcast across the network and are received by all hosts on that network regardless of which unicast network they think that they are on.