Back to top

How to disable the internet connectivity check

Last updated May 17th, 2024

Categories:

Environment

  • Android device

Overview

After connecting to a Wi-Fi network, device users might notice an issue where the Wi-Fi connection shows the following status:

Connected without internet

To determine if a device is connected to the internet, the device attempts an internet connectivity check by connecting to one the following URLs:

  • http(s)://www.google.com/generate_204
  • http(s)://connectivitycheck.gstatic.com/generate_204
  • http(s)://play.googleapis.com/generate_204

If the device is unable to make a connection, it indicates there is no internet connection.

How to disable the internet connectivity check

To disable the internet connectivity check, enter the following Android Debug Bridge (ADB) command in the command line:

adb shell settings put global captive_portal_detection_enabled 0

Is this page helpful?