Unfortunately I wasn't able to solve it with DNS-SD either. Luckily I know that all of my devices are on 192.168.0.X, so as a workaround I send an ICMP message to all 254 addresses and when there's a response I check if it is a device I'm looking for (it runs an http server and I call it's status endpoint). I used this sample code for the ping:
https://developer.apple.com/library/archive/samplecode/SimplePing/Introduction/Intro.html