I'm using tcpdump to capture multicast packets and had to code up a custom program to join multicast feeds so tcpdump will "see" the packets. Just wondering if netcat or any other applications can perform this function instead?
You can do this using the
It attaches/detaches a static link layer multicast address to listen on the interface. Note that it is impossible to join protocol multicast groups statically. This command only manages link layer addresses.
Example for a wired connection:
Example for a wireless connection:
One can use socat to subscribe to groups. This works nicely for both L2 and L3 subscription:
This will subscribe to group