2004 dakota transfer case.
I assume you checked the half-shafts. But all-wheels up it should be easy to determine where the noise is coming from.
In any case T-cases are pretty simple, especially the older ones, which is all I'm familiar with. I still have a few parts for the old NP 203s and NP 205s.