I was debugging some code/checking if a device was in fact broadcasting. This code listened and logged all outputs:

sudo tcpdump -n -c 100 multicast | perl -n -e 'chomp; m/> (\d+.\d+.\d+.\d+).(\d+)/; print "udp://$1:$2\n"' | sort | uniq

And to see the traffic:

sudo tcpdump ether multicast

Comments are closed.

Post Navigation