[GH-ISSUE #841] Captive Portal does't work on Android devices... #706

Open
opened 2026-02-28 01:26:41 +03:00 by kerem · 8 comments
Owner

Originally created by @e-music on GitHub (Mar 4, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/841

Hi,

I tried on many different devices, but Captive Portal doesn't work on any of my Android devices. Only on my iPhone, the config portal immediately comes up as soon as the phone is connected to the ESP8266 AP.

Any advice?

Thanks

Originally created by @e-music on GitHub (Mar 4, 2019). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/841 Hi, I tried on many different devices, but Captive Portal doesn't work on any of my Android devices. Only on my iPhone, the config portal immediately comes up as soon as the phone is connected to the ESP8266 AP. Any advice? Thanks
Author
Owner

@ghost commented on GitHub (Mar 5, 2019):

I noticed this on a stock Samsung Galaxy S9+ running Android 8.1, the "Sign On" page isn't brought up automatically, but I can't reproduce it on my LineageOS 15.1 (Oreo) or LineageOS 16.0 (Pie).

Do you have captive portal detection disabled? What Android devices (make, model, Android version) have you tried it on?

<!-- gh-comment-id:469530868 --> @ghost commented on GitHub (Mar 5, 2019): I noticed this on a stock Samsung Galaxy S9+ running Android 8.1, the "Sign On" page isn't brought up automatically, but I can't reproduce it on my LineageOS 15.1 (Oreo) or LineageOS 16.0 (Pie). Do you have captive portal detection disabled? What Android devices (make, model, Android version) have you tried it on?
Author
Owner

@tablatronix commented on GitHub (Mar 5, 2019):

The latest on this is that, android (some versions) either have a sandboxed dns system, or use hardcoded google dns 8.8.8.8 and ignores our captive portal there is an issue open in esp arduino if you want to find it and read the comments.

<!-- gh-comment-id:469701285 --> @tablatronix commented on GitHub (Mar 5, 2019): The latest on this is that, android (some versions) either have a sandboxed dns system, or use hardcoded google dns 8.8.8.8 and ignores our captive portal there is an issue open in esp arduino if you want to find it and read the comments.
Author
Owner

@ghost commented on GitHub (Mar 5, 2019):

Seems like https://github.com/espressif/arduino-esp32/issues/1037 is what you're referring to?

<!-- gh-comment-id:469725681 --> @ghost commented on GitHub (Mar 5, 2019): Seems like https://github.com/espressif/arduino-esp32/issues/1037 is what you're referring to?
Author
Owner

@e-music commented on GitHub (Mar 5, 2019):

@h4waii
Yes, exactly the same issue!
I tried on Samsung J5 Prime, S8, and Android Tablet. All with the same result!

<!-- gh-comment-id:469755692 --> @e-music commented on GitHub (Mar 5, 2019): @h4waii Yes, exactly the same issue! I tried on Samsung J5 Prime, S8, and Android Tablet. All with the same result!
Author
Owner

@ghost commented on GitHub (Mar 6, 2019):

@e-music Setting 8.8.8.8 as AP IP seems to work around this for me. WiFiManager.setAPStaticIPConfig(IPAddress(8,8,8,8), IPAddress(8,8,8,8), IPAddress(255,255,255,0));
before calling autoConnect() and see how you fare.

<!-- gh-comment-id:469934228 --> @ghost commented on GitHub (Mar 6, 2019): @e-music Setting 8.8.8.8 as AP IP seems to work around this for me. `WiFiManager.setAPStaticIPConfig(IPAddress(8,8,8,8), IPAddress(8,8,8,8), IPAddress(255,255,255,0));` before calling `autoConnect()` and see how you fare.
Author
Owner

@tablatronix commented on GitHub (Mar 6, 2019):

Thanks all, I do not have android to test on

<!-- gh-comment-id:469950337 --> @tablatronix commented on GitHub (Mar 6, 2019): Thanks all, I do not have android to test on
Author
Owner

@e-music commented on GitHub (Mar 6, 2019):

@h4waii
Thank you. I will try it asap!

<!-- gh-comment-id:470246381 --> @e-music commented on GitHub (Mar 6, 2019): @h4waii Thank you. I will try it asap!
Author
Owner

@e-music commented on GitHub (Mar 6, 2019):

@h4waii
WOW!! Changing the IP has solved the issue and now the Captive Portal works on all Android devices!
Thank you very much for your help!

<!-- gh-comment-id:470303328 --> @e-music commented on GitHub (Mar 6, 2019): @h4waii WOW!! Changing the IP has solved the issue and now the Captive Portal works on all Android devices! Thank you very much for your help!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#706
No description provided.