Post topics, source code that relate to the Arduino Platform

User avatar
By awwende
#29103 I would like to view my HTML page at "myawesomepage.com" instead of 192.168.4.1. I'm setting it up as an AP, but would like to do so, to make it easier to people that are less computer savy or can't remember an ip. Is it possible to do this?
User avatar
By Silux
#32671 It's possible to set up a mDSN server, it will respond to URLs like esp.local .
It doesn't work if the device doesn't look for local domains. It works on Linux desktops.
in the top of the sketch
Code: Select all#include <ESP8266mDNS.h>
MDNSResponder mdns;

in setup()
Code: Select allif (!mdns.begin("esp", WiFi.localIP())) {
    Serial.println("Error setting up MDNS responder!");
    while(1) {
      delay(1000);
    }
  }