zeroconf

How to register a service with Mono.ZeroConf?

喜你入骨 提交于 2019-12-03 10:03:40
问题 I'm trying to test the ZeroConf sample at http://www.mono-project.com/Mono.Zeroconf. I'm running OpenSuse 11 and Mono 2.2. My server code is: using System; using Mono.Zeroconf; namespace zeroconftestserver { class MainClass { public static void Main(string[] args) { RegisterService service = new RegisterService (); service.Name = "test server"; service.RegType = "_daap._tcp"; service.ReplyDomain = "local."; service.Port = 6060; // TxtRecords are optional TxtRecord txt_record = new TxtRecord (

Can Android support Zeroconf/Bonjour over Bluetooth? How about TCP/IP?

耗尽温柔 提交于 2019-12-03 08:36:03
问题 On iPhone if I create custom service for example "_test._tcp.local." in Bonjour I can seek/broadcast this service through WiFi or/and Bluetooth. It is possible on Android ? I know that there is jmDNS but from what I understand it works only through WiFi/Network, not Bluetooth. Thanks EDIT by Seva Alekseyev, who offered the bounty: I'm not after workarounds (like Zeroconf sans Bluetooth or Bluetooth sans Zeroconf). I'm after the real thing. 回答1: Not on bluetooth, because Android currently

Android NSD not discovering all services

荒凉一梦 提交于 2019-12-03 06:38:24
问题 I'm trying to run an application using Android Native Service Discovery but sometimes when I run the application, it doesn't discover all services from my network. I'm running the code from https://github.com/joeluchoa/nsd using four galaxy nexus and most of the times each of them discoveries different number of services at the same time. Basically I run a service with a ServerSocket: ServerSocket server = new ServerSocket(0); Log.i(TAG, "IP " + server.getInetAddress() + ", running on port "

How to route all subdomains to a single host using mDNS?

旧城冷巷雨未停 提交于 2019-12-03 03:13:44
问题 I have a development webserver hosting as "myhost.local" which is found using Bonjour/mDNS. The server is running avahi-daemon. The webserver also wants to handle any subdomains of itself. Eg "cat.myhost.local" and "dog.myhost.local" and "guppy.myhost.local". Given that myhost.local is on a dynamic ip address from dhcp, is there still a way to route all requests for the subdomains to myhost.local? I'm starting to think it not currently possible... http://marc.info/?l=freedesktop-avahi&m

How to register a service with Mono.ZeroConf?

荒凉一梦 提交于 2019-12-03 01:36:58
I'm trying to test the ZeroConf sample at http://www.mono-project.com/Mono.Zeroconf . I'm running OpenSuse 11 and Mono 2.2. My server code is: using System; using Mono.Zeroconf; namespace zeroconftestserver { class MainClass { public static void Main(string[] args) { RegisterService service = new RegisterService (); service.Name = "test server"; service.RegType = "_daap._tcp"; service.ReplyDomain = "local."; service.Port = 6060; // TxtRecords are optional TxtRecord txt_record = new TxtRecord (); txt_record.Add ("Password", "false"); service.TxtRecord = txt_record; service.Register(); Console

Can Android support Zeroconf/Bonjour over Bluetooth? How about TCP/IP?

那年仲夏 提交于 2019-12-03 00:06:00
On iPhone if I create custom service for example "_test._tcp.local." in Bonjour I can seek/broadcast this service through WiFi or/and Bluetooth. It is possible on Android ? I know that there is jmDNS but from what I understand it works only through WiFi/Network, not Bluetooth. Thanks EDIT by Seva Alekseyev, who offered the bounty: I'm not after workarounds (like Zeroconf sans Bluetooth or Bluetooth sans Zeroconf). I'm after the real thing. Not on bluetooth, because Android currently doesn't support TCP/IP over bluetooth, and Android's native NSD support ( network service discovery ) works over

How to route all subdomains to a single host using mDNS?

余生长醉 提交于 2019-12-02 16:44:04
I have a development webserver hosting as "myhost.local" which is found using Bonjour/mDNS. The server is running avahi-daemon. The webserver also wants to handle any subdomains of itself. Eg "cat.myhost.local" and "dog.myhost.local" and "guppy.myhost.local". Given that myhost.local is on a dynamic ip address from dhcp, is there still a way to route all requests for the subdomains to myhost.local? I'm starting to think it not currently possible... http://marc.info/?l=freedesktop-avahi&m=119561596630960&w=2 You can do this with the /etc/avahi/hosts file. Alternatively you can use avahi-publish

NSdManager ResolveListener Error Code 3: Failure Already active

风格不统一 提交于 2019-12-01 13:34:31
问题 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 of service published at the same time on the network. I started using the sample code provided by Google (https://developer.android.com/training/connect-devices-wirelessly/nsd) but I had fatal errors due to reusing the same resolver object at the

Does lwIP support Zeroconf?

妖精的绣舞 提交于 2019-11-30 08:42:36
I see that lwIP has some AutoIP (aka IPv4LL, aka RFC 3927 ) code, but I can't tell if it does anything higher up in the Zeroconf stack, namely mDNS and DNS-SD (with RFC 2782 ). So, does lwIP support DNS-SD service discovery? If not, would it be easy to port code from a project like Avahi that does (assuming licensing allows it)? No, lwIP does not support any part of Zeroconf except AutoIP. I've not looked at Avahi but porting Apples mDNSResponder to lwIP is quite straightforward. There is one bit of nastiness where you have to pull back the pbuf headers to access the IP header to get the

Bonjour Discovery in Javascript? Maybe?

十年热恋 提交于 2019-11-30 08:28:31
So its a longshot, I'll start with that. Is it/could it be possible to discover bonjour advertised HTTP services in javascript alone? Why would this be useful? Imagine a local service looking after some data (eg your current lat/long), the data is exposed via a webservice and advertised by Bonjour Zeroconf. A (remote) website might want to know your current lat/long and rather than having to know you're running MyGPSserverVersion2 the site could use javascript to search the local bonjour for _Compatible_location_services._tcp and then continue once it had an IP address. If this is impossible