Community discussions

MikroTik App
 
nerdtron
Member Candidate
Member Candidate
Topic Author
Posts: 123
Joined: Sat Nov 30, 2013 7:49 am

hostspot does not redirect on laptop

Mon Jan 27, 2014 4:18 am

Hi all,
I was following this tutorial to have an external login page for mikrotik hotspot. http://wiki.mikrotik.com/wiki/HotSpot_e ... 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?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: hostspot does not redirect on laptop

Mon Jan 27, 2014 11:58 am

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?
 
nerdtron
Member Candidate
Member Candidate
Topic Author
Posts: 123
Joined: Sat Nov 30, 2013 7:49 am

Re: hostspot does not redirect on laptop

Mon Jan 27, 2014 12:29 pm

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?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: hostspot does not redirect on laptop

Mon Jan 27, 2014 12:35 pm

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.
 
nerdtron
Member Candidate
Member Candidate
Topic Author
Posts: 123
Joined: Sat Nov 30, 2013 7:49 am

Re: hostspot does not redirect on laptop

Tue Jan 28, 2014 4:43 am

Ah it works now! I must have clicked it sometime when I was testing.
Thanks!

Who is online

Users browsing this forum: domon, Egert143, eworm, f1net, sindy and 101 guests