There are at least two ways of defining the inner automorphisms of a real Lie algebra $\mathfrak{g}$. One is the algebraic definition: an inner automorphism is $\exp (\text{ad} X)$, where $X$ is an nilpotent element of $\mathfrak{g}$. The other is the analytic definition: the automorphism group $\text{Aut}\ \mathfrak{g}$ of $\mathfrak{g}$ being a Lie group, has the Lie algebra $\text{Der}\ \mathfrak{g}$ which consists of derivations of $\mathfrak{g}$; then an inner automorphism is an element of the connected Lie subgroup of $\text{Aut}\ \mathfrak{g}$ associated to the Lie subalgebra $\text{ad} \ \mathfrak{g}\subset \text{Der}\ \mathfrak{g}$.
My question is, do these two definitions match for $\mathfrak{g}$ semisimple. Of course, any algebraic inner automorphism is an analytic one. For $\mathfrak{g}$ complex, I believe the question is answered positively and one may use the machinery of root systems to prove it, though I am not sure about the details, which I hope someone could elucidate. Also what about when $\mathfrak{g}$ is real?