-->
Page 1 of 1

Captive Portal - launch app

PostPosted: Tue Jun 16, 2020 8:09 pm
by noventix
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.

Re: Captive Portal - launch app

PostPosted: Sun Jun 21, 2020 5:55 pm
by noventix
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

Re: Captive Portal - launch app

PostPosted: Mon Aug 09, 2021 7:36 am
by Oscar Fuentes
Hi!! I have the same problem. Did you find any solution?

Re: Captive Portal - launch app

PostPosted: Mon Aug 09, 2021 7:39 am
by Oscar Fuentes
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