Closed yegong closed 1 year ago
In the past the network interface was used to bind the listener to a specific network interface (f.e. eth0
). If we don't use the network interface anymore we are binding the listener to all interfaces always. Is my interpretation correct?
It looks like you are on the right track! :-) Thanks for your contribution!
Fix: multicast bind should be MULTICAST_ADDRESS, it will be help in some environment
According to examples I found, lots of them indicate the binding address of muilticast should be the MULTICAST_GROUP instead of local address. https://huichen-cs.github.io/course/CISC7334X/20FA/lecture/pymcast/#the-receiver-program-mcastrecvpy is one of them.
It helps solving issue like not receiving any message from XiaomiGateway. Tested and works in local home-assistant environment.