transdroid icon indicating copy to clipboard operation
transdroid copied to clipboard

Support .local network addresses

Open magneticflux- opened this issue 6 years ago • 2 comments

I wish to be able to connect to my local computer easily using its mDNS name. Unfortunately, this it not natively supported in Android. It may be possible to use a third-party library to implement the zeroconf spec for this specific application.

This looks like a promising library: https://android-arsenal.com/details/1/3220

magneticflux- avatar Dec 08 '17 04:12 magneticflux-

Hmm maybe. Using https://github.com/jmdns/jmdns directly seems more appropriate. And regardless it is pretty neat but a very speicif cuse case, so not sure if I want to dip my toe in this.

erickok avatar Dec 14 '17 22:12 erickok

very speicif use case...

Using mDNS is becoming increasingly common, with many OSs and services publishing their existence on the LAN. It's a really low-effort way to get name resolution on a LAN, and avoids needing to set up a DNS server.

I find it rather annoying that Android doesn't have mDNS resolution built-in, and instead requires every app developer to implement the lookup, and as a result almost no apps support it. (Supposedly iOS supports mDNS at the OS level.)

I've been working around this by using a static IP, but would like to use mDNS.

tmetro avatar Feb 20 '18 16:02 tmetro