M3U vs Xtream Codes vs MAG Portal: What’s the Difference?

Cette page est actuellement disponible en anglais uniquement.

Guide card: M3U vs Xtream Codes vs MAG portal, with a link icon

When you set up an IPTV player app, it asks how you want to log in: with an M3U playlist, an Xtream Codes login or, on some apps and on MAG boxes, a portal address. They are three different ways of getting the same thing, a list of channels from your provider, into a player. This guide explains how each one works, which devices and apps support which, and how to choose between them.

None of these formats is a service in itself, and none of them includes channels. They are simply ways for a player to connect to a provider you subscribe to. This guide assumes that provider is one you are authorised to use.

The three methods at a glance

MethodWhat you enterTypically used on
M3U playlistOne web address (or a file)Most player apps, on almost every device
Xtream CodesServer address, username and passwordMany player apps on Android TV, Fire TV, phones and computers
Portal (MAG / “Stalker Portal”)A portal address; the device is identified by its MAC addressMAG set-top boxes, and some player apps that imitate them

M3U playlists

An M3U playlist is a text file listing channels and the address of each stream. Your provider gives you a single web address that returns this file. The first line of an extended M3U playlist is always #EXTM3U; the HTTP Live Streaming standard requires the same opening tag (RFC 8216).

Each channel line can carry extra details that player apps use. The documentation for Kodi’s IPTV Simple Client lists the common ones (Kodi):

  • tvg-id: the identifier used to match the channel to the TV guide;
  • tvg-name: the channel’s name in the guide;
  • tvg-logo: the address of the channel logo;
  • group-title: the group or groups the channel belongs to, such as “Entertainment” or “News”.

Strengths: supported by almost every player, including free general-purpose ones; easy to test in a web browser. Weaknesses: one long address that is awkward to type with a remote; the TV guide may need a separate address; the address usually contains your login, so anyone who sees it can use your account.

Xtream Codes logins

An Xtream Codes login (also called Xtream API) uses three separate details: a server address, often with a port number such as :8080, a username and a password. “Xtream Codes” is the name of a login format that many player apps still support; it is not a provider or a service in itself.

The player uses the login to fetch the channel list and, in many apps, the TV guide and any on-demand sections at the same time. TiviMate’s Google Play listing names it alongside M3U and Stalker Portal as a supported playlist format (Google Play), and the IPTV Smarters Player PRO listing on Apple’s App Store says it supports “the Xtream-Codes API and M3U playlists” (App Store).

Strengths: shorter details to type; the guide and on-demand sections often load automatically; the provider can update the channel list without giving you a new address. Weaknesses: not every player supports it; general-purpose players such as media players usually do not.

MAG portals and MAC addresses

MAG boxes, made by Infomir, work differently. Instead of a playlist, the box loads a portal: in Infomir’s words, “a Web application that is loaded in STB” (set-top box), which the box talks to over HTTP (Infomir). The provider’s portal then shows you its own menus and channel list.

  • Where the address goes: on MAG boxes with Infomir’s embedded portal, under System settings, Servers, Portals. There are two portal slots by default, and a multiportal mode supports up to eight (Infomir).
  • The MAC address: every box has a unique network hardware address, shown under System settings, Device info. Providers that use portals commonly register your subscription against this address, which is why they ask for it when you sign up. Infomir’s FAQ also mentions that some providers use a login and password form instead.
  • M3U on a MAG box: Infomir’s FAQ says you can also set up M3U playlists from your IPTV provider in the box’s IPTV application, if the provider supplies one (Infomir FAQ).

Infomir states that it “doesn’t provide IPTV/OTT services”: the box, like a player app, only connects to a provider. Some player apps, such as TiviMate, can also log in to this type of portal, which they list as “Stalker Portal”.

Do not try to change a box’s MAC address to match another device. The address identifies your hardware, and copying someone else’s is a way of using a subscription that is not yours. If your box is replaced, ask your provider to update the registered address.

Which devices and apps support which method?

Support depends on the player app, not only the device. Always check the app’s own store listing before you pay for anything. The details below are from official store listings and manufacturer documentation checked in November 2026.

Android TV and Google TV

The widest choice. TiviMate, from Google Play, lists support for M3U, Xtream Codes and Stalker Portal, and says it is designed for Android TV and not optimised for phones or tablets.

