If your computer cannot resolve the mDNS name correctly, then you would have similar issues in Java or C++, as they all use the same underlying mechanism to resolve the mDNS name.
A similar issue was reported at
https://github.com/robotpy/pyfrc/issues/42, and that user was able to resolve their issue by reflashing the firmware on their OM5P-AN.