-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mdns not working in bridge example (IDFGH-14440) #733
Comments
This should work independently on both interfaces, but won't necessarily forward multicasts (mdns datagrams) across interfaces.
You mean that it doesn't work on a single netif or across netifs? |
@david-cermak It works when the dhcp servers are separate for both interface (not a bridge configuration). But when only 1 dhcp server is used for both the interfaces means both interface netifs are glued together to make a single one (Bridge configuration). Mdns does not work on that. |
In general, you just need to add an address to the forwarding database, but this should be handled automatically for multicasts. |
@david-cermak I haven't used avahi or dns-sd yet. Just simply browsing with this url |
Could you please confirm that you're seeing something like this:
so that the ESP actually responds, but there's this destination unreachable packet?
depends on your platform, I think it should typically work on mac, but might not on windows. anyway, if this is the case, i'll have to fix it, mdns should work with one-shot queries, too. |
@david-cermak I'm seeing this when it's not working. By the way i have figured out the issue. The mdns_netif_action needs to be called when esp32 has assigned the ip to client. Now the domain is getting resolved in the browser.
|
Answers checklist.
General issue report
ESP-IDF Version: v5.3.1
Project: Bridge Example
I am trying to run mDNS in a bridge configuration, but it appears to be non-functional.
Initially, I used the default configurations:
However, it did not work as expected.
Next, I registered the bridge network interface using
mdns_register_netif
and called themdns_netif_action
function, but the output remained the same. I also increased the maximum number of interfaces:After that, I disabled the predefined network interfaces and tried again by registering only the bridge network interface:
Despite these changes, mDNS still does not seem to work.
Question:
Is mDNS support for the bridge configuration not implemented, or am I missing something?
Code
The text was updated successfully, but these errors were encountered: