Community discussions

MikroTik App
 
meconiotronic
newbie
Topic Author
Posts: 30
Joined: Wed Mar 14, 2012 9:50 am

Captive portal without internet and Android

Wed Oct 18, 2017 5:07 pm

Hi, i have this situation:
Image

I used a mikrotik routerboard for easy captive portal and she redirect users to an external webserver that offer offline functions (like video, description etc...).
The problem is:
Windows, IOS, and Linux works fine with this method, if you connect to wifi a popup with the content of webserver appear without problem, Android no...
In Android you connect to wifi and after few seconds it say "No internet connection avaible" no popup/captive portal detected (In some phone facebook messenger detect captive portal but the android system not).

If i connect the routerboard to internet Android start to working!!! But my implementation of this system is designed for working only without internet.
Please you can tell me if there is a workaround for Android or a way to do this?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: Captive portal without internet and Android

Wed Oct 18, 2017 5:14 pm

There are documents on internet how the captive portal detection works, using servers on internet.
It is different for all those systems.
Maybe you can emulate enough of the google environment to make it work (e.g. a DNS server at 8.8.8.8 and some webserver at a domain name).
But of course it could fall apart at any moment due to more changes in those detection protocols...
 
meconiotronic
newbie
Topic Author
Posts: 30
Joined: Wed Mar 14, 2012 9:50 am

Re: Captive portal without internet and Android

Wed Oct 18, 2017 5:30 pm

Ok but i cant understand this:
If captive portal is active all request to webpage is redirect to login page, why android need internet to detect this if the captive portal in theory block all web traffc?
 
csalcedo
Frequent Visitor
Frequent Visitor
Posts: 80
Joined: Fri Jan 22, 2016 8:09 pm
Location: Santiago Chile

Re: Captive portal without internet and Android

Wed Oct 18, 2017 5:37 pm

Its not the hotspot that has the issue. on android there is an "internet check" that it does (goes to some site to se if it responds on connection). The only way get around this is for the mikrotik to spoof the web address that its looking for.

you can try wireshark and see what the android is trying to get to and maybe just put an entry in the dns of the mikrotik to resolve to the something local...

Hope this helps
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: Captive portal without internet and Android

Wed Oct 18, 2017 5:59 pm

For example, try to add the DNS name clients3.google.com to the DNS server with an invalid address or the address of the router itself and see if that changes anything.
Also add 8.8.8.8/24 as a second address of the router.
...etc etc etc

Who is online

Users browsing this forum: Amazon [Bot], vagrik and 208 guests