jmdns

communication between Java server and Android client using Network Service Discovery

房东的猫 提交于 2019-12-10 16:17:25
问题 I'm building a Java server application (running on a pc) that register itself to the local network using JmDNS, and an Android client App that should discover the java server using Network Service Discovery. When I run the android app first, and then run the java server, the app succeed to discover the registerd java server. But when I first run the server and then the android app, the onDiscoveryStarted method called but the onServiceFound method never triggered - the android app doesn't

How To Make JmDNS Work On A Large Network

本小妞迷上赌 提交于 2019-12-06 10:29:28
问题 I'm working on adding discovery to our app using (http://jmdns.sourceforge.net/). It's actually working correctly on my small home network. But it fails on the large network at the office. I seem to recall reading that if an app blocks for more than 5 seconds that it get's reset. And that appears to be what's happening. But first, how can I be sure that's actually the problem? Of course, my main question is how can I can make JmDNS work on a large network. And the more general question is

How To Make JmDNS Work On A Large Network

删除回忆录丶 提交于 2019-12-04 17:39:06
I'm working on adding discovery to our app using ( http://jmdns.sourceforge.net/ ). It's actually working correctly on my small home network. But it fails on the large network at the office. I seem to recall reading that if an app blocks for more than 5 seconds that it get's reset. And that appears to be what's happening. But first, how can I be sure that's actually the problem? Of course, my main question is how can I can make JmDNS work on a large network. And the more general question is what do you do when you need more than 5 seconds? Small snippet of my code (it's in an AsyncTask):

JmDNS: Can't resolve service

徘徊边缘 提交于 2019-12-04 09:45:22
问题 I'm trying to implement JmDNS discovery for communication between an Android app and a desktop application. I have followed the following tutorial: http://home.heeere.com/tech-androidjmdns.html The Android app registers a service and the desktop application adds a listener for the service. I've got it working perfectly fine with three out of four of my devices, but with the fourth one (a Samsung Galaxy Tab 10.1 PT7500 running Android 3.2) I can't resolve the service. My handler receives the

Implementing android as a server (receiver) in airplay

天涯浪子 提交于 2019-12-03 16:37:14
问题 I want to create the airplay in android in which my android device will work as a airplay server(receiver)and iPhone device will work as a receiver . I have used jmdns in my application which is open source library in java for the airplay . It is working fine for the audio . But when I come to the video and image then there is lot of struggle for me even with the discovery of the device .Here is my code for the creating and registering the service : ServiceInfo info = ServiceInfo.create

Network Device Discovery

懵懂的女人 提交于 2019-12-03 13:42:23
For my Android app, users need to connect to a server that will be hosted somewhere on the same LAN. There can be multiple servers hosted on the same LAN. To make it easy for the user, I was going to scan the current LAN that the Android device is connected to and then list all of the network devices that have the server running on it, rather than having the user input the IP to the computer manually. I'm fairly new to networking, and after some searching I found out that I would have to use a multi-cast DNS search or UDP broadcast to detect the other devices. I also found a nice library

JmDNS doesn't work properly on android 4.1

旧城冷巷雨未停 提交于 2019-12-03 10:14:44
问题 JmDNS I am implementing JmDNS as follows here. When running the code on my android 2.3.5 htc Evo I am able to discover my linux computer. However, when i run the same code on my samsung galaxy s3 (4.1.0) nothing shows up. What is strange is that it was working on my 4.1 a week ago and now it isn't. I have tried someone else's solution here but no luck. If any one has experienced this and could shed some light on why gingerbread is working with jmdns but not jellybean. Clarification: My

Implementing android as a server (receiver) in airplay

孤者浪人 提交于 2019-12-03 06:38:31
I want to create the airplay in android in which my android device will work as a airplay server(receiver)and iPhone device will work as a receiver . I have used jmdns in my application which is open source library in java for the airplay . It is working fine for the audio . But when I come to the video and image then there is lot of struggle for me even with the discovery of the device .Here is my code for the creating and registering the service : ServiceInfo info = ServiceInfo.create(identifier + "@" + name + "._raop._tcp.local", identifier + "@" + name, port, "tp=UDP sm=false sv=false ek=1

JmDNS: Can't resolve service

感情迁移 提交于 2019-12-03 03:20:36
I'm trying to implement JmDNS discovery for communication between an Android app and a desktop application. I have followed the following tutorial: http://home.heeere.com/tech-androidjmdns.html The Android app registers a service and the desktop application adds a listener for the service. I've got it working perfectly fine with three out of four of my devices, but with the fourth one (a Samsung Galaxy Tab 10.1 PT7500 running Android 3.2) I can't resolve the service. My handler receives the serviceAdded event, but no serviceResolved event. I have also tried calling jmdns.requestServiceInfo and

JmDNS doesn't work properly on android 4.1

自古美人都是妖i 提交于 2019-12-03 00:44:45
JmDNS I am implementing JmDNS as follows here . When running the code on my android 2.3.5 htc Evo I am able to discover my linux computer. However, when i run the same code on my samsung galaxy s3 (4.1.0) nothing shows up. What is strange is that it was working on my 4.1 a week ago and now it isn't. I have tried someone else's solution here but no luck. If any one has experienced this and could shed some light on why gingerbread is working with jmdns but not jellybean. Clarification: My android 4.1 device will not resolve any services except for those that are created from the device. My 2.3