Support for captive portal using https or TSL query?

ldudel
Posts: 9
Joined: Thu Jun 24, 2021 11:23 pm

Support for captive portal using https or TSL query?

Postby ldudel » Wed Apr 27, 2022 8:25 pm

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.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

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

Postby ESP_igrr » Thu Apr 28, 2022 6:24 am

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.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 382 guests