Apply to router and compliance check
Apply the login page settings to your MikroTik router, check compliance and resolve setup error codes.
Once the router is connected through the VPN tunnel, Hotspotly writes the settings the login page needs to the router itself. You follow this, and start it by hand when needed, from the Router portal setup card on the device and hotspot detail pages.
What gets written
Setup reads the router, compares it with the desired settings and writes only the differences. Running it a second time with the same settings writes nothing. Setup is device-wide: every active hotspot on the device is updated together.
| Area | What happens on the router |
|---|---|
| Login files | The login page files are downloaded to hotspotly/<hotspot-id>/ (flash/hotspotly/... on devices with flash storage). The download uses HTTPS with certificate verification. |
| Hotspot profile | The profile used by the hotspot server gets html-directory, login-by=http-chap, use-radius=yes, radius-accounting=yes, radius-interim-update=5m and dns-name. |
| RADIUS and RADIUS CoA | The Hotspotly RADIUS entry (service=hotspot,dhcp, source address = tunnel IP) and CoA for ending sessions (UDP 3799, from the tunnel only). |
| DHCP accounting | use-radius=accounting on the DHCP server of the hotspot interface. |
| NTP and Time zone | The NTP client is enabled and the time zone is set. |
| Syslog | DHCP and hotspot session logs are sent to Hotspotly through the tunnel (for access log records; Law 5651 in Türkiye). |
| Walled garden | Before login, guests can reach only the login page address (e.g. https://portal.hotspotly.net) and the addresses the enabled methods need. Old Hotspotly rules are cleaned up. |
Before you start
- RouterOS 6.49 or later.
- The device must be connected through the VPN tunnel with the setup wizard finished: RouterOS 7 (WireGuard) or RouterOS 6.49 (L2TP/IPsec).
- A hotspot server must exist on the router, and the Interface you entered for the hotspot in the panel must match the router's hotspot interface. Guide: Guest network and hotspot server.
- Each hotspot server needs its own hotspot profile.
- The router must trust the Let's Encrypt root certificate (ISRG Root X1) and its clock must be correct. Details: Certificate problems.
- Do not delete or disable the
hotspotly-apiuser, the "Hotspotly API Access" firewall rule or the API service (TCP 8728) that the VPN script added. Hotspotly connects to the router only this way, inside the tunnel.
When setup runs by itself
In the cases below, setup starts in the background within a few seconds. The card's Last run field shows which trigger ran.
| Trigger | When |
|---|---|
| VPN setup | The device setup wizard is completed |
| Hotspot created | You create a new hotspot |
| Hotspot change | The hotspot's interface, active state or device changes |
| Login settings | You publish a design whose login methods changed, or roll back to an older version |
| Retry | Another setup was running when a trigger arrived; it runs once more when that one ends |
| Manual | You press Apply to router |
Changing only colours, the logo or texts does not touch the router; guests get the new design directly from the login page address.
If the device is not eligible (no VPN, wizard not finished, device inactive or no active hotspot), automatic setup does not run. The card shows a line starting with "Automatic setup is not running" with the reason and a link to the matching section of this page. You can still start it with the button; the error code then appears on the card.
Read the card
The badge at the top of the card shows the setup status. The same status appears in the Setup status column of the Hotspots list.
| Badge | Meaning | What to do |
|---|---|---|
| Not applied | Setup has never run on this device. | Apply to router |
| Applying | Setup is running (up to two minutes). | Wait; the card updates itself. |
| Applied | The router is up to date. | Nothing to do. |
| Update needed | The router has an older setup (portal address or login files changed). | Apply to router |
| Error | The last setup stopped with an error. | See the error codes section for the code in the red box. |
| Interrupted | The previous setup was interrupted. | Apply to router |
Apply to the router by hand
- Open the device under My Devices (or Hotspots → hotspot detail). The card on the hotspot detail page applies to the same device.
- On the Router portal setup card, press Apply to router.
- The badge changes to Applying. This can take up to two minutes; you do not need to stay on the page, the card refreshes every few seconds.
- When it finishes, the badge shows Applied and the "Settings applied to the router" notification appears. If the router is already up to date you see "Router is already up to date; nothing changed"; this is not an error.
Note
A second setup cannot start while one is running on the same device (provision_busy). The button does not work for accounts with a suspended subscription.
Check compliance
Check compliance reads the router but writes nothing, and the card's status badge does not change. Use it when someone changed the router by hand or you suspect a problem. The result appears in the Compliance report box:
- Compliant: "Router matches the desired settings."
- Differences found: the router differs from the desired settings.
- Blocking issues: problems that stop setup. See the error codes section below.
- Changes to apply: what the next Apply to router will do (area, action: Download, Add, Change, Remove).
- Warnings: notes that do not stop setup (e.g. no DHCP server found on the hotspot interface, the NTP client does not accept DNS names).
Note
The detail text of differences and warnings comes from the server and is currently shown in Turkish.
To fix the differences, press Apply to router.
Verify on the router
You can also check the result from the Terminal in Winbox or WebFig. These commands only read:
What to expect:
- Files under
hotspotly/<hotspot-id>/(orflash/hotspotly/...). - In the hotspot profile:
html-directory=hotspotly/<hotspot-id>,login-by=http-chap,use-radius=yes,radius-accounting=yes,radius-interim-update=5m. - The
/radiusentry hasservice=hotspot,dhcpand the commenthotspotly:<version>;/radius incomingshowsaccept=yes. use-radius=accountingon the DHCP server of the hotspot interface.- The walled garden contains your login page address (as shown in the panel) and the rules you added yourself.
What happens to your own settings
| Kept | Changed |
|---|---|
| Your walled garden rules without a Hotspotly tag | The hotspot server's profile: login-by becomes http-chap only; cookie, mac and trial logins are turned off |
| Other RADIUS entries | NTP client and time zone |
| Your own logging rules | use-radius on the DHCP server of the hotspot interface |
| Unused hotspot profiles | On RouterOS 7 a filled-in html-directory-override in the profile is cleared |
Warning
If your hotspot profile used MAC or cookie auto-login, those logins stop working after setup. Guests sign in through the login page.
Error codes
When setup stops, the card shows a red box with a Setup guide link to this page. The link jumps straight to the matching code. Under each code you find the message shown in the panel and what to do.
Hotspot settings on the router
hotspot_server_not_found
In the panel: No hotspot server on the router for the hotspot interface
There is no hotspot server on the router on the interface you entered for the hotspot in the
panel. Check the server's interface on the router with /ip hotspot print. Either set up the
hotspot server on the router (guide) or, in the
panel, make Edit Hotspot → Interface match the router's
interface name. Then press Apply to router.
hotspot_profile_not_found
In the panel: Hotspot server profile not found
The hotspot server points to a profile that does not exist on the router. Check the profiles
with /ip hotspot profile print, assign an existing profile to the server and apply again.
hotspot_profile_shared
In the panel: Hotspot profile is used by more than one server
The same hotspot profile is used by more than one hotspot server. A profile can hold only one login page folder, so Hotspotly stops here. Create a separate profile for each hotspot server, assign it, then apply again.
routeros_unsupported
In the panel: RouterOS version not supported (6.49 or later)
RouterOS is older than 6.49. Upgrade the router to 6.49 long-term or 7.x, then apply again. The
version is on the version line of /system resource print.
hotspot_not_found
In the panel: Hotspot is not on this device or is inactive
The hotspot to set up is not on this device or is inactive. Check that the hotspot belongs to the right device and is active.
no_active_hotspot
In the panel: Device has no active hotspot
The device has no active hotspot. Create one with Hotspots → Add Hotspot or activate an inactive hotspot; setup then starts by itself.
VPN and device
vpn_required
In the panel: Device is not connected through the VPN tunnel
The device is not connected through the VPN tunnel (Direct Connection was chosen, or there is no tunnel address). Login page setup works only through the VPN tunnel. Add the device again with WireGuard (guide) or L2TP/IPsec (guide).
vpn_incomplete
In the panel: VPN setup is not finished
The device setup wizard is not finished. On the My Devices page, finish it with Continue Setup; setup runs by itself when the wizard is done.
device_inactive
In the panel: Device is inactive
The device is inactive, so the router files cannot be downloaded. Check why the device is inactive (for example the subscription status). If you cannot resolve it, contact support.
radius_secret_missing
In the panel: Device has no RADIUS secret; regenerate the VPN script
The device has no stored RADIUS secret, so a new VPN script is needed. If the device is still in the setup wizard, use Regenerate script and run the new script on the router. For a device whose setup is complete, contact support.
Router connection
router_unreachable
In the panel: Router is unreachable
Hotspotly could not connect to the router through the VPN tunnel. Check in this order:
- Is the router on and able to reach the internet?
- Is the tunnel up? On RouterOS 7,
last-handshakein/interface wireguard peers print detailshould be a few seconds or minutes ago; on RouterOS 6.49,l2tp-hotspotlyshould show as running (R) in/interface l2tp-client print. - Is the API service enabled? In
/ip service print,api(8728) must not be disabled. - Are the
hotspotly-apiuser and the "Hotspotly API Access" firewall rule still there?
Once the tunnel is back, press Apply to router again.
router_timeout
In the panel: Router timed out
The router did not answer commands in time (slow link or busy CPU). Wait a few minutes and try again. During that time a new attempt may report Setup is already running on this device; the lock clears within three minutes at most.
router_busy
In the panel: Router is busy
Too many operations are queued for this router. Try again in a few seconds.
router_error
In the panel: Router rejected a command
The router rejected a command. The detail line in the red box summarises the router's reply. If
the group or permissions of the hotspotly-api user were changed, restore them. You can contact
support with the detail line.
router_file_fetch_failed
In the panel: Router could not download the login files
The router could not download the login page files over HTTPS. The most common cause is the certificate: the router does not trust the Let's Encrypt root certificate or its clock is wrong. Follow the steps in Certificate problems, check that the router can resolve DNS, and apply again.
not_converged
In the panel: Differences remained after applying
The settings were written, but differences remained when the router was read again; the status is not set to Applied. A script, scheduled task or another management tool on the router may be changing the same settings. Use Check compliance to see the remaining differences, turn off the conflicting source and apply again.
provision_busy
In the panel: Setup is already running on this device
A setup (manual or automatic) is already running on this device. Wait for it to finish; the card updates itself.
Server configuration
These two codes are not something you can fix; they concern the Hotspotly server settings. Contact support.
portal_not_configured
In the panel: Portal address is not configured (server configuration)
The login page address is not configured as a separate domain on the server. Automatic setup does not run; your existing routers keep working with their previous settings.
portal_origin_not_isolated
In the panel: Portal address is not on a separate domain (server configuration)
The login page address is not on a domain separate from the panel. For security, Hotspotly does not connect to the router at all in this case.
Common symptoms
| Symptom | Likely cause | Fix |
|---|---|---|
| Guests see MikroTik's default login page instead of Hotspotly | Setup has not run, or the profile was changed by hand on the router | Check compliance, then Apply to router |
| The hotspot list shows Interrupted | Setup was interrupted or is running right now | Open the device detail; the card shows the real status. Apply again if needed |
| After publishing a design, Apply to router says "Router is already up to date; nothing changed" | Expected: the design is not written to the router, it is served from the login page address | Reload the login page on the phone |
| MAC or cookie auto-login stopped after setup | login-by in the profile was set to http-chap only |
Expected behaviour; guests sign in through the login page |
| Badge shows Update needed | The login page address or files were updated | Apply to router |
Security and privacy notes
- Hotspotly connects to the router only through the VPN tunnel and with its own API user.
- The card and error messages never show passwords, the RADIUS secret or signed download URLs.
- Through syslog the router sends Hotspotly only DHCP and hotspot session logs (for the access records required by Turkish Law 5651); debug messages and packet dumps are not sent.
- Before login, guests can reach only the login page address and the addresses the enabled methods need.