I have a couple of Apple devices in my network (both computers and mobile devices). I was wondering if it is possible, to get the model identifier like Macmini9,1 if I have the IP address and/or the Mac address.
I am using the NetServiceBrowser and NetService classes to find the devices. If the device has the AirPlay service, I can get the model identifier.
However, not all of my devices seem to implement/publish this service. Is there a more general approach?
macOS seems to know this information. In the Finder a specific icon is shown, so I guess the model identifier must be published somehow.