@@ -0,0 +1,871 @@
+import java.io.*;%0Aimport java.net.*;%0Apublic class dynmulticastReceive%0A%7B%0A  public static void main(String%5B%5D args) %7B%0A    MulticastSocket socket = null;%0A    DatagramPacket inPacket = null;%0A    byte%5B%5D inBuf = new byte%5B256%5D;%0A    try %7B%0A      //Prepare to join multicast group%0A      socket = new MulticastSocket(8888);%0AInetAddress address = InetAddress.getByName(%22224.2.2.1%22);%0AInetAddress address1 = InetAddress.getByName(%22224.2.2.2%22);%0A      InetAddress address2 = InetAddress.getByName(%22224.2.2.3%22);%0A      socket.joinGroup(address);%0A %0A      while (true) %7B%0A        inPacket = new DatagramPacket(inBuf, inBuf.length);%0A        socket.receive(inPacket);%0A        String msg = new String(inBuf, 0, inPacket.getLength());%0A        System.out.println(%22From %22 + inPacket.getAddress() + %22 Msg : %22 + msg);%0A      %7D%0A    %7D catch (IOException ioe) %7B%0A      System.out.println(ioe);%0A    %7D%0A  %7D%0A%7D%0A

Create dynmulticastReceive.java