Skip to content
This repository was archived by the owner on Mar 10, 2019. It is now read-only.
This repository was archived by the owner on Mar 10, 2019. It is now read-only.

Samsung Android devices do not prompt to Login to Network #7

@tripflex

Description

@tripflex

Testing on Samsung Galaxy S7, does not show "Login to Network" prompt, even though 302 redirect is sent when querying /generate_204 ...

On device it shows "Testing internet connection...." and then when editing wifi network shows "Manage router" but never shows login prompt.

Wondering if these devices expect a different kind of response to the /generate_204, or maybe the "Testing internet connection..." has something to do with it (since we reply with DNS query for anything) and maybe it thinks there "might" be internet connection since it's able to get a DNS response ... need to do more testing

[Aug 31 11:18:09.637] I (341188) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2
[Aug 31 11:18:09.645] event_handler        event: 17
[Aug 31 11:18:12.293] dns_ev_handler       DNS A Query for connectivitycheck.gstatic.com sending IP 192.168.4.1
[Aug 31 11:18:12.301] dns_ev_handler       DNS A Query for connectivitycheck.gstatic.com sending IP 192.168.4.1
[Aug 31 11:18:12.311] dns_ev_handler       DNS A Query for epdg.epc.att.net sending IP 192.168.4.1
[Aug 31 11:18:12.320] dns_ev_handler       DNS A Query for clients3.google.com sending IP 192.168.4.1
[Aug 31 11:18:12.805] dns_ev_handler       DNS A Query for www.google.com sending IP 192.168.4.1
[Aug 31 11:18:13.265] dns_ev_handler       DNS A Query for connectivitycheck.gstatic.com sending IP 192.168.4.1
[Aug 31 11:18:13.274] dns_ev_handler       DNS A Query for connectivitycheck.gstatic.com sending IP 192.168.4.1
[Aug 31 11:18:13.713] dns_ev_handler       DNS A Query for www.google.com sending IP 192.168.4.1
[Aug 31 11:18:17.301] dns_ev_handler       DNS A Query for epdg.epc.att.net sending IP 192.168.4.1
[Aug 31 11:18:17.319] dns_ev_handler       DNS A Query for clients3.google.com sending IP 192.168.4.1
[Aug 31 11:18:17.356] mg_lwip_accept_cb    0x3ffb70f8 conn 0x3ffb8c18 from 192.168.4.2:33058
[Aug 31 11:18:17.363] mg_if_accept_new_con 0x3ffb70f8 0x3ffb8ce4 1073450764 0
[Aug 31 11:18:17.369] mg_if_accept_tcp_cb  0x3ffb8ce4 tcp://192.168.4.2:33058
[Aug 31 11:18:17.375] mgos_http_ev         0x3ffb8ce4 HTTP connection from 192.168.4.2:33058
[Aug 31 11:18:17.383] mg_http_is_authorize /generate_204  2 1
[Aug 31 11:18:17.387] redirect_ev_handler  Redirecting to http://setup.device.portal for Captive Portal
[Aug 31 11:18:17.458] mg_lwip_accept_cb    0x3ffb70f8 conn 0x3ffb8ce4 from 192.168.4.2:33059
[Aug 31 11:18:17.465] mg_if_accept_new_con 0x3ffb70f8 0x3ffdfe3c 1073450736 0
[Aug 31 11:18:17.471] mg_if_accept_tcp_cb  0x3ffdfe3c tcp://192.168.4.2:33059
[Aug 31 11:18:17.477] mgos_http_ev         0x3ffdfe3c HTTP connection from 192.168.4.2:33059
[Aug 31 11:18:17.485] mg_http_is_authorize /generate_204  2 1
[Aug 31 11:18:17.489] redirect_ev_handler  Redirecting to http://setup.device.portal for Captive Portal
[Aug 31 11:18:19.222] dns_ev_handler       DNS A Query for connectivitycheck.gstatic.com sending IP 192.168.4.1
[Aug 31 11:18:19.232] dns_ev_handler       DNS A Query for connectivitycheck.gstatic.com sending IP 192.168.4.1
[Aug 31 11:18:19.584] dns_ev_handler       DNS A Query for www.google.com sending IP 192.168.4.1
[Aug 31 11:18:25.279] dns_ev_handler       DNS A Query for connectivitycheck.gstatic.com sending IP 192.168.4.1
[Aug 31 11:18:25.289] dns_ev_handler       DNS A Query for connectivitycheck.gstatic.com sending IP 192.168.4.1
[Aug 31 11:18:25.571] dns_ev_handler       DNS A Query for www.google.com sending IP 192.168.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    NTBCNeed to be completedNTBTNeeds to be testedbugSomething isn't workinghelp wantedExtra attention is neededminor

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions