Connect with host name?

stickben
Posts: 12
Joined: Tue Jun 23, 2015 12:28 pm

Connect with host name?

Postby stickben » Tue Jun 23, 2015 12:31 pm

Anyone have any luck connecting to the esp8266 with a host name rather than a IP address? I tried calling wifi_station_set_hostname and espconn_mdns_set_hostname but I can only communicate with the assigned IP, my host name will not resolve in the browser. Any ideas?

tve
Posts: 123
Joined: Sun Feb 15, 2015 4:33 pm

Re: Connect with host name?

Postby tve » Tue Jun 23, 2015 2:50 pm

The hostname is set via DHCP, so it depends on how well your DHCP server talks to your DNS server... Also, if you already have DHCP running you have to stop it, call set_hostname, then restart it.

blubb
Posts: 116
Joined: Mon Jun 22, 2015 5:35 am

Re: Connect with host name?

Postby blubb » Tue Jun 23, 2015 5:37 pm

Are you using Windows? The feature does not work under Windows for me either. Under Linux and Android I can access the module via hostname just fine.

marclesgomz
Posts: 1
Joined: Fri Feb 04, 2022 2:44 pm

Re: Connect with host name?

Postby marclesgomz » Fri Feb 04, 2022 2:48 pm

I have connected with my host name mynordstrom. I have done this

Who is online

Users browsing this forum: No registered users and 186 guests