Page 1 of 1

mDNS does not work

Posted: Mon Sep 10, 2018 9:00 pm
by vtomix
I’m working on an esp32 project in c based on esp-idf and I would like to integrate mdns component. I don’t know what is my mistake but the mdns example project doesn’t work for me. I can’t see the added services with mdns scanner, and i cant ping the device with hostname only with ip addr. Can anyone test it is ok with idf v3.1? I tried it with wifi and ethernet on my custom board but neither works.

Thanks
T

Re: mDNS does not work

Posted: Tue Sep 11, 2018 1:19 pm
by PeterR
I don't know if its fixed yet but the following may be relevant.
viewtopic.php?f=2&t=6166

If you have to fix please let me know, will save me some typing!

Re: mDNS does not work

Posted: Tue Oct 30, 2018 12:35 pm
by MirceaI
Hello,

I'm experiencing similar problems with the mdns example provided by ESP-IDF on Wrower-Kit.
I got mdns responding to requests for 2-3 min and after that it stops working. Pinging on the ip address continues to work fine.
A restart brings everything to life for another few minutes.

Is there any conclusion to this issue? I have also checked the other post but I couldn't find a resolution there neither.

Re: mDNS does not work

Posted: Thu Nov 01, 2018 9:47 am
by ESP_cermak
Hello

Are you running the mdns example from release3.1? No modification, default configuration (besides the wifi credentials)?
This should work normally and indeed it does in my environment. I can browse for advertised services (checked with avahi on linux and dns-sd on macos) as well as resolve published service by avahi/bonjour.

Although some race conditions/bugs have been identified in current master (some will be backported), none of them resemble the symptoms of mdns stopped working after some time. We have seen an issue when network configuration changed, is you connection stable? Please share your commit-id, so I can test the exact version you use. Thanks,

Re: mDNS does not work

Posted: Tue Nov 06, 2018 8:54 pm
by MirceaI
Hello,

I compiled again against a clean IDF release3.1 copy and it now seems to work fine.

Many thanks for the hints!