JoinMulticastGroup

public void join(String groupName, int port) {
    try {
        MulticastSocket msocket = new MulticastSocket(port);
        group = InetAddress.getByName(groupName);
        msocket.joinGroup(group);
    } catch (IOException e) {
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.