public ChatServer(int port) {
        try {
            datagramSocket = new DatagramSocket(port);

            System.out.println("Server started, port [" + port + "]");

            receive();
        } catch (Exception e) {
            System.out.println(e.getClass().getName());
        }
    }