Skip to content

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.
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

### What is mDNS and how is it different from DNS?

mDNS resolves hostnames on the local network without a DNS server. It uses multicast IP 224.0.0.251 and works without configuration.

Can I use mDNS across VLANs?

mDNS packets are link-local and do not cross subnets by default. Use an mDNS gateway or reflector for multi-subnet resolution.

How do I test mDNS from a computer?

Use ping esp32.local on macOS/Linux or dns-sd -B _http._tcp on macOS. Windows requires Bonjour services installed.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro