How Hotspotly works
Learn how a guest WiFi login flows between MikroTik, the login page and RADIUS, and what you need before you start.
Hotspotly adds a login page (captive portal) to the guest network on your MikroTik router. When a guest signs in, the router asks Hotspotly's RADIUS server and opens internet access once it is approved. Traffic between the router and Hotspotly goes through an encrypted VPN tunnel.
This page gives the big picture. For the step-by-step setup, go to Set up your first hotspot.
What you get
- A guest login page in your own branding that works well on phones.
- Login methods that fit your venue: SMS code, room number, voucher, Google, Facebook, one-click connect, or username and password.
- Router setup from the panel: login files, RADIUS, walled garden and clock settings are written to the router with one button.
- Guest sessions, users and access log records in one panel.
How a guest connects
- The guest joins the guest WiFi network. The MikroTik hotspot server on the router sends a guest
without a session to the router's
login.htmlpage. - That page redirects the guest to the Hotspotly login page. The login page runs on a domain
separate from the panel (for example
https://portal.hotspotly.net). Your own address is shown in the panel; always use the value the panel shows. - The guest signs in with one of the methods you turned on and accepts the terms of use.
- The router asks the Hotspotly RADIUS server over the VPN tunnel. The tunnel is WireGuard on RouterOS 7 and L2TP/IPsec on RouterOS 6.49.
- Once approved, the router opens internet access for the guest.
The management panel is at https://hotspotly.net. Keeping the login page on a separate domain is a
security measure: content on the guest page cannot reach your panel session.
Before you start
| Requirement | Details |
|---|---|
| MikroTik router | RouterOS 6.49 or newer. Setup is refused on versions older than 6.49: RouterOS version not supported (6.49 or later). |
| Terminal access | You need to open the router terminal with Winbox, WebFig or SSH and paste a script. |
| Outgoing traffic | RouterOS 7 (WireGuard): outgoing UDP 51820. RouterOS 6.49 (L2TP/IPsec): outgoing UDP 500, 4500 and 1701. If a firewall sits in front of the router, allow these ports. |
| Correct clock | The router downloads files over HTTPS; with a wrong clock the certificate cannot be verified. See Certificates and file downloads. |
| Guest network | A hotspot server on the interface guests connect to (for example bridge-guest). See Guest network and hotspot server. |
| Hotspotly account | A customer account with an active subscription. If you work through a reseller, your reseller opens the account for you. |
A VPN tunnel is required
The Direct Connection option in the add device wizard cannot be used for login page setup; the card shows Device is not connected through the VPN tunnel. Connect the router with a WireGuard (RouterOS 7) or L2TP/IPsec (RouterOS 6.49) tunnel.
Setup in four steps
The setup screens are in the left menu: My Devices in the Network and devices group and Hotspots in the Guest access group.
- Connect the router. My Devices → Add Device → MikroTik RouterOS. The wizard creates the script you paste into the router and tests the VPN connection. Guide: RouterOS 7 (WireGuard) or RouterOS 6.49 (L2TP/IPsec).
- Create a hotspot. Hotspots → Add Hotspot. In the interface field, enter the interface of the hotspot server on the router. Guide: Set up your first hotspot.
- Design and publish the login page. On the hotspot row, Design → choose the methods and the look → Publish. Guide: Login page designer.
- Apply to the router. Setup starts on its own when a hotspot is created and when login settings change. The Router portal setup card on the device or hotspot detail page should show Applied; if it does not, press Apply to router. Guide: Apply to router and compliance check.
Check the setup
- Make sure the Router portal setup card shows Applied.
- Join the guest network with a phone. The login page should open on its own; if it does not,
open any address starting with
httpin the browser. - Sign in with one of the methods you turned on and open a website.
- In the panel, find the session on the Sessions screen.
Which login method fits
| Business | Suggested method |
|---|---|
| Hotel | Room number (PMS): room number and surname, checked against the PMS |
| Café, restaurant | Click to connect or SMS verification code |
| Event, conference | Voucher code |
| Internal network | Username and password |
See Login methods overview for every method and its status.
Integration status
| Integration | Status |
|---|---|
| MikroTik RouterOS 7 (WireGuard), RouterOS 6.49 (L2TP/IPsec) | Available |
| SMS: NetGSM, İleti Merkezi, Mutlucell, Öztek SMS | Available |
| Sign in with Google, Facebook | Available |
| PMS: Mews, Cloudbeds, HotelRunner, custom PMS (webhook) | Available |
| FortiGate, Palo Alto, Sophos, Zyxel, Ruijie / Reyee, UniFi, Omada, Aruba Instant, Teltonika, Cisco Meraki | Available; connection methods and limits: Other device brands |
Common problems
| Symptom | Likely cause | What to do |
|---|---|---|
| The connection test in the wizard fails | Outgoing VPN ports are blocked, or the script was pasted only in part | Open the ports and paste the script into the terminal in one piece. See VPN connection test. |
| The card shows Device is not connected through the VPN tunnel | The device was added with Direct Connection | Add the device again with a VPN tunnel (WireGuard or L2TP/IPsec). |
| The card shows No hotspot server on the router for the hotspot interface | The router has no hotspot server on that interface, or the interface name in the panel is different | Set up the hotspot server and make the interface names match. |
| The card shows Router could not download the login files | The router has no trusted root certificate, or its clock is wrong | Follow the certificate and clock steps, then Apply to router. |
| Guests see RouterOS's own login page | The login files did not reach the router | Check the card status, press Apply to router, then Check compliance. |
| The login page stays blank or times out | The login page address is missing from the walled garden | Check compliance; if it lists differences, Apply to router. |
| The router page says "RADIUS server is not responding" | The VPN tunnel is down | Check the device status; ping the server tunnel IP from the router terminal. |
For more, see Frequently asked questions.
Security and data protection
- On WireGuard the router creates its own key; the private key never leaves the router. Hotspotly reaches the router only through the VPN tunnel.
- Router and RADIUS passwords are unique to each device and are filled into the script by the panel. Do not share the script or send screenshots of it.
- Setup changes some settings on your router (the login mode of the hotspot profile, accounting on the DHCP server of the hotspot interface, NTP and time zone). The details are in the Apply to router guide.
- On the login page the guest confirms they have read the privacy notice and accepts the terms of use; marketing consent is optional and unchecked by default. Publish the texts on the Legal Texts screen. See Legal texts and guest consent.
Next steps
Other device brands
Connection methods and setup guides for brands other than MikroTik are on the Other device brands page.