Sunday, January 17, 2021

How to Fix Generate_204 Error in Mikrotik Hotspot Captive Portal

The Generate_204 error happens in some Android-based devices. Generate_204 means that the device is connected to the internet, therefore the Captive portal will be not triggered. To fix the error, you need to redirect a few domains that Android uses to check internet connectivity.

The Android devices check for the following domains to determine its connectivity to internet :

clients1.google.com
clients3.google.com
connectivitycheck.android.com
connectivitycheck.gstatic.com

To fix the generate_204 error, redirect the domains above to inactive ( unused ) ip address in your network. Copy the following commands to new terminal :

ip dns static add name=clients1.google.com address=10.0.0.100
ip dns static add name=clients3.google.com address=10.0.0.100
ip dns static add name=connectivitycheck.android.com address=10.0.0.100
ip dns static add name=connectivitycheck.gstatic.com address=10.0.0.100



No comments:

Post a Comment