InetAddress someInet = InetAddress.getByName(DNSConstants.MDNS_GROUP);
firstSocket = new MulticastSocket(MPORT);
secondSocket = new MulticastSocket(MPORT);
firstSocket.joinGroup(someInet);
secondSocket.joinGroup(someInet);
//
DatagramPacket out = new DatagramPacket(firstMessage.getBytes("UTF-8"), firstMessage.length(), someInet, MPORT);
DatagramPacket inFirst = new DatagramPacket(firstMessage.getBytes("UTF-8"), firstMessage.length(), someInet, MPORT);
DatagramPacket inSecond = new DatagramPacket(firstMessage.getBytes("UTF-8"), firstMessage.length(), someInet, MPORT);
Receive receiveSecond = new Receive(secondSocket, inSecond);