ESPAsyncWebServer icon indicating copy to clipboard operation
ESPAsyncWebServer copied to clipboard

Request on hostname

Open schuppeste opened this issue 1 year ago • 1 comments

Hi, i cant serve Files like "index.html" as Hostname. Only as IP and full name of File "index.html" or "index.htm"

my esp32 matches Hostname "Switcher" and in Network "switcher.fritz.box".

I can only Request Files "192.168.178.21/index.html" , how i can access my Index File on "switcher.fritz.box".

Tried several different attempts.

schuppeste avatar Nov 15 '23 14:11 schuppeste

mDNS (a.k.a. Bonjour) must be enabled in your code

https://forum.arduino.cc/t/help-understanding-mdns-on-esp32/1026655

https://github.com/espressif/arduino-esp32/blob/master/libraries/ESPmDNS/examples/mDNS_Web_Server/mDNS_Web_Server.ino

Belleson avatar Nov 17 '23 22:11 Belleson