Xtream Codes, M3U or MAC portal: which IPTV login type to use
IPTV access comes in a few shapes: three fields called Xtream Codes details, a single M3U link, a MAC portal tied to a device, or an activation code for a specific app. "Xtream Codes vs M3U, which should I use?" is one of the most common setup questions, and the honest answer depends on the app and the device. This guide explains what each login type does behind the scenes, where it works, and how to choose.
Depending on the service, subscriptions bought through IPTV Shift come with one or more of these: Xtream Codes details, an M3U link, a MAG portal URL (the MAC portal type below), an activation code for the service's own app, or an account login for that app. You'll find them in your activation email and under Subscriptions in your account. The same ideas apply to any IPTV subscription. Examples use placeholders: http://example-server.com:8080, username and password.
The four login types at a glance
| Login type | What you enter | Typical apps | Strengths | Weak points |
|---|---|---|---|---|
| Xtream Codes | Server URL, username, password | TiviMate, IPTV Smarters Pro, XCIPTV, IPTVnator, Hypnotix | Live TV, films and series load separately; account details visible; guide found automatically | Needs an app that speaks the API |
| M3U link | One URL with the login inside | VLC, Kodi, Jellyfin, Plex through Threadfin, Tvheadend, Enigma2 plugins | Works almost everywhere; easy to filter | One large file; the guide is a separate link |
| MAC portal (Stalker) | A portal URL; the device's MAC address is the identity | MAG-style set-top boxes, TiviMate, Kodi's Stalker client, IPTVnator | Nothing secret to type | The MAC acts as the password; moving devices needs the provider |
| Activation code or device ID | A code, or the app's device ID or MAC address | Service apps, smart TV players such as IBO Player | Simple on TVs | Tied to one app; the playlist is managed on a website |
Xtream Codes: an API behind three fields
The name comes from a server panel whose API became a de facto standard. Many panels today answer the same calls, so "Xtream Codes login" now just means a server address, a username and a password that an app uses to talk to that API.
When you log in, the app calls player_api.php on the server with your username and password. The reply holds two blocks. The account block lists the status, the expiry date (exp_date), the number of connections the plan allows (max_connections), the connections in use (active_cons) and the stream formats the account may use. The server block includes the server's time zone. The app then asks for categories and lists with actions such as get_live_categories, get_live_streams, get_vod_streams and get_series, short guide data with get_short_epg, and the full guide from xmltv.php.
That structure explains most of what people like about Xtream logins:
- Films and series load per category when you open them, instead of arriving in one giant file.
- The app can show your expiry date and how many connections are in use, which helps when a second TV refuses to play.
- The guide address is known, so most apps load the TV guide without extra setup.
- Each live channel carries archive fields (
tv_archiveandtv_archive_duration), so apps know which channels offer catch-up and how far back the archive goes.
Entering Xtream details correctly
- Copy the server URL exactly as given, including
http://and the port:http://example-server.com:8080. Don't add/get.phpor/player_api.php; the app adds the path itself. - Type the username and password with the same letter case. Watch for a space copied from the email at the start or end.
- If the app asks for a playlist name, that is only a label for you.
- If the login fails in one app and works in another, check whether the first app wants the server with or without the port, and whether you typed
httpswhere the details sayhttp.
M3U links: one URL that works almost everywhere
An M3U link is a playlist file served on request. On Xtream-based panels it looks like this:
http://example-server.com:8080/get.php?username=username&password=password&type=m3u_plus&output=ts
The link contains your full login, so it deserves the same care as a password. type=m3u_plus adds guide IDs and logos to each entry. output=ts asks for MPEG-TS streams, while output=hls (or m3u8 on many panels) asks for HLS.
M3U is the universal format. Media servers and set-top box tools are built around playlists: Kodi's IPTV Simple client, Jellyfin's M3U tuner, Threadfin for Plex, Tvheadend and the Enigma2 bouquet makers all read M3U. You can also download the file and filter it.
The weaknesses are the mirror image. With films and series included, the file can be very large, and some devices time out while loading it. Guide data needs a second link. And because the file is a snapshot, apps refresh it on a schedule rather than querying the server for changes.
Converting between the two
On Xtream-based panels the two forms hold the same data. In the link above, everything up to and including the port is the server URL, and the username and password parameters are the other two fields. To go the other way, build the link from your three details with the pattern shown. This only works for Xtream-based panels; links of another shape can't be split this way.
MAC portals (Stalker middleware)
MAC portals come from the middleware used by MAG-style IPTV set-top boxes, known as Stalker and later Ministra. The box identifies itself by its network MAC address, and the provider registers that address on your account. You enter only the portal address, which often ends in /c/.
- Many portals expect an address in the
00:1A:79range used by MAG boxes, and Kodi's Stalker client starts from an address of that form. Apps that imitate a MAG box let you set or generate one. - Some portals also check a serial number, device ID or signature. Kodi's Stalker client has fields for these, which explains why a portal can work in one app and fail in another.
- The guide usually comes from the portal itself, although some clients can use an XMLTV file instead.
The appeal is that nothing secret is typed into the app. The catch is that the MAC address and portal together are the credential: anyone who copies both can use the account. Changing devices means asking the provider to move the registration, and fewer apps support portals at all. TiviMate lists Stalker portal support alongside M3U and Xtream Codes in its store listing, IPTVnator supports Stalker and Ministra portals, and Kodi has a dedicated Stalker PVR client.
Activation codes and device IDs
Two different systems share this label. Some providers' own apps ask for an activation code, which the provider links to your account on its side; you type the code and the app does the rest. Smart TV players such as IBO Player work the other way round: the app shows a device ID or MAC address, and you add your playlist, usually the M3U link, on the app's playlist page, where it's attached to that TV. Some of these players charge their own activation fee, separate from your subscription, so check the app's terms first. Our IBO Player guide walks through that upload method.
How to choose
- Android TV and Google TV: use Xtream Codes in a Google Play app that supports it, such as TiviMate or XCIPTV. Keep the M3U link as a fallback for apps that only take playlists.
- Fire TV: TiviMate and IPTV Smarters Pro aren't in the Amazon Appstore, and sticks with Vega OS install Appstore apps only, so use an Appstore app or the app your service's setup instructions name. The Fire TV article in the Devices and apps section explains the two systems.
- Phones and tablets: TiviMate is built for TVs, not phones. On Android, XCIPTV takes Xtream details; on iPhone and iPad, Smarters Player Lite does.
- Kodi, Jellyfin, Plex, Tvheadend and Enigma2: use the M3U link plus the XMLTV link. These tools are designed around playlists.
- Computers: Xtream Codes in IPTVnator, or in Hypnotix on Linux; M3U in VLC or mpv.
- Smart TV apps with a device ID: follow the app's upload method, using whichever format its website accepts.
- A MAG-style box: a portal login if your provider offers one; otherwise install an app that accepts M3U or Xtream details, if the box allows it.
You can use different login types on different devices with the same subscription. Every device that plays at the same time still counts toward the number of connections your plan allows, whatever the login type.
Keeping your login private
- An M3U link, an Xtream password and a portal with its MAC address are all full credentials. Don't post screenshots that show them.
- When you ask for help in a forum, replace the server, username and password with placeholders like the ones in this article.
- If you think a login has leaked, contact your provider's support so they can change it.