not seeing UDP multicast messages from another device
问题 I have a Windows machine where I have two scripts that send and receive messages via UDP multicast (on the same machine). I have a C and Python3 implementation of this. The Python3 one looks like this: sender.py import socket MCAST_GRP = '239.1.1.1' MCAST_PORT = 1234 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 2) print("Sending") sock.sendto(bytearray("str()", "utf-8"), (MCAST_GRP, MCAST_PORT)) data,