
Guide
Catch-up TV and timeshift: how they work and what they cost
Catch-up TV and timeshift for IPTV operators: recording windows, a worked storage example, where recordings live, Xtream timeshift URLs, players and rights.
Guide· beginner
MAG boxes and the Stalker (Ministra) portal for IPTV operators: MAC-based lines, portal URL forms, activation codes, anti-cloning and the common tickets.

MAG boxes and the Stalker portal predate the Xtream Codes API. In many markets they are still the device your customers already own. This guide explains what a MAG box is, how a Stalker (later Ministra) portal serves it, and why MAG lines are bound to a MAC address. It also covers portal URL forms, activation codes, anti-cloning, the usual tickets and the differences to Xtream-API players.
Short version: A MAG box renders a web-style portal served by your panel, and the box’s MAC address identifies the line. The customer types your portal URL (
http://your-domain/c/or/stalker_portal/c/) into the box, and the panel matches the MAC to a line. Most tickets are a mistyped URL or a MAC mismatch. Treat the portal as a second delivery path next to the Xtream API, not a replacement.
MAG is a family of Linux set-top boxes made by Infomir (MAG 250, 254, 322, 420 and later models). They have a remote, an HDMI output and a firmware whose main job is to load a “portal”. The portal is a web application served by the operator and rendered by the box’s embedded browser. It lists channels, EPG, video on demand and settings.
Smart STB apps on TVs and Ministra-player apps on Android emulate the same behaviour. When operators say “MAG”, they usually mean this whole class of portal-based devices.
The mental shift for someone coming from Xtream players: with a MAG, your panel serves the user interface, not just the streams. The box shows what the portal sends. That is why portal-based devices look the same from one operator to the next. It is also why a server-side portal bug shows up on every box at once.
Stalker Middleware was Infomir’s open-source portal software, later renamed Ministra TV platform. Its API became a de facto standard. IPTV panels implemented it so MAG boxes and Smart STB apps could talk to them without Infomir’s software. When a panel advertises “MAG support” or a “Stalker portal”, it speaks that API: the handshake, channel list, EPG, stream link request and VOD listing.
Each panel implements a slightly different subset. In our experience live TV works everywhere and EPG almost everywhere. The differences show up in VOD layouts (Ministra 5 apps expect a movie to open as a folder) and catch-up. Check your panel’s notes before promising a MAG feature that works fine in the Android app.
An Xtream line has a username and a password; any device that knows both can log in, up to the connection limit. A MAG line has a MAC address instead. It is printed on the box’s label and shown in its system settings, in the usual six-pair form. Genuine Infomir boxes typically start with 00:1A:79, which is also the example panels print in their MAC fields.
When the box loads the portal, it sends its MAC. If the panel finds an active line with that MAC, it serves the interface. There is no password prompt. That has three consequences for you as an operator:
Smart STB and Ministra-player apps generate a virtual MAC that behaves the same way from the panel’s side.
The URL the customer types into the box’s portal settings varies by panel and by what the box expects. You will meet these forms:
| Form | Where you see it |
|---|---|
http://your-domain/c/ |
Xtream UI, XUI One and most panels; the short form |
http://your-domain/stalker_portal/c/ |
Original Stalker/Ministra path; many panels alias it |
http://your-domain:PORT/c/ |
Panels serving the portal on a non-standard port |
http://your-domain/c/index.html |
Older firmware that wants the file name |
Give the customer exactly what your panel’s line page shows. If your panel accepts more than one form, pick one for your support pages and stick to it. The trailing slash matters on some firmware versions.
Plain http:// is normal for MAG, because older boxes have no usable TLS trust store. Your panel documentation tells you whether the portal is served over HTTPS at all.
On the box: Settings › System settings › Servers › Portals, enter the URL in Portal 1 URL, save, restart. The box may also want the NTP server set, because an unset clock breaks EPG times and sometimes the handshake.
Some panels add an activation code to the MAC. The customer enters the portal URL, and the box asks for a code. The customer types the code from their welcome e-mail, and the panel binds the box’s MAC to the line at that moment. This removes the “send me a photo of the label” step.
It also lets the customer move the line to a new box by entering the code again. If your panel has it, use it; it also lets a shop issue a MAG line before anyone knows the MAC. Check whether the code is single-use, how long it is valid, and whether reuse invalidates the old MAC.
Because a MAG line is “just a MAC”, cloning is the obvious abuse. Someone copies the MAC to a second box or app and shares the line. Panels fight this in a few ways; know which ones yours uses:
Whatever the mechanism, write the customer-facing rule in one sentence (“one MAG line works on one box; to move it, use the change-device form”).
The portal path produces a predictable set of tickets. The table maps symptom to the first thing to check.
| What the customer sees | Check first | Usual cause |
|---|---|---|
| “Portal unavailable” / “Page loading error” | Portal URL character by character | Typo, missing slash, wrong port, HTTPS where HTTP is expected |
| “Authorization failed” / blocked screen | MAC on the box vs MAC on the line | Mismatch, expired line, line disabled after a cloning flag |
| Portal loads, channel list empty | Bouquet or package assigned to the line | Line created without content |
| Black screen on a channel, others play | Stream format and codec | HEVC or a container the box’s decoder does not handle; MAG 254-class boxes are H.264-only in practice |
| EPG empty or times wrong | NTP setting on the box, EPG mapping on the panel | Unset clock, channels without EPG mapping |
| Works at home, fails at the holiday flat | Country or ISP rules on the line | Geo-restriction or VPN detection triggered |
| “Loading” forever after a firmware update | Firmware version against your panel’s compatibility notes | New firmware expecting an API field the panel does not send |
On black screens: a MAG box plays what its hardware decoder supports and not one codec more. If you serve HEVC or 10-bit channels to MAG customers, keep an H.264 variant or say which channels will not work. The transcoding guide covers when the variant is worth the CPU.
| Stalker / MAG portal | Xtream Codes API player | |
|---|---|---|
| Identity | MAC address (plus optional activation code) | Username and password |
| Devices per line | One per MAC on the line | Up to the connection limit |
| Interface | Served by your panel, rendered by the box | Built into the app |
| Customer setup | Portal URL, occasionally a code | Server URL, username, password |
| Feature set | Whatever the portal implementation supports | Whatever the app supports |
| Typical hardware | MAG boxes, Smart STB TVs, Ministra players | Android TV, Fire TV, phones, Windows |
| Where it breaks | Portal URL, MAC mismatch, codec | App version, URL format, codec |
The practical consequence: a MAG line and an Xtream line are usually two different line types in your panel. They have different fields and sometimes different prices. In Xtream UI and XUI One, MAG devices are a line type identified by MAC and served through the portal. The Xtream UI panel guide shows where that sits in the panel.
Hosted panels tend to expose the same split. IPTVOS, an advertiser on IPTVBlog, offers a portal URL per line with an activation code and MAC binding, also reachable under /stalker_portal/c/. The caveat: its MAG support left beta only recently, and the product as a whole is still a release candidate in preparation. The IPTVOS review has the full picture, gaps included.
Most operators support both paths; how much documentation each one gets should follow your actual device mix.
Both serve the same channels. The Xtream API identifies a customer by username and password and lets any compatible app log in. The Stalker portal identifies the device by its MAC address and serves a browser-based interface that MAG boxes and Smart STB apps render. One line is usually one or the other.
Whatever your panel shows for that line. Common forms are http://your-domain/c/ and http://your-domain/stalker_portal/c/. Many panels accept both. Write the URL with the trailing slash exactly as the panel prints it; MAG firmware is picky.
In order of frequency: a typo in the portal URL, the MAC address on the line does not match the box, the line expired, or the panel's portal endpoint is down or blocked for that country. Check the MAC on the box's System Settings screen against the line before anything else.
Not with the same MAC: two boxes sharing a MAC is cloning, which most panels detect and block. Some panels let one MAG line hold several MACs, one per box; check yours. Otherwise sell a second line or a multi-device Xtream line.
Only if your customers own MAG boxes or Smart STB TVs. In some markets that is most of them; in others almost none. Check your sign-ups before you invest support time in it.

Guide
Catch-up TV and timeshift for IPTV operators: recording windows, a worked storage example, where recordings live, Xtream timeshift URLs, players and rights.

Guide
The Xtream Codes API from the operator's side: player_api.php actions, get.php, xmltv.php, stream URLs, line logins, and why credentials in URLs matter.

Guide
How IPTV load balancers work: origin and relay servers, one provider connection per channel, GeoIP routing, failover, common faults and a sizing rule of thumb.
Comments