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
19
votes
0 answers

Android NSD - hangs / runs forever - device specific?

I'm attempting to perform service discovery on my company's proprietary hardware device which hosts its own WiFi network and advertises a bonjour service over that network. When I'm connected to that WiFi network, I'm using NSD to discover that…
Ken Rothman
  • 323
  • 2
  • 8
18
votes
3 answers

Android, NSD/DNS-SD: NsdManager unreliable discovery and IP resolution

In the course of the last weeks, Android's NSD implementation is making me go mad: From a user's point of view, the following problems arise: Devices discover each other in a completely non-deterministic fashion. If I launch my NsdManager-based…
Newtron
  • 416
  • 3
  • 12
14
votes
2 answers

How to scan IP and Mac address of all Device Connected to wifi in android accurately?

Hi i am trying to find all devices connected to My WIFI Router from android and ,i need to device Mac address and local ip address of each device (Including iOT Devices) , right now , i am trying to find from ARP cache table . but sometime in the…
Dhiru
  • 3,040
  • 3
  • 25
  • 69
11
votes
3 answers

NSdManager ResolveListener Error Code 3: Failure Already active

I'm using NsdManager in an Android App to discover NSD services published by another device also developed by me. I only do service discovery on Android App (no service registration needed on this side). There are several instances of the same type…
DarkJediNinja
  • 495
  • 6
  • 10
7
votes
3 answers

Android - Wifi Direct / p2p not able to find peers on Android 8

I started creating an Android app wifi Wifi direct functionality. I do a peer discover and I like to see the peers in a listview. I now have a app which tries to discover peers and shows the peers in a list. But I'm facing the problem that this…
user5853948
7
votes
2 answers

How to find all available services using Android's native Network Service Discovery

I've read through android documentation on finding specific network services using NSD. Below is my code to discover all the available _http._tcp services. final NsdManager.DiscoveryListener discoveryListener = new NsdManager.DiscoveryListener() { …
waqaslam
  • 67,549
  • 16
  • 165
  • 178
7
votes
4 answers

Android NSD onServiceFound() not getting called

First time trying to do IP Discovery in Android. I used the http://developer.android.com/training/connect-devices-wirelessly/nsd.html#discover and wrote the code. I am not registering the device, just Discovering Services in the network. When I run…
pws35
  • 101
  • 1
  • 2
7
votes
3 answers

Android Network service discovery example Nsdchat not working

I'm trying out the official android NSDchat example to communicate between two android phones connecting to the same wifi network. After importing the project into eclipse, I changed only the target sdk to api level 22 instead of 16. I tried the app…
Varad Pingale
  • 131
  • 1
  • 4
7
votes
1 answer

Discover all services in the network using android NSD

I´m trying to find all services in the network using: mNsdManager.discoverServices( SERVICE_TYPE, NsdManager.PROTOCOL_DNS_SD, mDiscoveryListener); but you have to define SERVICE_TYPE for example: public static final String SERVICE_TYPE…
user1576396
  • 341
  • 1
  • 2
  • 7
5
votes
0 answers

NSD Manager keeps old service in memory, even when they are not on the network anymore

I'm using NSD Manager, and according to the documentation, it keeps a list of service found. But I believe it doesn't update it on every new discovery (as in, it doesn't remove unregistered services) Is there a way to clear the list or force update…
5
votes
1 answer

Create group using wifi p2p to connect multiple device

I want to create a connection where one device will be like server which will stream some data to connected and multiple device can connect to that device which receive data. So i have done some kind of research i got to know that we can do this…
Nikhil Sharma
  • 593
  • 7
  • 23
5
votes
1 answer

While using network service discovery Registration Fails with error code 0 .

Whenever I use registerService function it gives an exception with code error 0. 1) I am creating a local chat service app , where I need to have local service broadcast and while doing so I've been stuck as no matter what I do , Registration always…
5
votes
1 answer

Can we connect to iPhone from Android device even though not in the same network?

I am working around wifi direct and NSD (Network Service Discovery) to transfer files. NSD: where serivce has been created and can scan the other devices which are publishing the same service with in the same network. WiFi Direct: This is used to…
Ramesh Akula
  • 5,720
  • 4
  • 43
  • 67
3
votes
0 answers

Android NSD. Have errors when trying to resolve

I'm making android quiz with local network multiplayer where host should send message to all clients. I'm using this sample of NsdChat. But when I try to reslove service I get this errors. E/NsdServiceInfo: While parsing txt records (pos = 1): Zero…
3
votes
0 answers

Network Service Discovery not woking when app returns from AirPlane mode to Wifi during the running app

I am having a problem related to Network Service Discovery. When I start the app with wifi connected, NSD Works Totally fine discovering the service and smoothly resolving them. But the problem arises when we connect wifi, after disabling wifi or…
1
2 3 4 5 6