IPTVBlog
Search IPTVBlog

Guide· beginner

MAG and Stalker portal basics for IPTV operators

MAG boxes and the Stalker (Ministra) portal for IPTV operators: MAC-based lines, portal URL forms, activation codes, anti-cloning and the common tickets.

By
Published
Reading time
9 min · 1,874 words
A set-top box under a television, a glowing cable rising from the box to an arch of light, a small key

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.

What a MAG box is

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.

What a Stalker (Ministra) portal is

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.

Diagram: a MAG box sends its MAC to the portal URL on the panel, the panel matches the MAC to an active line and returns the portal interface, and the box then plays the stream from a load balancer

MAC-based lines

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:

  • Creating the line means entering the MAC. Typos here are the number one reason a new MAG customer “cannot log in”. Ask the customer for a photo of the label, or have them read the MAC from Settings › System info.
  • One MAC, one box. The MAC is the identity. Two boxes with the same MAC is cloning, and most panels block it (see below). Some panels accept several MACs on one line, each for its own box.
  • Changing the box means changing the line. A customer with a new MAG needs you, or a self-service form, to swap the MAC. It is a frequent, low-value ticket that should not need a human.

Smart STB and Ministra-player apps generate a virtual MAC that behaves the same way from the panel’s side.

Portal URL forms

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.

Activation codes

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.

Anti-cloning basics

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:

  • Device fingerprint beyond the MAC. The handshake includes firmware version, serial number, model and a device signature. A panel can store these at first login. It then refuses a box whose MAC matches but whose other fields do not.
  • Session tokens. The panel issues a token after the handshake and rejects requests from a second session with the same MAC while the first is active.
  • IP and country checks. The same MAC appearing from two ISPs or two countries within a short window is a strong signal. This is the same account-sharing logic you apply to Xtream lines.
  • Blocking versus flagging. Some panels block the second device outright; others flag the line for you to decide. Blocking is cleaner but produces tickets when a legitimate customer replaces a box without telling you.

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”).

Common support tickets

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.

How it differs from Xtream-API players

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.

What to do next

  1. Count how many of your lines are MAG or Smart STB. If it is a meaningful share, write one support page per device type with the exact portal URL form your panel uses and a photo of where the MAC is printed.
  2. Add a self-service “change my MAG device” flow, through your customer area or at least a form, so a box swap is not a human ticket.
  3. Decide your H.264 policy for MAG customers and put it in the plan description; the IPTV panel server requirements guide helps size the servers if you add transcoded variants.
  4. Check which anti-cloning mechanism your panel uses and write the one-sentence customer rule for it.

Questions people ask

What is the difference between a Stalker portal and the Xtream Codes API?

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.

What portal URL do I give a MAG customer?

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.

Why does the MAG box say 'portal unavailable' or 'authorization failed'?

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.

Can a customer use one MAG line on two boxes?

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.

Do I need a MAG portal if I already have an Android app?

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.

Topicsmagstalkerdevicessupport

Comments

Keep reading