Chat freely about anything...

User avatar
By anvoice
#21939 Hello,

I just got my ESP8266 up and running on an arduino, and trying to test out its functions. Most of everything seems to work, and AT+CIPSTART successfully connects to external ip addresses on the net. However, I activated a simple python web server on my PC using http.server to test out if I can connect to that using the IP 127.0.0.1 I get a "0,CLOSED" error.

This seems to be the error that comes up whenever an invalid IP address is typed in, so my only guess is that it's not seeing the server within the home network (127.0.0.1 is the internal IP). I know the server is up and running for certain as I can get to it by directly typing the IP and port in the browser.

Does anyone happen to know if there is some simple way to connect to a home web server from the ESP8266 sensor connected to the home wifi network? Might be missing something obvious but I have fairly little experience with this. Thanks for reading.
User avatar
By tytower
#22236 dont know if you realise but you don't need an arduino unless maybe for extra pins or some other .Chip connects direct to your router amd is given an IP address in your network by the dhcp of the router. What you make the chip connect to and do is then up to you.
See the arduinoIDE Examples for ESP8266 and wiki on this page above you