Redirecting everything to Captive Portal when device using Access Point

User avatar
Coffeeye
Posts: 7
Joined: Tue Nov 09, 2021 9:59 am

Redirecting everything to Captive Portal when device using Access Point

Postby Coffeeye » Mon Jan 15, 2024 1:39 pm

Hello!,

I've setup http server on my esp32 and now I'am configuring Access Point.

My goal is that everything my android browser try to connect with,
redirect me to the ip set in :arrow: "esp_netif_set_ip_info and esp_netif_set_dns_info"

How do I do that ?
Becouse now I can only see my http_server when I directly type that IP and a lots of spam
(due to logs from captive portal example) in the console when I try connect to google.com :geek:
Programming in C and JS using ESP-IDF on esp32-d0wd-v3

User avatar
Coffeeye
Posts: 7
Joined: Tue Nov 09, 2021 9:59 am

Re: Redirecting everything to Captive Portal when device using Access Point

Postby Coffeeye » Tue Jan 16, 2024 9:13 am

I managed to make Captive Portal using :arrow: wifi-captive-portal-esp-idf
But idk why it works for sites like google.com
But when I refresh site like bard.google.com it wont open captive portal, ideas ?
Programming in C and JS using ESP-IDF on esp32-d0wd-v3

Who is online

Users browsing this forum: axellin and 95 guests