Chat freely about anything...

User avatar
By noventix
#87559 Hey all

I have been able to configure my ESP8266 to create an AP and launch a Captive Portal web page. So far all good.

However, when a user connects and I present the Captive Portal page I want to send the user to an external web page. Because I have now connected them to my WiFi - they effectively have no Internet connection. So I can offer a link to somewhere else - but that link doesn't work since the active WiFi connection doesn't really connect anywhere beyond my ESP8266 device.

I guess I should be running a NAT router? But all options I have seen are compiled firmware downloads.

Any help would be very appreciated.
User avatar
By noventix
#87609 Ok I am going to try this a bit differently. I have found code that will create a WiFi range extender. The link is below. What I would like to do is modify this so that when someone connects it serves up a Captive Portal. Like what happens when you connect to WiFi in a hotel. It presents a web page where you have to validate who you are.

I have Captive Portal examples that create a DNS server and directs all requests back to the device. I am just not sure how to do that with this code. Any experts who can solve this?


https://github.com/esp8266/Arduino/blob ... r-NAPT.ino
User avatar
By Oscar Fuentes
#92025 Hi!! I have the same problem. Did you find any solution?


noventix wrote:Ok I am going to try this a bit differently. I have found code that will create a WiFi range extender. The link is below. What I would like to do is modify this so that when someone connects it serves up a Captive Portal. Like what happens when you connect to WiFi in a hotel. It presents a web page where you have to validate who you are.

I have Captive Portal examples that create a DNS server and directs all requests back to the device. I am just not sure how to do that with this code. Any experts who can solve this?


https://github.com/esp8266/Arduino/blob ... r-NAPT.ino