DatagramPacket outgoing; try { outgoing = new DatagramPacket(dp.getData(), dp.getLength(), dp.getAddress(), dp.getPort()); ds.send(outgoing); } catch (IOException e) { System.err.println(e); }