How to set IP_MULTICAST_LOOP on multicast UDPConn in Golang
问题 I need to set IP_MULTICAST_LOOP on a multicast UDP connection/socket so I can send/receive multicast packets on my local machine. This is the call that I've found which should work: l, err := net.ListenMulticastUDP("udp4", nil, addr) file, err := l.File() fd := syscall.Handle(file.Fd()) err = syscall.SetsockoptInt(fd, syscall.IPPROTO_IP, syscall.IP_MULTICAST_LOOP, 1) However it fails with "not supported by windows". I'm pretty sure this is supported by sockets in windows, just not in the Go