unable to open login page

hello
i did setup HotSpot server on a router
When finished , i tried to open a web page but i couldn’t
i really don’t know why? i think i have problem with hotspot because when i disable it i have internet in router and can connect to internet and open web pages but when i enable it i can’t.
before reseting routerboard i had no problem with mikrotik and i could work with hotspot that i configured before
i did the following instruction for hotspot

  1. /ip address add address=192.168.5.1/24 interface=ether5
  2. /ip firewall nat add chain=srcnat src-address=192.168.5.0/24 action=masquerade out-interface=Public

/ip hotspot> setup
hotspot interface: ether5
local address of network: 192.168.5.1/24
masquerade network: yes
address pool of network: 192.168.5.2-192.168.5.254
select certificate: none
ip address of smtp server: 0.0.0.0
dns servers: 192.168.1.1 , 4.2.2.4
dns name: permikmah
name of local hotspot user: admin
password for the user: 123

what should i do? please help .thanks.

This will cause problems.

dns name: permikmah

Delete that entry, or use a FQDN there that resolves to 192.168.5.1.

dns name: permikmah.mydomain.com

/ip dns static
add name=permikmah.mydomain.com address=192.168.5.1

in files, is hotspot directory available ?

thanks for your answer
but the name that i wrote was an example and i tested several dns name but i didn’t get answer. this is not the problem because before reseting mikrotik everything was ok. :slight_smile:

Try it from the hotspot network without the redirect and without dns.
http://192.168.5.1/login
Do you get a login page?

DNS must be functioning for the hotspot to display the login page.

yes i checked it before and even i reset html in ip>hotspot several times but …
anyway i doubt about it(login web page in hospot directory)
because even in browser it tries to open login page and in action center i see this message that " additional log on is required"
but everything i do ,doesn’t work

see the picture i attached

thanks :slight_smile:
directory.png

doesn’t work :frowning:

“this web page is not available”

Try adding this masquerade.

/ip firewall nat
add chain=srcnat action=masquerade out-interface=ether1

If ether1 is not your WAN interface, then change that.

:frowning:
maybe there is a problem with dns but i can’t fix this damned problem

The only other suggestion I have is check “/ip hotspot host”. Check the address and to-address on the devices connected to the hotspot. Are both the ips the same, or are they being translated?

If it continues to give your trouble, remove the hotspot and try the hotspot install again.

thanks for your suggestion

both ips are the same.
i even reseted Mikrotik again and again and did settings several times but still i have the same problem.

you know i just manually defined an entry in ip>dns and in that entry i set “dns address” to 192.168.3.1 (another port of mikrotik that has internet access) and after that the log in page poped out. but still has problem and it doesn’t work like before for example doen’t show logout or another pages.

i upgarded mikrotik routeros to versian 5.25 and the problem’s solved
thanks for your suggestions
:slight_smile: