From here
Hi, I am experimenting the issue. The only fix I found is to modify startConfigPortal, by adding
WiFi.mode(WIFI_OFF);
delay(2000);
just before
WiFi.mode(WIFI_AP_STA);
A lower delay might work.
When I do that, I get 100% of the time 192.168.4.1
Otherwise, I get very often 192.168.244.1
Looks like it’s related to ESP8266 coreBest,
Jean