android-jmdns | direct communication between two devices using JmDNS | Android library
kandi X-RAY | android-jmdns Summary
kandi X-RAY | android-jmdns Summary
Example of direct communication between two devices using JmDNS for Android.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Connects to the network
- Find servers
- Finds registered servers
- Reset the service
- Start a server
- Creates a server and connects it
- Acquires wifi lock
- Starts the wifi server
- Stops the connection wrapper
- Resets the connection
- Close the connection
- Send a map of values
- Send message to client
- Create the component
- Creates a new connection wrapper
- Set the OnPause listener
- Set the onResume
- Set socket
- Send a message
- Handle a message
android-jmdns Key Features
android-jmdns Examples and Code Snippets
Community Discussions
Trending Discussions on android-jmdns
QUESTION
I'm developing a web app in Java (with Spark) and I want it to use JmDNS to be able to find this server in my Android app. I was following steps from JmDNS page with service registration, and my code looks like this:
...ANSWER
Answered 2017-Aug-20 at 16:47If anyone was wondering what was wrong, I found the answer.
In my case the problem was with JmDNS jmdns = JmDNS.create(InetAddress.getLocalHost());
, especially with InetAddress.getLocalHost()
which returned 127.0.0.1 not my LAN adapter wi-fi address. The problem was solved using this solution. It bases on looking for the correct interface via NetworkInterface.getNetworkInterfaces()
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install android-jmdns
You can use android-jmdns like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the android-jmdns component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page