mDNS does not work

vtomix
Posts: 6
Joined: Mon Sep 10, 2018 8:25 pm

mDNS does not work

Postby vtomix » Mon Sep 10, 2018 9:00 pm

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

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: mDNS does not work

Postby PeterR » Tue Sep 11, 2018 1:19 pm

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!
& I also believe that IDF CAN should be fixed.

MirceaI
Posts: 2
Joined: Tue Oct 30, 2018 12:26 pm

Re: mDNS does not work

Postby MirceaI » Tue Oct 30, 2018 12:35 pm

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.

ESP_cermak
Posts: 69
Joined: Thu Nov 01, 2018 8:32 am

Re: mDNS does not work

Postby ESP_cermak » Thu Nov 01, 2018 9:47 am

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,

MirceaI
Posts: 2
Joined: Tue Oct 30, 2018 12:26 pm

Re: mDNS does not work

Postby MirceaI » Tue Nov 06, 2018 8:54 pm

Hello,

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

Many thanks for the hints!

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 84 guests