Post your best Lua script examples here

User avatar
By victorssantos
#23197 Hi.

I'm running a web server on my ESP-12.

Is it possible, if my ESP is running in AP mode, to redirect user to the same IP if it try to access any IP?

For exemple:
My ESP is running with IP 192.168.1.1.
If the user try to access http://192.168.1.123 it will be redirected to 192.168.1.1.

If the user try to connect to any IP it will be redirected to the ESP IP.


Thank you.
User avatar
By Kosi_101
#23202 As far as I am aware this is indeed possible. It involves using dns to redirect clients. I have seen this done on many projects. In particular wifi throwie projects. Below is a link on how to setup the redirecting
http://hackaday.com/2015/05/03/esp8266-wifi-throwies/