ESP8266 Developer Zone The Official ESP8266 Forum 2016-08-11T17:07:30+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2527 2016-08-11T17:07:30+08:00 2016-08-11T17:07:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2527&p=8390#p8390 <![CDATA[Re: Ping ESP using hostname]]> Then I guess mDNS is the best option.
Because I would like to make ESP a station connecting to a gateway, getting IP through DHCP.
This is why I prefer to use the hostname to access, so that no longer need to know the IP address, once I connected to the same network.

Thank you very much.

Statistics: Posted by teckhaokoh — Thu Aug 11, 2016 5:07 pm


]]>
2016-08-10T10:28:28+08:00 2016-08-10T10:28:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2527&p=8357#p8357 <![CDATA[Re: Ping ESP using hostname]]>
You will have to set up mDNS or you always have the option of adding a custom DNS record to your devices. If you are pinging your ESP8266 using Windows or Linux, please look up articles online on how to add custom DNS record.
If you added
192.168.3.66 abc.xyz.mnp
Then the address abc.xyz.mnp will be resolved as 192.168.3.66 by the accessing device.

Statistics: Posted by Guest — Wed Aug 10, 2016 10:28 am


]]>
2016-08-08T17:00:14+08:00 2016-08-08T17:00:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2527&p=8328#p8328 <![CDATA[[SOLVED] Ping ESP using hostname]]>
Recently I'm doing development on ESP8266, and I'm trying to get the IP address by pinging the hostname.
I set the hostname using wifi_station_set_hostname().

I'm able to get the hostname by pinging the ip address, but I couldn't get the IP address by pinging the hostname.
Anyone face the same issue before?
Any idea?

Thanks!!!

Statistics: Posted by teckhaokoh — Mon Aug 08, 2016 5:00 pm


]]>