I have iPhone named myphone
. To get its IP address on local network, I used to do do host myphone.local
in Terminal, or just checking if it is alive by ping myphone.local
. This basic mDNS function worked every time, but with iOS 17 betas it is not working anymore. Is this intended functionality cut or just a bug?
Note that Apple TV always has registered services, so the local DNS name records are always registered. And IIRC this behaviour is disabled on macOS, so you’ll always see the local DNS name records for Macs as well.
Maybe I can register some Bonjour service on Macbook or Linux, so iPhone will respond by name if it in local network?
I don’t understand this. How would registering a service on macOS change the behaviour of iOS?
I am working on home automation project that need to detect the presence of certainly named device in the local network.
Bonjour works in terms of services, not devices, which explains the problem you’re having here. If the iOS device were registering a service, you could browse the service and you wouldn’t have this issue.
If I were in your shoes I’d ask our DHCP server for the list of its clients.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"