Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By burkmurray
#21298 Glad to hear it works in IOS!
Does the CaptivePortal example work for you on either Android or IOS?

And do you have
Code: Select all#define DEBUG
uncommented in ESP8266WebServer.cpp? It's not especially verbose, but it'll show responses from the ESP in your serial console.
User avatar
By SwiCago
#21300
burkmurray wrote:Glad to hear it works in IOS!
Does the CaptivePortal example work for you on either Android or IOS?

And do you have
Code: Select all#define DEBUG
uncommented in ESP8266WebServer.cpp? It's not especially verbose, but it'll show responses from the ESP in your serial console.


No, the captive portal example does not work on Android. Only iOS.
Oh good to know, about the DEBUG

EDIT:
For fun, I added some debugging in DNSServer.ccp to see what Android was doing as soon as it connects. This is what it spits out.
Code: Select allDNS responds: 192.168.1.1 for connectivitycheck.android.com
DNS responds: 192.168.1.1 for settings.crashlytics.com
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for android.clients.google.com
DNS responds: 192.168.1.1 for mtalk.google.com
DNS responds: 192.168.1.1 for googleadservices.com
DNS responds: 192.168.1.1 for connectivitycheck.android.com
DNS responds: 192.168.1.1 for settings.crashlytics.com
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for android.clients.google.com
DNS responds: 192.168.1.1 for mtalk.google.com
DNS responds: 192.168.1.1 for googleadservices.com
DNS responds: 192.168.1.1 for connectivitycheck.android.com
DNS responds: 192.168.1.1 for settings.crashlytics.com
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for android.clients.google.com
DNS responds: 192.168.1.1 for android.clients.google.com
DNS responds: 192.168.1.1 for mtalk.google.com
DNS responds: 192.168.1.1 for googleadservices.com
DNS responds: 192.168.1.1 for connectivitycheck.android.com
DNS responds: 192.168.1.1 for settings.crashlytics.com
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for android.clients.google.com
DNS responds: 192.168.1.1 for android.clients.google.com
DNS responds: 192.168.1.1 for mtalk.google.com
DNS responds: 192.168.1.1 for graph.facebook.com
DNS responds: 192.168.1.1 for googleadservices.com
DNS responds: 192.168.1.1 for connectivitycheck.android.com
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for time-a.nist.gov
DNS responds: 192.168.1.1 for android.clients.google.com
DNS responds: 192.168.1.1 for graph.facebook.com
DNS responds: 192.168.1.1 for connectivitycheck.android.com


This repeats over and over and over...and the sickening thing is, I don't even have facebook apps installed. So why is Android even trying to contact facebook???

Also does not work in Windows
Code: Select allDNS responds: 192.168.1.1 for teredo.ipv6.microsoft.com
DNS responds: 192.168.1.1 for teredo.ipv6.microsoft.com
DNS responds: 192.168.1.1 for teredo.ipv6.microsoft.com
DNS responds: 192.168.1.1 for teredo.ipv6.microsoft.com
DNS responds: 192.168.1.1 for teredo.ipv6.microsoft.com
DNS responds: 192.168.1.1 for google.com
DNS responds: 192.168.1.1 for google.com
DNS responds: 192.168.1.1 for google.com
DNS responds: 192.168.1.1 for google.com
DNS responds: 192.168.1.1 for google.com
DNS responds: 192.168.1.1 for blah.com


The google.com portion is when I opened my browser. I even typed in blah.com and nothing
User avatar
By tytower
#21310 Google and Facebook aka microsoft are all after your data as that is what they give the Governments of the world in return for the Governments buying microsoft products . So its probably built in and mostly hidden from you . You have just exposed it.
User avatar
By burkmurray
#21319
For fun, I added some debugging in DNSServer.ccp to see what Android was doing as soon as it connects. This is what it spits out.
...
DNS responds: 192.168.1.1 for connectivitycheck.android.com

Your debug responses are super handy - are you grabbing that from replyWithIP? Mind sharing a code snip?

Also, have you tried plugging connectivitycheck.android.com into a server.on() test?
Code: Select allserver.on("connectivitycheck.android.com", handle_root);


Finally, I've been trying to figure out how to navigate Apple's CNA, and the one thing that consistently works is sending the word "Success" in the head of a message:
Code: Select all"<!DOCTYPE html><html><head><title>Success</title></head><body>"


I've read that Google uses a similar approach - might be worth a shot.