private void broadcast (int udpPort, DatagramSocket socket) throws IOException {
int classID = kryo.getRegisteredClass(DiscoverHost.class).getID();
ByteBuffer dataBuffer = ByteBuffer.allocate(4);
IntSerializer.put(dataBuffer, classID, true);
dataBuffer.flip();
byte[] data = new byte[dataBuffer.limit()];
dataBuffer.get(data);
for (NetworkInterface iface : Collections.list(NetworkInterface.getNetworkInterfaces())) {
for (InetAddress address : Collections.list(iface.getInetAddresses())) {
if (!address.isSiteLocalAddress()) continue;