question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Support Zeroconf/Bonjour/mDNS

See original GitHub issue

Is 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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Waboodoocommented, Jul 17, 2021

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.

1reaction
Waboodoocommented, Jun 28, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found