Questions tagged [nsd]

Network Service Discovery (NSD) allows the identification of devices on the local network that support the services your software requests.

Network Service Discovery (NSD) allows the identification of devices on the local network that support the services your software requests. This is useful for a variety of peer-to-peer applications such as file sharing or multi-player gaming. Devices have software that can broadcast its name and connection information to the local network and scan for information from other applications doing the same.

76 questions
2
votes
1 answer

Android NsdManager periodically lost+found avahi daemon service

I have linux PC with installed avahi-daemon (default config) and registered service test.local. From iOS discovering test.local service thru Bonjour works like a charm but from Android not. Nsd Manager periodically (every second) call…
Dmitry
  • 906
  • 1
  • 13
  • 32
2
votes
1 answer

NsdManager service not found after registered android

I recently started working on Network Service Discovery which is provided by Android. I made two applications connected on the same network. One will register a service with this class : public class NsdRegister { private Context …
X6Entrepreneur
  • 971
  • 2
  • 10
  • 30
2
votes
1 answer

Cannot detect service using Network Service Discovery (NSD) on Android

I'm a newbie trying to use NSD in an application I'm building to find peers running the same service on the same wifi network and connect to the it. [Refer to code] I have one device running HostActivity.java and one running GuestActivity.java.…
fwx
  • 333
  • 1
  • 5
  • 14
2
votes
1 answer

How to get list of devices connected to my Wi-Fi in android?

I need to get the list of devices (and possible details of them as well) that are connected to the Wi-Fi which is I have connected to. I don't need to connect and chat with any of them. I'm going through this link…
user1670443
  • 461
  • 2
  • 6
  • 17
2
votes
1 answer

Does network service discovery on android allows automatic connection after first connection (persistent connection)?

I want to have an automatic connection between any two devices after the first connection has happened. Does nsd on android provide such functionality? I have refered this link for nsd on android…
Varad Pingale
  • 131
  • 1
  • 4
1
vote
0 answers

How to query an mDNS-enabled server over HTTPS with Android?

I've got an issue trying to make 2 devices communicate over HTTPS on a LAN because of Android's lack of support for mDNS. Put simply, I'm developing and Android app (the client) that'll send HTTPS requests to an IoT device (the server) on the same…
benedick steve
  • 81
  • 1
  • 1
  • 6
1
vote
0 answers

Can't find symbole varible NSD_SERVICE

I'm trying to run the following piece of code: mNsdManager = (NsdManager) context.getSystemService(android.content.Context.NSD_SERVICE); but when building it complains that "cannot find symbol variable NSD_SERVICE" Tried to make a clean build,…
ANNA
  • 11
  • 3
1
vote
0 answers

Network Service Discovery Wrong IP resolved

I want to connect multiple Android devices via Network Service Discovery. I want to use a star topology. so on device should discover and the others a registering a service which should found by the discoverer. For this I took the NSD Chat…
1
vote
1 answer

Application Not Responding when requesting NSD_SERVICE via getSystemService

Some of our users are experiencing an ANR on startup. Looking at the reports in Play Store it looks like it happens when our app calls: NsdManager nsdManager = (NsdManager)context.getSystemService(Context.NSD_SERVICE); Reading the docs I don't…
Steve W
  • 21
  • 4
1
vote
0 answers

NSD discovery not finding anything in Motog3 API 23

I'm having a strange behaviour in a MotoG3(API 23) device when doing the Nsd discovery. Both the discovery from NsdManager and the library https://github.com/andriydruk/RxDNSSD are not discovering any service. I verified services are available in…
1
vote
0 answers

Is Android WifiP2pManager.discoverServices able to discover NsdServiceInfo (by NsdManager.registerService)?

step 1: nsdManager.registerService(serviceInfo, NsdManager.PROTOCOL_DNS_SD, registrationListener); step 2: p2pManager.discoverServices(p2pChannel, new WifiP2pManager.ActionListener() { @Override public void onSuccess() { ... } …
Amos
  • 2,222
  • 1
  • 26
  • 42
1
vote
1 answer

NsdManager fails to register service on android

I'm trying to register a nsdservice on android using the NsdManager but it keeps failing because of internal errors, whatever that means. this is just a test, in the future i want to be able to connect multiple devices to one "hostdevice". the…
Tazua
  • 23
  • 6
1
vote
3 answers

Android NsdServiceInfo setAttribute update after register

After initially setting up attributes for the NsdServiceInfo and calling registerService, how is it possible to update the attributes? With iOS, you just call [service setTXTRecordData...]. I don't see any way to do it with Android so far.
djunod
  • 4,876
  • 2
  • 34
  • 28
1
vote
0 answers

Can't send message and receive using java socket while connected to Network Service Discovery

I am using Network Service Discovery service to discovery peer and connected to them using socket so , so socket created successfully but i am not able to send message or receive message so below is my code MainActivity public class MainActivity…
Nikhil Sharma
  • 593
  • 7
  • 23
1
vote
1 answer

Android NSD: registration with null service type

The result of the registration shouldn't be empty, this is what I get from logcat and the callback of successful registration. registerService 46518 onServiceRegistered name: mytest, type: null, host: null, port: 0, txtRecord: Everything is…
user3290180
  • 4,260
  • 9
  • 42
  • 77