user27953: I want to assign a hostname to a ESP8266 access point, so that the clients can reach a webserver on this access point without caring about the IP address of the AP. How can that be done?
I tried using WiFi.hostname("something"); but that does not work with AP mode. Can this somehow be done?
UPDATE
Using mDNS seems to work in this AP mode too. However, I am still curious to know if this is possible to access the webserver on the AP using the hostname and not mDNS.

user70020: I'm unclear on the distinction being drawn here:

the hostname and not mDNS

mDNS, like DNS, and hostname lists are all things a "resolver" would use to map a "hostname" to an IP address.
If you mean "how do I use DNS instead of mDNS?", you'd need to have your ESP8266 running a DNS server.  And for clients to be aware of it you'd probably have to be running a DHCP server as well.
By the way, the examples list for the ESP8266 Arduino package contains a DNSServer/DNSServer example that appears to do exactly this.  I have just tested it.
This is the exact code I ran out of the ESP8266 Arduino github repo at the tag for the version of the ESP8266 Arduino core I tested it on, 2.7.4.

27953: <p>I want to assign a <em>hostname</em> to a ESP8266 <strong>access point</strong>, so that the clients can reach a webserver on this access point without caring about the IP address of the AP. How can that be done?</p>
<p>I tried using <code>WiFi.hostname(&quot;something&quot;);</code> but that does not work with AP mode. Can this somehow be done?</p>
<h3>UPDATE</h3>
<p>Using <em>mDNS</em> seems to work in this AP mode too. However, I am still curious to know if this is possible to access the webserver on the AP using the <em>hostname</em> and not <em>mDNS</em>.</p>
 70020: <p>I'm unclear on the distinction being drawn here:</p>
<blockquote>
<p>the hostname and not mDNS</p>
</blockquote>
<p>mDNS, like DNS, and hostname lists are all things a &quot;resolver&quot; would use to map a &quot;hostname&quot; to an IP address.</p>
<p>If you mean &quot;how do I use DNS instead of mDNS?&quot;, you'd need to have your ESP8266 running a DNS server.  And for clients to be aware of it you'd probably have to be running a DHCP server as well.</p>
<p>By the way, the examples list for the ESP8266 Arduino package contains a DNSServer/DNSServer example that appears to do exactly this.  I have just tested it.</p>
<p><a href="https://github.com/esp8266/Arduino/blob/2.7.4/libraries/DNSServer/examples/DNSServer/DNSServer.ino" rel="nofollow noreferrer">This is the exact code I ran</a> out of the ESP8266 Arduino github repo at the tag for the version of the ESP8266 Arduino core I tested it on, 2.7.4.</p>
