I have created an AP (Access Point) server for ESP32 in the Arduino IDE. I have successfully installed the AsyncWebServer and DNSServer libraries. However, when mobile devices connect to the AP network, they receive a "no internet" warning and require manual confirmation to proceed. My goal is to enable these devices to connect to the network without any confirmation or the need for a captive portal window.
In order to address this issue, I have read several articles suggesting various solutions, such as setting the IP address to 8.8.8.8 and responding with "Success" (plain text) when the request "http://captive.apple.com/hotspot-detect.html" is received. Additionally, it is recommended to respond with "HTTP status code 204 with an empty body" when the request "http://connectivitycheck.gstatic.com/generate_204" is made.
I have implemented all of these methods, but I am still unable to bypass the "connected without internet" warning. The phones prevent the connection without selecting the "connect" option, requiring manual confirmation each time to use the application I developed for them. I am currently in search of a solution for this problem. I hope you can assist me.
Thank you for your help.
I tried several methods to resolve the issue. Here is a summary of what I tried, what I expected to happen, and the actual results:
Set the IP address to 8.8.8.8: I expected that setting the IP address to 8.8.8.8 would enable automatic connection without the need for manual confirmation. However, this did not bypass the "connected without internet" warning, and devices still required confirmation.
Responded with "Success" to "http://captive.apple.com/hotspot-detect.html": Based on suggestions, I expected that responding with "Success" (plain text) to this request would allow devices to connect seamlessly. Unfortunately, this method did not resolve the issue, and the warning persisted.
Responded with "HTTP status code 204 with an empty body" to "http://connectivitycheck.gstatic.com/generate_204": I followed recommendations and anticipated that responding with this status code would eliminate the need for confirmation. However, even after implementing this approach, the warning message persisted, and devices still required manual confirmation.
Despite trying these methods, I have been unable to overcome the "connected without internet" warning and establish automatic connection without confirmation.
Enabling Internet Access for Mobile Devices without Manual ConfirmationYou cannot enable access if there isnt.