Setting up domain name in softAP
Posted:
Tue Sep 15, 2015 2:56 pm
by awwende
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?
Re: Setting up domain name in softAP
Posted:
Sat Oct 31, 2015 7:53 am
by Silux
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);
}
}