Feature Request: Support Zeroconf/Bonjour/mDNS
See original GitHub issueIs your feature request related to a problem? Please describe.
Cannot create HTTP shortcuts to Zeroconf/Bonjour/mDNS .local
domains.
Describe the solution you’d like
HTTP requests to http://my-iot-device.local
should work in addition to http://x.x.x.x
IP addresses.
Describe alternatives you’ve considered I currently use the device IP address, but it is tedious and error prone.
Additional context
An Android OS issue, which should be handled at the OS level as it is in Linux, Windows, MacOS, and iOS. The workaround is handling it in-app.
- Example implementation https://www.dodgycoder.net/2015/02/setting-up-bonjourzeroconfmdnsnsd.html
- Android docs for using NSD https://developer.android.com/training/connect-devices-wirelessly/nsd.html#discover
- Android OS feature requests:
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Chapter 1. Introduction to Bonjour and Zeroconf - O'Reilly
Introduction to Bonjour and Zeroconf You walk in a few minutes late to a ... Service requests consist of asking for a service...
Read more >novotnyllc/Zeroconf: Bonjour support for .NET Core ... - GitHub
Zeroconf. Bonjour/mDNS discovery support for .NET v4.8, UWP, Xamarin & .NET Standard 2.0. The core logic is implemented primarily .NET Standard 2.0.
Read more >Avahi/Bonjour/Zeroconf support - Sailfish OS Forum
Zeroconf is the term for many technologies providing similar functionality. “Avahi”/“Bonjour” is DNS-SD over mDNS to be concrete.
Read more >[Feature Request] Nextcloud servers and clients should ...
Feature Proposal: Zeroconf Nextcloud servers and clients should support “Zeroconf”, the technology concept which crystallized as and is ...
Read more >Feature Request: IP Multicast Routing/mDNS/Zeroconf/Bonjour
The problem is that the multicast routing that MT supports doesn't properly handle Bonjour/Zero-conf. I've researched and tried a ton of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That is unfortunate. I spent a few more hours tinkering with this and found that mDNS on Android is simply cursed. For me the Local Finder app that you mentioned doesn’t seem to work on either of the 2 devices that I tried it, so there seem to be some hardware or vendor software issues involved as well.
When researching this topic I found that everyone only talks about service resolution, hardly ever about host resolution, i.e., all the interfaces and libraries for mDNS on Android only deal with discovering services, but resolving a “.local” hostname to an IP address seems to be a much trickier problem.
The way the HTTP Shortcuts app works for now is that it scans for any service of type “_http._tcp” where the name of the service matches the host name. This is not the proper way to do it of course, so naturally it doesn’t work properly in most of the cases. It seems to work for your NAS, so I assume that the NAS advertises such a service using the same name, while your other 2 devices do not. So maybe as a workaround you could try to configure your Pi to advertise a “_http._tcp” service in the local network. Not great, but I’m out of ideas for now on how to make this work out of the box, so I’ll leave this as it is now and hopefully find some pointers eventually.
Thanks for the useful links. This seems doable to implement, and it is not the first time it has been requested, so I think I will look into this when I have time.