import java.net.InetAddress; import java.net.UnknownHostException; public class Config { public static final int PORT = 9000; public static final int BUFFER_SIZE = 1024; public static final InetAddress MULTICAST_ADDRESS; public static final int MULTICAST_PORT = 9000; public static final InetAddress BCAST_ADDRESS; static { try{ //multicast addresses are in the range 224.0.0.0 through 239.255.255.255. MULTICAST_ADDRESS = InetAddress.getByName("239.255.42.99"); BCAST_ADDRESS = InetAddress.getByName("192.168.56.255"); }catch (UnknownHostException e){ throw new RuntimeException(e); } } }