Skip to content

Commit d0a0cd9

Browse files
authored
Fix for Android phones
Android phones have a operatin system feature that will display a captive portal shortly after connection to a wifi that requires a log in. This is only triggered if you dont use an adress in the private range! This is a new request based on esp8266#5529 and espressif/arduino-esp32#1037 it seems that Android phones will not display the autoredict page if it is in the private IP Range. I found this fix in the two issues above and tried it with several android phones, non of them displayed it bevore: Xiaomi Redmi Note 7 (miui 10.3 Android 7) Samsung Galaxy A7 (Android 8.0.0) Amazon Kindle Fire 7 (Fire OS 5.6.4.0 Android 5.1) I think for easy access to newcomers this should be changed so it works instantly!
1 parent 8859b81 commit d0a0cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/DNSServer/examples/CaptivePortal/CaptivePortal.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <ESP8266WebServer.h>
44

55
const byte DNS_PORT = 53;
6-
IPAddress apIP(192, 168, 1, 1);
6+
IPAddress apIP(172, 217, 28, 1); //Use an IP-Adress in the 172.217 Range to enable Popup on Android devices
77
DNSServer dnsServer;
88
ESP8266WebServer webServer(80);
99

0 commit comments

Comments
 (0)