Connect a MikroTik router
About 5 minutes. All you need is Winbox and your Mikrotiko account.
Mikrotiko never asks for your router’s administrator password. You paste a command yourself; it creates an account limited to ticket management. If someone asks for this password on behalf of Mikrotiko, it is a scam.
Before you start
- RouterOS 7, or RouterOS 6.45 and newer. To see the version: in Winbox, System > Resources menu, “Version” line.
- The router has Internet access. Starlink, fiber, 4G: anything works, with no public IP address and no port to open.
- No Hotspot yet? Mikrotiko creates it for you: when adding the router, leave “If the router has no Hotspot yet, create it for me” ticked. Hotspot already set up: it is kept, and Mikrotiko adds a DNS name if it has none.
- You open Winbox on the router, from a computer connected to its network.
Set up the Hotspot yourself in Winbox (optional)
The simplest is to let Mikrotiko create it (bridge, 192.168.88.1/24, wifi.lan, all changeable). To do it by hand:
- In Winbox: IP > Hotspot, Servers tab, Hotspot Setup button.
- Choose the interface your customers connect to (often the bridge or the WiFi), then Next.
- Accept the proposed values (address, address pool, DNS servers) with Next.
- At the DNS Name step, type a simple name, for example
wifi.lan. This name is required: it is what makes the QR codes on tickets work. - Finish the wizard. The Hotspot is ready.
Hotspot already in place without a DNS name: nothing to do, the Mikrotiko command adds one (wifi.lan).
Your router is already set up?
You already sell tickets with this router, with another app or by hand? Mikrotiko is added without breaking anything. The command checks everything before acting, and at the slightest problem it stops without changing anything.
- Nothing is deleted or replaced: your current Hotspot users and tickets, profiles, DHCP, addresses, NAT, Wi-Fi, walled garden and passwords stay as they are.
- Your old tickets keep working, next to Mikrotiko tickets. Mikrotiko only touches tickets whose comment starts with “mkt-”.
- Your current plans do not move: Mikrotiko creates its own separately (profiles “mkt-p1”, “mkt-p2”…).
- What is added: the “http-pap” and “mac-cookie” login methods on the Hotspot server profile, without removing those in place (this is what allows QR code login); automatic time (NTP), keeping your NTP servers if you have any; the “mikrotiko” tunnel and firewall rules that only accept the Mikrotiko server (RouterOS 7); the regular call (RouterOS 6).
- API service (RouterOS 7): if it was disabled, it is enabled, but only for the Mikrotiko server, through the tunnel. If it was open to everyone, it is left alone.
- Your login page is not touched during installation. It is only replaced if you publish a page made in Mikrotiko. The first time, Mikrotiko asks you to confirm, and explains how to keep the old one: in Winbox, Files menu, hotspot folder, drag login.html onto your desktop.
Everything Mikrotiko creates is named “mikrotiko” or starts with “mkt-”. To remove it all, see “Remove Mikrotiko from a router” at the bottom of this page.
1. Create the router in Mikrotiko
Open app.mikrotiko.com with the owner’s account (a cashier cannot add a router). Routers menu, then Add a router. Give it a name you will recognize, for example “Downtown shop”.
Mikrotiko then shows a command. Tap Copy the command.
The command is personal: it links this router to your account. Do not copy it from this page and do not share it. It stays valid for 72 hours; after that, generate a new one from the router’s page.
2. Open the router’s terminal
In Winbox, click New Terminal, in the left menu.
3. Paste the command, then Enter
In the terminal: right-click, then Paste (or Ctrl + V). Press Enter. The router picks the script for its version (6 or 7) by itself.
4. Wait for “installation complete”
A few seconds later:
In Mikrotiko, the router’s page turns green (online) by itself. You are done: create your plans, then your first batch of tickets.
What the command does
- It checks first the version, the Hotspot and its DNS name, and that the Mikrotiko network does not conflict with yours. At the slightest problem, it stops without changing anything.
- It turns on automatic time (NTP), so tickets expire at the right time.
- It adds QR code login and automatic reconnection, without removing your settings.
- RouterOS 7: an encrypted tunnel to Mikrotiko and a technical account limited to tickets. Winbox is also allowed from this tunnel only, for “Remote Winbox”. RouterOS 6: the router contacts Mikrotiko every 30 seconds.
- It touches none of your existing Hotspot users. Everything it creates is named “mikrotiko”.
If an error message appears
Nothing was changed on the router. Fix what the message says, then paste the same command again.
“No Hotspot on this router”
The Hotspot is not set up. Follow “Set up the Hotspot” above, then paste the command again.
“The interface … does not exist on this router”
The message lists the router’s interfaces. In Mikrotiko, open the router, put one of them in the Hotspot settings (usually the bridge), then paste the command again. If the router has only one bridge, the command picks it by itself.
“RouterOS 6.xx is too old”
Update it: System > Packages, Check For Updates button, long-term channel, then Download & Install. The router restarts. Then paste the command again.
“The Mikrotiko server cannot be reached from this router”
The router has no Internet, or cannot resolve addresses. Check that a WiFi customer can browse, and that IP > DNS has at least one server (for example 1.1.1.1 or 8.8.8.8). Paste the command again.
“failure: …” right after pasting the command
The router could not download the script: nothing was changed. The RouterOS message says why:
- could not resolve dns name: the router cannot find Internet addresses. IP > DNS: put
8.8.8.8and1.1.1.1in Servers, OK, then paste the command again. - connection timeout or closing connection: no Internet on the router, or the connection is too slow right now. Check that a WiFi customer can browse, then paste again.
- SSL: handshake failed: RouterOS is too old. Update it (System > Packages, Check For Updates, long-term channel), then paste again.
Still stuck? Write to us from the support bubble, copying the exact line shown by the terminal.
“The Mikrotiko tunnel networks … are all already in use”
Your router already uses the addresses Mikrotiko reserves for its tunnel. Do not change anything yourself: write to us from the support bubble, copying the message, and we will tell you what to do.
“This router has already been used on another Mikrotiko account”
Each router gets only one free trial, even with another account or another number. Choose a plan in Mikrotiko (Subscription), then paste the command again.
“installation done, but the server could not be notified”
The installation is done, but the connection dropped at the end. On RouterOS 6, everything fixes itself in less than a minute. On RouterOS 7, check the router’s Internet access, then paste the command again.
“Command expired” in Mikrotiko
A command is only valid for 72 hours. On the router’s page, tap Generate a new command.
Nothing shows up, or the router stays “pending”
Check that the whole command was pasted (it starts with { and ends with }), and that you pressed Enter. Still stuck? Write to us from the support bubble, bottom right, with what the terminal shows.
Remote Winbox (RouterOS 7)
On the router’s page in Mikrotiko, tap Open remote Winbox, from the computer where you will run Winbox. Mikrotiko shows an address, for example app.mikrotiko.com:42017: paste it into Winbox, “Connect To” field, then type your usual router login and password.
- No public IP address or port to open: it works behind Starlink or 4G.
- Access lasts 1 hour and only accepts your connection. You can close it earlier.
- You type your password in Winbox, never in Mikrotiko. Winbox encrypts the session: Mikrotiko does not see it.
Remove Mikrotiko from a router
On the router’s page in Mikrotiko, Remove this router section: you will find the lines to paste into the terminal to erase everything Mikrotiko created on the router, then the button that frees its place in your plan. Tickets already on the router keep working.