Hi all,
I was following this tutorial to have an external login page for mikrotik hotspot. http://wiki.mikrotik.com/wiki/HotSpot_external_login_page
So far it is working good, when a users wants to browse the web, they are redirected to the login page which is located on a another server. But this only works for mobile devices (android and ios and even nokia phones).
When I try to browse the internet using a laptop browser firefox, chrome, opera, I am not redirected to the login page. Instead, the webpage shows an error. Sample error in firefox.
The connection was interrupted.
The connection to > www.google.com > was interrupted while the page was loading.
Any ideas on how to correct this?
It depends on which Google site you are trying to load. The browser will not redirect and give you an error like that if you try to go to a SSL site like https://www.google.com.
Try it with a port 80 website. Does that work?
Thanks for the tip on https://
Is there a way to redirect https sites too?
Anyway, I tried to access a normal http site and still no good. Only a blank page. On the status bar of the browser it says
Looking up local…
Then changes to
Waiting for > www.local.com> …
It just loops between the two. Any ideas?
Is that the correct response? local? http://www.local.com?
Do you have anything entered in the dns-name in “/ip hotspot profile”? If so, remove that setting.
edit: That normally occurs when the dns-name resolves to an ip other than the ip of your hotspot. www.local.com resolves to a public ip, not your router.
Ah it works now! I must have clicked it sometime when I was testing.
Thanks!