import java.io.*; import java.net.*; public class Sender { public static void main(String[] argv) throws Exception { int port=10101; int counter=0; // byte[] data= new byte[1000]; for(;;){ counter++; byte data[] = String.format("%04d nemoto kazuo", counter).getBytes(); InetAddress address = InetAddress.getByName("ff35:40:fdb4:353a:c83f:10::10"); DatagramPacket packet = new DatagramPacket(data, data.length, address,port); DatagramSocket socket = new DatagramSocket(); socket.send(packet); } } }