chGoodchild / GLTollGate

6 stars 2 forks source link

Captive portal issue in android #49

Open chGoodchild opened 2 months ago

chGoodchild commented 2 months ago

Screenshot_20240826-171622.png

The issue you're experiencing with your Android phone when using the NoDogSplash (NDS) captive portal is likely related to how Android devices handle network connectivity checks. When an Android device connects to a network, it tries to access specific URLs like connectivitycheck.gstatic.com/generate_204 to determine if it has internet access. If these requests are allowed through the captive portal without redirection, the phone might mistakenly believe that it has full internet access and won't display the captive portal login page.

Possible Solutions:

  1. DNS Redirection: Ensure that your DNS settings are configured to redirect these connectivity check requests to the captive portal rather than allowing them to pass through freely. If the DNS doesn't redirect properly, the Android device won't trigger the captive portal login page [❞] [❞].

  2. Disable Captive Portal Check: On some networks, administrators have found success by disabling the captive portal check on the Android device. However, this requires rooting the device or using specific apps, which might not be ideal or feasible in all cases.

  3. NDSCTL MAC Address Management: Disconnecting your phone's MAC address using ndsctl might temporarily resolve the issue by forcing the device to go through the connection process again, potentially triggering the captive portal correctly. However, this is a temporary fix, and the underlying DNS redirection issue should be addressed.

  4. Clearing Cache/Data: On your Android phone, you can try going to Settings > Apps > Show System Apps > CaptivePortalLogin and then clearing the cache and data. This can sometimes resolve issues where the captive portal detection mechanism gets stuck [❞].

Finding Your Phone’s MAC Address:

You can find your phone's MAC address by going to Settings > About Phone > Status and looking for "Wi-Fi MAC Address." This is the address you'd need if you want to manage it with ndsctl.

Additional Considerations:

Ensure that any certificates used in your captive portal (if HTTPS is enabled) are valid and trusted by the device. Self-signed certificates can cause issues with HTTPS captive portals on mobile devices [❞].

These steps should help in diagnosing and resolving the issue with your Android device's connectivity to the captive portal.