I’m trying to make an audio application that can connect to itself over the network between two computers. I understand how InterprocessConnection works, but I’m very new to the entire concept of broadcast/multicast. I’ve been also researching that, and I think I have a good handle on how it works.
I found DatagramSocket’s function joinMulticast(), too, but I’m not sure how to use it exactly. I can see that it connects the DatagramSocket to a multicast address, but what can be done from there exactly? Should I be Googling how to, and coding myself, sending a find request, or do these libraries already know how to do that and I just can’t find it? Or am I wrong about needing to do that, too?
If my goal is to use multicast to get two computers connected, should I even be doing what I’m attempting right now?: using multicast to have the programs find each others’ IP addresses, and then connecting to them with InterprocessConnection?