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
1
vote
2 answers

Can't connect to Android devices when using Network Service Discovery through Wi-Fi P2P

everyone! I'm developing an Android app that allows to chat with nearby devices that have installed this app. In order to accomplish this, I'm using the Wi-Fi P2P API and Network Service Discovery to search for such nearby devices. I've written the…
Nehil
  • 11
  • 1
  • 5
1
vote
1 answer

Android NSD - Group Owner

When creating a network using Android NSD, to enable communication between several devices that have the same application, does one of the devices necessarily becomes the Group Owner, or not?
1
vote
1 answer

NSD File sharing android

I am building an app using NSD api from google to share pictures between two android devices. I imported the NSDchat example from android website and managed to implement it in my app and I successfully created a connection between two android…
Khalil Y
  • 21
  • 3
1
vote
0 answers

How do I get host names by using IP, MAC addresses in android

I need to get the details of all wireless devices that are connected to my wifi network. I'm getting IP, MAC addresses, somehow Vendors of device as well. How do I get the device type? (i.e laptop, mobile, AC, Refrigerator) And host names?…
Santhosh
  • 4,956
  • 12
  • 62
  • 90
0
votes
0 answers

Android NSD can't resolve the mDNS service in Windows

I need android discovery the service in the windows。 I use nsd service in android app which as client. And i note that windows started supporting mDNS/DNS-SD in window 10, so i use the api DnsServiceRegister to register an mDNS server in windows. It…
0
votes
0 answers

Is it possible to implement an DNS-SD mechanism for a WebSocket server?

I have a WebSocket server running on an Android device on my local network. I would like to have the ability to discover this server using DNS-based Service Discovery (DNS-SD). I believe this is possible for plain sockets but is this possible for…
Justin
  • 107
  • 1
  • 10
0
votes
1 answer

NI DETECTED ERROR IN APPLICATION: JNI GetMethodID called with pending exception java.lang.RuntimeException

I want to build an app using C++ and Java by JNI in the platform of Qt, I tried to do the code below: c++ #include "musiclist.h" #include #include #include #include #include…
0
votes
0 answers

JNI DETECTED ERROR IN APPLICATION: JNI GetStaticMethodID called with pending exception java.lang.NullPointerException

Please I want to build an NSD ( network services discovery) app, using Jni with Qt, But I get the following error: JNI DETECTED ERROR IN APPLICATION: JNI GetStaticMethodID called with pending exception java.lang.NullPointerException: Attempt to…
0
votes
0 answers

non-static variable discoveryListener cannot be referenced from a static context

I want to understand why this problem take place while calling Nsdmanager from a static method, here below the code public void initializeDiscoveryListener() { // Instantiate a new DiscoveryListener discoveryListener = new…
0
votes
1 answer

NsdServiceInfo does not contain attributes on Android 6.0

On an Android application which should work on Android 6+, I am trying to use network service discovery in order to check if some devices are available on my network. Base on this part of the official documentation, I created this little POC: class…
rolandl
  • 1,769
  • 1
  • 25
  • 48
0
votes
2 answers

NSD discovering services android

Task description: I intend to build an app that can discover services given by ESP32 in my Network using NSD android, so I implemented the code below Code: import android.net.DhcpInfo; import android.net.nsd.NsdManager; import…
0
votes
1 answer

How to change SRV record format

I registered service using NsdManager: public void RegisterService(string serviceName, int port, Dictionary attributes, string serviceType = "_itxpt_http._tcp.") { var serviceInfo = new NsdServiceInfo() { …
Serlok
  • 432
  • 1
  • 10
  • 24
0
votes
0 answers

Promote IPv6 address with Android NSD instead of IPv4 address

I successfully registered a service in my App which I can see on my Generic Linux device using the command line tool avahi-browse. What I wonder is the following: why does avahi-browse does show the IPv4 address of my Android but not the IPv6 (link…
DennisS
  • 3
  • 3
0
votes
1 answer

How do I Building an Android application that can print files (PDF, photos, ...) with a printer inside the network?

I am building an Android application that prints files with a printer inside the network, I have used network service discovery (NSD) and I already got an Ip and port and also a printer name, so now I need how to call this printer and send a print…
0
votes
1 answer

How to properly change access in parts of my kotlin android library so that the user cannot interact with them?

So I've been trying to write my first Kotlin Android Library. It's a wrapper that (in theory) should make using Network System Discovery a bit easier. To go over what is happening and what I am trying to do. I'll abstract much of the code and leave…
Nikola-Milovic
  • 1,393
  • 1
  • 12
  • 35