I wrote a simple program to send a UDP datagram to a multicast address , but the packet never shows up in wireshark traces both at the receiver end and Roku end.
I tried just modifying the socket_test example (UDP client) to send to a multicast address ex:18.104.22.168 and still dont see the packet.
All I am doing is * create roDatagramSocket * create socketaddress with address set to a multicast ip and a port (ex:22.214.171.124:1000) * call setSendToAddress on the socket and * call sendStr on the socket. - sendstr returns > 0 signifying success * I don't see this packet out of Roku in network traces.
If you dont set the hostname on the socket or set the roSocketAddress' hostname (roSocketAddress.setHostname) to 0.0.0.0 it does not work. You have to explicitly set the hostname to ip address of roku and then multicast works fine.