Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable mDNS support in android browser address bar

Tags:

How to get mDNS names (test.local) resolve to ip address in Android Chrome browser at address bar ?

In windows after installing Bonjour service it works in Chrome browser. Is there similar service which can be activated in Android.

mDNS resolution is possible in Android app like (zeroConfig). I read it is possible to write an app using NSD service. But this support does not seem to be present in Chrome browser of Android.

I am developing an Iot (Internet of Things) web application and mDNS service will make my work and others like me much easier.

like image 282
hrsavla Avatar asked May 26 '15 05:05

hrsavla


People also ask

Is mDNS supported in Android?

mDNS resolution is “transparently supported” by Android, according to the documentation. The getaddrinfo() API method sends mDNS queries to the fixed mDNS IPv4 link-local multicast address or its IPv6 equivalent if the device supports mDNS .

How do I enable mDNS in Windows 10?

Navigate to the registry key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient. If the key does not exist, you may need to create it. Then add the value EnableMulticast as a REG_DWORD, with the value 0. Reboot.


1 Answers

Check out the answers here: https://android.stackexchange.com/questions/49188/how-to-get-mdns-working-for-chrome-on-android

natevw's answer:

I don't think so.

The system DNS resolver in Apple's platforms has in-built support for mDNS, so that pretty much any app eventually winds up using the core getaddrinfo function and supporting mDNS in URLs and hostnames and whatnot.

On Android and other platforms, even if there is a Multicast DNS daemon running and libraries available for using it, "typical" DNS lookups do not. So while recent Android releases do give developers some mDNS features as part of the platform, most do not go out of their way (as they would need to do) to use them.

It's a bummer, but AFAIK there's nothing short of rolling your own custom Android build (or convincing Google to change it) that could really solve this.

like image 188
gjudkins Avatar answered Sep 28 '22 07:09

gjudkins