@@ -0,0 +1,918 @@
+import java.io.*;%0Aimport java.net.*;%0Apublic class dynmulticastSend3%0A%7B%0A  public static void main(String%5B%5D args) %7B%0A    DatagramSocket socket2 = null;%0A    DatagramPacket outPacket2 = null;%0A    byte%5B%5D outBuf2;%0A    final int PORT = 8888;%0A %0A    try %7B%0A      socket2 = new DatagramSocket();%0A      long counter = 0;%0A      String msg;%0A %0A      while (true) %7B%0A        msg = %22This is multicast! %22 + counter;%0A        counter++;%0A        outBuf2 = msg.getBytes();%0A %0A        //Send to multicast IP address and port%0A        InetAddress address2 = InetAddress.getByName(%22224.2.2.3%22);%0A        outPacket2 = new DatagramPacket(outBuf2, outBuf2.length, address2, PORT);%0A %0A        socket2.send(outPacket2);%0A %0A        System.out.println(%22Server sends : %22 + msg);%0A        try %7B%0A          Thread.sleep(500);%0A        %7D catch (InterruptedException ie) %7B%0A        %7D%0A      %7D%0A    %7D catch (IOException ioe) %7B%0A      System.out.println(ioe);%0A    %7D%0A  %7D%0A%7D%0A

Create dynmulticastSend3.java