Join Wi-Fi

mDNS LAN discovery

Find the device on the LAN without memorising its IP.

Join Wi-Fi Find on LAN ESP32 Wi-Fi parts

Official path: examples/protocols/mdns

01 Overview

Advertise hostname and service.

  • Use when: local web UI, lab debug.
  • Skip when: discovery across the public internet.

02 Hardware

  • Wi-Fi only. If the site blocks multicast, mDNS dies — keep an IP fallback.

03 Software flow

1. Start mDNS after join.

2. Set hostname and service type.

3. Usually paired with the HTTP server.

04 Core points

  • Names must be unique per unit.
  • Custom work: discovery plus provisioning portal.

中文

连上 Wi-Fi

mDNS 局域网发现

不用记 IP,电脑和手机在局域网里找到设备。

连上 Wi-Fi 局域网发现 ESP32 Wi-Fi parts

官方路径: examples/protocols/mdns

01 项目概述

广播主机名和服务。

  • 适用: 本地网页、工程调试。
  • 不适用: 跨公网发现。

02 项目硬件描述

  • 只需 Wi-Fi。现场若禁组播,mDNS 会失败,要有 IP 兜底。

03 项目软件流程描述

1. 联网后启动 mDNS。

2. 设 hostname 和服务类型。

3. 与 HTTP Server 搭配最常见。

04 项目核心点

  • 名字必须按设备唯一,否则现场撞名。
  • 可定制: 发现协议、与配网门户结合。