Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By brutzler
#27867 Hi,

using my ESP-12E as little Webserver, I decided to use static IP instead of DHCP.
Is it possible to give the esp a definedhostname?
Actually now, I do not see any hostname on scanning with netscan

Edit: I have found that there is a possibility with
Code: Select allconst char* host = "myESP";
mdns.begin(host, WiFi.localIP()


using this, I see my Webserver with "myESP.local"
But scanning with netscan, there still is no hostname to see :-(
User avatar
By schufti
#27916 this is because a)
DNS and mDNS are two different things.

and b)
the traditional DNS knows two modes for populating tables: dynamic by dhcp or static via entry by admin.
the third method only exists with M$ Windows DNS and clients: automatically add client info to DNS.

usually your WLAN router should give you a way to configure a fixed dhcp entry (via mac) for your esp8266 that most likely will also take a "hostname"
User avatar
By brutzler
#27954 Funny,

after certain time, I see after scanning with netscan the hostname I assumed with mdns.begin(host,...)
But in the Router-table there is only an entry with ESP-AABBCC (last part of MAC-address)
Additional I changed tis entry in the table to the wanted hostname.
Then nslookup was fine :-)