Fire TV Stick

Fire OS models (for example the 4K 2nd Gen, 4K Max 2nd Gen and 4K Plus) are Android-based and install apps from the Amazon Appstore; check the listing of the player you want. The Vega OS models (Fire TV Stick 4K Select, 4K 3rd Gen and HD 2026) are not Android-based. They run only apps from the Amazon Appstore and cannot install apps from elsewhere (AFTVnews), so do not assume an Android player will be available.

Samsung and LG smart TVs

These normally only run apps from Samsung’s and LG’s own stores. The formats a player supports vary from app to app, so read the app description in the TV’s store before you buy a subscription or activation.

iPhone, iPad and Apple TV

Apps come from the App Store. The IBO Player listing asks for an M3U file or URL and lists iPhone, iPad, Mac and Apple TV (App Store). The “IPTV Smarters Player PRO” listing (developer listed as Paul Kenneth) mentions Xtream Codes, M3U and XSPF. Many apps from different developers use similar names, so check the developer before you install.

Windows and Mac

General-purpose media players such as VLC, which VideoLAN describes as “a free and open source cross-platform multimedia player”, can open network streams but are not designed around Xtream Codes logins or TV guides (VideoLAN). Some IPTV player apps from the App Store also run on Mac; check the listing for your macOS version.

MAG boxes

Designed for portals. M3U playlists can be added in the IPTV application if your provider supplies one.

Which should you use?

  • Use the method your provider recommends for your device. They know which one their service supports best.
  • If you have a choice on Android TV or Fire TV, an Xtream Codes login is usually easier: less typing, and the guide and on-demand sections tend to load automatically.
  • If your player is a general-purpose media player, M3U is often the only option.
  • If you have a MAG box, use the portal address your provider gives you.
  • If one method fails, asking whether the provider also supports the other is a useful test of whether the problem is the login or the app.

Managing several playlists

  • Name each playlist clearly in the app, so you know which provider and which login it uses.
  • Hide channel groups you never watch. Smaller lists load faster, especially on devices with 1 GB of RAM.
  • Use favourites rather than scrolling a long list.
  • Keep a private note of your login details, so you can add the playlist again after a reset.

Common mistakes to avoid

  • Entering an M3U address in the Xtream Codes fields, or the other way round.
  • Leaving out the port number from an Xtream server address.
  • Buying a player activation before checking that it supports your provider’s login method on your device.
  • Sharing a playlist address or portal details in forums. They often contain or unlock your login.
  • Using lists or portals found online. Public lists are often unauthorised and can contain unsafe links. The UK Intellectual Property Office warns that streaming devices “become illegal once they are adapted to stream illicit content” (GOV.UK).

Troubleshooting by method

  • M3U will not load: paste the address into a web browser on a computer. A working address downloads a file or shows text starting with #EXTM3U.
  • Xtream login rejected: retype the username and password, check http or https and the port, and ask the provider whether the account is active.
  • MAG portal shows “Page 404” or will not load: Infomir suggests checking the network, re-checking the portal address, checking that the provider’s portal is available, restarting the box and then contacting the provider.
  • The guide is missing: an M3U playlist may need a separate guide address; with Xtream Codes, update the guide in the app.

Frequently asked questions

Is Xtream Codes better than M3U?

Neither is better in itself. Xtream Codes is usually easier in apps that support it, because the guide and on-demand sections load automatically. M3U works in more players.

What is a Stalker Portal?

It is the name some player apps use for the portal-style login used by MAG boxes, where you enter a portal address and the device is identified by a MAC address.

Where do I find my MAG box’s MAC address?

Infomir’s documentation shows it under System settings, then Device info.

Can I use the same login on several devices?

That depends on your subscription. Many providers limit the number of devices or simultaneous streams. Check your terms rather than assuming.

Do any of these formats include channels?

No. They are only ways of connecting a player to your provider. The channels, and the right to watch them, come from the provider.

Summary

M3U is a single playlist address that works almost everywhere. Xtream Codes is a three-part login that usually brings the guide and on-demand sections with it. A MAG portal is a web application loaded by the box, linked to your box’s MAC address. Choose the method your provider and your player app both support on your device, keep the details private and use only services you are authorised to use.

Sources

Sources last checked: 26 November 2026.