kuligs2
I now understand the cause of the problem. The ipv4 addresses weren't the culprits. The issue was that I assumed that every interface on my computer supports multicast. I have five network interfaces. Only two support multicasting, three don't, so when iterating over the network interfaces and calling the
join_multicast_group(MULTICAST_ADDRESS, interface_name) on each interface, the interfaces which didn't support multicasting were causing the errors. I can now successfully multicast on the two interfaces that supports it.
This brings me to a second problem. The multicasting works well on window machines. I can send or receive udp messages. But somehow, if I export to android, the app can't send out multicast or receive it even after enabling all necessary permissions. I don't know what seem to cause this