DeqingSun / ESP8266-Dash-Button

Open sourced WiFi Button
http://deqingsun.github.io/ESP8266-Dash-Button/
140 stars 28 forks source link

Local network IPs not working #5

Open manuel-domke opened 7 years ago

manuel-domke commented 7 years ago

Hi,

I built this and am able to connect to my router (ESP-Touch config successful).

Now it doesn't do the HTTP Request. Tried using IP adress first, then with a local hostname, both didn't work. Dont see any request in server logs, LED blinks red twice before power-off. It connects to the wifi and gets an ip (seen from dhcp server log).

I've used the precompiled binary files.

Any ideas on this? I'd guess it might be a problem with the URLParser, which seems to some crazy stuff in handling IPs and hostnames.

manuel-domke commented 7 years ago

I've tested an external hostname and it works great.

So it seems the handling of IPs (at least RFC1918) doesn't work and the DNS relies on some external server maybe?

I will try to fix it myself.

manuel-domke commented 7 years ago

After some testing I found out the problem was in my webserver not serving to the hostname I've used.

Still, connecting to an IP doesn't work.