Page 1 of 2

Advertizing through mDNS

Posted: Tue Jan 17, 2017 4:45 am
by kolban
It seems that the latest ESP-IDF provides the first taste of mDNS support. I tried to study the docs on mDNS in order to setup my ESP32 as an mDNS advertizer but couldn't get my mDNS browsers to see it. So next I tried the sample that can be found here:

https://github.com/espressif/esp-idf/tr ... ns_example

This sample sets up the ESP32 as both an advertizer and a browser. The browser component seems to work, but still no obvious luck in having external mDNS browsers see it. I tried two distinct browsers ...

1) avahi-browse -all running on Linux
and
2) https://hobbyistsoftware.com/bonjourbrowser running on Windows 10

Both could see my other mDNS components in my network (Cloud drive, Chromecast etc) ... but neither see the ESP32.

Has anyone gotten their ESP32s visible to mDNS browsers yet?

Re: Advertizing through mDNS

Posted: Tue Jan 17, 2017 6:02 am
by WiFive
Can see it in zeroconf browser for android under _arduino and http server and samba share.

Re: Advertizing through mDNS

Posted: Sun Feb 12, 2017 10:25 pm
by MalteJ
It looks like the mdns library does not add a PTR to your service to _services._dns-sd._udp.local

see https://developer.apple.com/library/con ... index.html

Looks like a bug!

Malte

Re: Advertizing through mDNS

Posted: Wed Mar 08, 2017 10:34 am
by js1234
Any update on this? Should we create an issue about this?

Re: Advertizing through mDNS

Posted: Wed Mar 08, 2017 11:51 am
by ESP_Sprite
If you don't mind, I'd appreciate it. We mostly try to keep track of what people on the forums report, but if you report it on Gitlab we can track it better.

Re: Advertizing through mDNS

Posted: Fri Mar 10, 2017 11:12 pm
by kolban
It may be that Mr negativekelvin has already fixed the issue ... there appears to be an open Pull Request ... see:

https://github.com/espressif/esp-idf/pull/340

There isn't much commentary about it but it "seems" to talk about what Mr Maltej was discussing.

Re: Advertizing through mDNS

Posted: Sun Mar 12, 2017 11:38 am
by MalteJ
The mdns component from the esp-idf SDK is missing a lot to be RFC 6762 compliant.
E.g. different query types or probing and announcing as described in section 8:
https://tools.ietf.org/html/rfc6762#section-8

Probably it would be best to port Apple's mDNSResponder to ESP32:
https://opensource.apple.com/source/mDNSResponder/

Best,
Malte

Re: Advertizing through mDNS

Posted: Sun Mar 12, 2017 8:24 pm
by WiFive
Yes it is leaving a lot out. Sometimes you just want smallest code barely enough to be functional.

Re: Advertizing through mDNS

Posted: Sun Apr 02, 2017 4:55 pm
by kolban
Malte,
I'm also trying to get my mind around mDNS on ESP32 and having a lot of problems. I'm trying to "locate" an ESP32 that I believe I have setup for mDNS but can't locate it via avahi nor Bonjour. I have the feeling that you are the resident expert in this area. Do you have a write up on your discoveries? If not, would you be willing to work with me to learn what you learned and I'll have a bash at writing up stories to make it more consumable (assuming you have it working in some fashion).

Available of #ESP32 IRC or medium of choice.

Neil

Re: Advertizing through mDNS

Posted: Sun Apr 02, 2017 4:56 pm
by WiFive
Do you have the latest IDF with the patch you linked above?