Page 1 of 1

Support for captive portal using https or TSL query?

Posted: Wed Apr 27, 2022 8:25 pm
by ldudel
I'm creating a captive portal to receive the user's home wifi credentials. As recommended, I set up a DNS server that reroutes all requests to my access point. This works fine with iPhone and Windows: both send well-formed UDP packages. However, the ESP doesn't receive any UDP information from the Android phone. It is my understanding that Android uses HTTPS or TSL for DNS, and that this is the root cause for the failure.

Is there any support in ESP-IDF (or ESP-Arduino) for working with devices that don't use UDP for DNS requests? Does anyone have any workarounds for this?

I would really appreciate any pointers.

Re: Support for captive portal using https or TSL query?

Posted: Thu Apr 28, 2022 6:24 am
by ESP_igrr
As far as I know, Android uses DHCP options for captive portal detection. This approach is described here: https://datatracker.ietf.org/doc/html/d ... rfc7710bis
ESP-IDF provides a function dhcps_set_option_info which can be used to set additional DHCP options. Please give it a try, if it works I think it would be a good idea to add this to esp-idf captive portal example.