-->
Page 5 of 15

Re: Captive Portal or force all webcalls to ESP8266 AP IP ad

PostPosted: Mon Jun 22, 2015 6:38 pm
by burkmurray
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.

Re: Captive Portal or force all webcalls to ESP8266 AP IP ad

PostPosted: Mon Jun 22, 2015 7:09 pm
by SwiCago
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

Re: Captive Portal or force all webcalls to ESP8266 AP IP ad

PostPosted: Mon Jun 22, 2015 10:15 pm
by tytower
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.

Re: Captive Portal or force all webcalls to ESP8266 AP IP ad

PostPosted: Mon Jun 22, 2015 11:24 pm
by burkmurray
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.