ESP32: mDNS address resolution

Sdílet
Vložit
  • čas přidán 7. 08. 2024
  • In this video we will learn how to use mDNS to resolve the address of a HTTP web server hosted by the ESP32.
    This means that we don't need to know the actual IP address of the ESP32 to reach the server it is hosting since mDNS will allow us to do the resolution of a known hostname into the IP address of the device.
    Another big advantage of mDNS is that it doesn't need a dedicated infra-structure for the name resolution, like a traditional DNS server.
    You can get the complete code from this written tutorial at my blog: techtutorialsx.com/2020/04/17...
    Setting up HTTP web server (written post): techtutorialsx.com/2017/12/01...
    Setting up HTTP web server (video): • ESP32 Arduino HTTP web...
    IDF mDNS documentation: docs.espressif.com/projects/e...
    Bounjour (for Windows): support.apple.com/downloads/b...
    Avahi (for Linux): github.com/lathiat/avahi
  • Věda a technologie

Komentáře • 11

  • @tycstahX
    @tycstahX Před 4 lety

    Can the async library do captive portals?

  • @salmanalfarish7999
    @salmanalfarish7999 Před 4 lety

    is there anything I can do to redirect a website using esp8288?

  • @manuelbergmann9222
    @manuelbergmann9222 Před 3 lety

    Do you by chance tested if that works for Android/iPhone out of the box? I want to create an AP with my phone and use mDNS to resolve the ESP32 which connects to it.

    • @manuelbergmann9222
      @manuelbergmann9222 Před 3 lety

      I will answer that myself. No. Android as the only platform does not and issues have been flooded for at least 8 years now, with zero reaction from Google. Most prominent issue: issuetracker.google.com/issues/140786115

  • @leslymontufar9003
    @leslymontufar9003 Před 4 lety

    I already have a website, is it possible to display the information of ESP32 (temperature ...) in my own DNS? And in real time?

    • @joserosendosotoreza1184
      @joserosendosotoreza1184 Před 3 lety

      You can use Mqtt protocol or websockets for realtime connection for to connect the esp to your website, that depends if your website permits to supports those protocols, i hope the answer helps you

  • @Nobody-Nowhere
    @Nobody-Nowhere Před 3 lety +1

    Does this work in AP mode?

    • @cmxpotato
      @cmxpotato Před 3 lety

      I'm wondering this too. I can't get mDNS to work unless I'm doing something wrong.

  • @alvaroromanroyo6414
    @alvaroromanroyo6414 Před 3 lety

    I am using a ESP32 camera. I don`t know the reason why but it does not even upload the code, any idea why?