-->
Page 1 of 2

ESP 8266 access by hostname not reliable ?

PostPosted: Mon Dec 26, 2016 6:15 pm
by sibianul
Hello guys,

now in this vacation I started to play again with arduino module, I had a few Wemos D1 mini boards and for the beggining I wanted to be able to turn on or off a long led strip I have in my office.

I started from the CaptivePortalAdvanced example as I like alot to not hardcode the settings, but be able to save them in the EEPROM.

I modified the homepage look and I'm very happy how it turned out, but I'm still having some problems because I don't really understand a few things (getting the server response and saving it to a varible), but first I wanted to start talking about the hostname. From the phone I first connected to the board and from another iPhone inside my wifi, I can access the ESP by http://esp8266.local but on my PC, in chrome browser I can't, only by the IP address, also on 2 android phones I can't access it by hostname, only by IP. Is this normal ?

I wanted to be able to add "nodes" to the network, and all nodes to send sensor data to the "MAIN" ESP module, which also it's sensor data to a mysql server, but the nodes I connected to the MAIN ESP module cant access the esp by esp8266.local.. only by the IP address.

I haven't tried to connect the nodes to my main router just yet, I will try tomorrow to see if I will have any luck.

My ideea was to be able to add nodes without hardcodding any IP address in the program, but let all the nodes post data to http://esp8266.local, but it seems it doesn't work ...

Anyone around to give me some help?

Here are some screenshots with the ESP interface (I haven't saved the css and js files in the SPIFFS, this will be a feature update)

home_dashboard (1).jpg


statuspage.jpg


Here's a short video with the button that turns my light on and off


Re: ESP 8266 access by hostname not reliable ?

PostPosted: Mon Dec 26, 2016 8:02 pm
by danbicks
@sibianul, nice web interface, any chance of posting the code, I would like to see how you have obtained a nice clean interface.

Thanks

Dans

Re: ESP 8266 access by hostname not reliable ?

PostPosted: Mon Dec 26, 2016 9:01 pm
by mrburnette

Re: ESP 8266 access by hostname not reliable ?

PostPosted: Tue Dec 27, 2016 7:57 am
by Cosmic Mac
If you are under Windows, just install Bonjour service to get Zeroconf support:
https://support.apple.com/kb/DL999

See https://learn.adafruit.com/bonjour-zeroconf-networking-for-windows-and-linux/overview for details.

Cheers