Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding and Android NSD-Service from a non-Android Device

Since Android 4.1 Network service discovery (NSD) is available. However, how would one find an android device that exposes an NSD-Service from a computer or from some other device that does not run android. Building an android app as shown in the examples will find the other device just fine, however, one does not always have Android as a platform.

I am running UPnP discovery on my PC and the phone does not show up.

You can find my NSD-Service implemented here on github.

The Discovery app is simple from the android example.

The UPnP example is using Cling and is from their tutorial it finds my router and the windows media player so I assume it works.

It may be that the issue is based on a mismatch of service discovery protocols, I relay am confused as to the differences between NSD, UPnP, Bonjour, Zeroconf and all the other possibilities...

like image 637
Lukas Ruge Avatar asked Sep 04 '13 15:09

Lukas Ruge


People also ask

What is NSD in Android?

Network service discovery (NSD) gives your app access to services that other devices provide on a local network. Devices that support NSD include printers, webcams, HTTPS servers, and other mobile devices.

How do I turn on network discovery on Android?

There are two buttons at the top of the home screen: Discover and Options. I tapped Discover and network discovery commenced. The app correctly identified the two devices I have on my network (besides the Android phone), my laptop and my router.

What is service discovery in networking?

Service discovery is the automatic detection of devices and offered services over a network. Discovery, which minimizes configuration efforts for administrators, is commonly found in microservice architectures and containerization platforms.


1 Answers

The protocol you are after is http://www.dns-sd.org/ - DNS Service Discovery (DNS-SD)

That seems to be the only protocolType in the current Android framework.

like image 75
RoundSparrow hilltx Avatar answered Sep 16 '22 23:09

RoundSparrow hilltx