Uploaded April 2020 | Updated September 2026, 3 weeks ago
This video shows how to advertise a network service with mDNS, using the ESP32 and the Arduino core.
Our network service will be a simple HTTP web server. We will be using the async HTTP web server library to set it up. Nonetheless, it could be something else other than a HTTP server.
Written tutorial with all the source code: techtutorialsx.com/2020/04/18/esp32-advertise-service-with-mdns
pip (Python package installer): pypi.org/project/pip
Zeroconf library: pypi.org/project/zeroconf
Requests library: requests.readthedocs.io/en/master
Commands to install both libraries with pip:
pip install zeroconf
pip install requests
PyCharm IDE: jetbrains.com/pycharm/download/#section=windows
mDNS IDF library documentation: docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/mdns.html
Common network service names: dns-sd.org/serviceTypes.html
Async HTTP web server (written post): techtutorialsx.com/2017/12/01/esp32-arduino-asynchronous-http-webserver
This video shows how to advertise a network service with mDNS, using the ESP32 and the Arduino core.
Our network service will be a simple HTTP web server. We will be using the async HTTP web server library to set it up. Nonetheless, it could be something else other than a HTTP server.
Written tutorial with all the source code: techtutorialsx.com/2020/04/18/esp32-advertise-service-with-mdns
pip (Python package installer): pypi.org/project/pip
Zeroconf library: pypi.org/project/zeroconf
Requests library: requests.readthedocs.io/en/master
Commands to install both libraries with pip:
pip install zeroconf
pip install requests
PyCharm IDE: jetbrains.com/pycharm/download/#section=windows
mDNS IDF library documentation: docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/mdns.html
Common network service names: dns-sd.org/serviceTypes.html
Async HTTP web server (written post): techtutorialsx.com/2017/12/01/esp32-arduino-asynchronous-http-webserver










![ESP32 Arduino: controlling a relay demo [written tutorial in blog]
Demo showing the control of a relay from the ESP32.
This video is just a demo, the tutorial can be found at my blog:
https://techtutorialsx.com/2018/02/17/esp32-arduino-controlling-a-relay/
You can find a lot more tutorials on the ESP32 at my blog:
https://techtutorialsx.com/category/esp32/ ESP32 Arduino: controlling a relay demo [written tutorial in blog]](https://i.ytimg.com/vi/TUd_R5gE514/mqdefault.jpg)