import java.io.*; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.MulticastSocket; public class Server { public static void main(String[] argv) throws Exception { int port=10101; MulticastSocket socket = new MulticastSocket(port); InetAddress mcastAddr = InetAddress.getByName("ff35:40:4db4:353a:c83f:10::10"); socket.joinGroup(mcastAddr); byte[] data = new byte[8193]; DatagramPacket packet = new DatagramPacket(data, data.length); socket.receive(packet); System.out.println("Packet="+data); } }