ESP32 mDNS Service Not Discoverable
DodaTech
Updated 2026-06-26
1 min read
In this tutorial, you'll learn about ESP32 mDNS Service Not Discoverable. We cover key concepts, practical examples, and best practices.
The Problem
ESP32 mDNS service is registered but cannot be found by other devices on the network.
Quick Fix
Wrong
MDNS.begin("esp32");
MDNS.addService("http", "tcp", 80);
No device found when browsing for _http._tcp on the network.
Right
if (MDNS.begin("esp32-web")) {
MDNS.addService("http", "tcp", 80);
MDNS.addServiceTxt("http", "tcp", "path", '/");
MDNS.addServiceTxt("http", "tcp", "version", "1.0");
Serial.println("mDNS responder started');
}
mDNS responder started
(Device found as esp32-web.local with service _http._tcp)
Prevention
Use unique hostnames to avoid conflicts. Add TXT records for service metadata. Ensure devices are on the same subnet. Multicast DNS requires network support (most home networks work). Call MDNS.update() periodically.
DodaTech engineers apply these same patterns across Doda Browser, DodaZIP, and Durga Antivirus Pro for production IoT reliability.
FAQ
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro