The terahertz spectrum has the ability to provide high-speed communication and millimeter-level resolution. As a result, terahertz-integrated sensing and communication (ISAC) has been identified as a key enabler for 6G wireless networks. This work discusses a photonics-based D-band communication system for integrated high-resolution localization and high-speed wireless communication. Our empirical results show that a communication rate of 5 Gbps over a distance of 1.5 m and location identification of the target with millimeter-level (<4m m) range resolution can be conducted simultaneously using the same signal. We also show that the error due to the thickness of the beam splitter can be eliminated, while the quantization error and the random drift errors are the limiting factors of the resolution achieved. This experimental demonstration using D-band communication indicates that terahertz ISAC can be realized for 6G networks while considering the underlying system restrictions (e.g., bandwidth limit and lens diameter).