Technical guide · Installation Silo

Xtream Codes and M3U List: the complete guide

When you activate an IPTV subscription, you are given either Xtream Codes, that's un lien M3U, sometimes both at once. These two formats open up access to exactly the same content, but they work differently and the ease of use is not the same.

This guide is part of our IPTV Installation pillar. It details what each format actually does, which to favour depending on your app, how to switch from one to the other, and how to resolve the most common errors. If you're starting from scratch, begin instead with our IPTV guide for beginners.

What is an M3U link?

M3U is a playlist format that has been around since the early days of MP3. Applied to IPTV, an M3U file is a text document that lists, one by one, all the channels in your subscription along with the address of their video stream. When your provider sends you an "M3U link", it is actually giving you a web address that generates this file on the fly, updated at the moment you open it.

Each entry in the file follows a simple structure. One line #EXTINF describes the channel — its name, its logo, its category — then the next line gives the stream URL. Multiply all that by 36,000 channels and you get a file several megabytes in size that your player has to download and parse in full before displaying anything at all.

#EXTM3U
http://server.com:8080/live/user/password/12345.ts
http://server.com:8080/live/user/password/12346.ts

This simplicity is both its strength and its weakness: any video player can open an M3U, including VLC on PC and Mac, but no programming data is included and the slightest change to the line-up requires a full reload.

What is Xtream Codes?

Xtream Codes is not a file but a programming interface. Instead of downloading the complete list all at once, your app communicates with the server and only requests what it needs: first the list of categories, then the channels in a category when you open it, then the video stream when you launch a channel.

In practice, you no longer enter a long URL but three separate fields: the server address, your username and your password. The app handles the rest. This way of working through successive requests explains why an Xtream interface opens in two seconds where an M3U playlist of 36,000 entries can take a minute to load on an entry-level Smart TV.

On-demand loading

Only the open category is downloaded, not all 36,000 channels.

Contenus separate

Live, films and series appear in three separate sections.

EPG integrated

The programme guide is sent by the server, with no manual setting.

Xtream Codes or M3U: the comparison

The two formats give access to the same subscription and the same picture quality. The whole difference comes down to ease of use and compatibility.

CriterionXtream Codes APILien M3U
What you enterServer URL + username + passwordA single complete URL
Loading speedFast, by categorySlow, full list
VOD separate from live Oui Everything is mixed together
Programme guideAutomatiqueÀ add manuellement
Channel updatesAutomatiqueRechargement manuel
VOD resume playbackSavedNon managed
Compatible VLC Non Oui
Usage recommendedUsage quotidienTesting and diagnosis

En highlights : utilisez Xtream Codes as soon as your app allows it — which is the case with TiviMate, IPTV Smarters Pro and almost all the modern players presented in our IPTV apps comparison. Gardez le M3U as a fallback and as a diagnostic tool.

Where to find your IPTV credentials

When your subscription is activated, you receive a message containing three pieces of information. They stay the same on all your devices and don't change for the whole duration of your plan.

Server URL

Format http://domain.com:port. The port number is an integral part of the address: without it, the connection fails every time.

Username

A string of letters and numbers, case-sensitive. A single missed capital is enough to prevent the connection.

Password

Case-sensitive too. Always copy-paste rather than typing on the remote's keyboard.

A tip that saves a lot of time: before settling in front of the television, email yourself the activation message. Typing a twenty-character password on the remote is the step where most errors occur. On Fire Stick and Android TV, the Downloader app or a Bluetooth keyboard radically transform the experience — we detail these tips in the Fire Stick installation tutorial.

Your credentials are personal. Sharing them causes simultaneous connections beyond your plan and leads to dropouts, for you first of all. If you suspect a leak, request a reset from the support client.

Setting up your codes app by app

The steps change a little depending on the player, but the principle stays the same: select Xtream Codes mode, enter the three fields, confirm. Here are the most common cases.

IPTV Smarters Pro

  1. Launch the app and select Login with Xtream Codes API.
  2. Enter a profile name of your choice, for example "Living room" or "Bedroom".
  3. Paste the server URL with its port, then the username and the password.
  4. Confirm: the Live TV, Movies and Series categories appear separately.

Advanced settings, buffer and subtitles in our complete IPTV Smarters Pro guide.

TiviMate

  1. Menu Add playlist then Xtream Codes.
  2. Enter the URL, the username and the password.
  3. Enable the EPG download at the next step.
  4. Select the channel groups to display to lighten the interface.

Detailed configuration in the guide TiviMate, and a comparison of the two players in TiviMate or IPTV Smarters.

VLC — M3U link only

  1. Menu Media then Open a network stream.
  2. Paste the full M3U link then confirm.
  3. The channel list appears in the side playlist.

VLC supports neither the Xtream API nor the EPG, but it's the best tool for diagnostic : if the stream plays in VLC, your credentials are valid and the problem lies elsewhere. See IPTV on Windows PC and Mac.

Samsung and LG Smart TVs

The native Smart TV apps (Smart IPTV, Set IPTV, Net IPTV) mostly work with lien M3U, generally via a web portal where you register your TV's MAC address before pasting the playlist into it.

Detailed procedure in our comparison of IPTV apps for Smart TV and in the tutorial IPTV on Samsung and LG Smart TVs.

The MAC portal: the third format

Less well known than the other two, the MAC portal equips MAG-type boxes and Stalker-compatible apps. The principle changes: you provide neither username nor password, but theadresse MAC of your device, a unique number written into its hardware. The provider links this address to your subscription, then sends you a portal URL to enter in the box's settings.

The advantage is security: no password travels and the subscription cannot be used elsewhere. The downside is rigidity — change box and you have to get the new MAC address re-associated. That's why this mode remains reserved for dedicated boxes, whereas the box Android presented in our Android TV boxes comparison use the classic Xtream Codes.

Switching from one format to the other

Good news: the two formats contain the same information, which lets you reconstruct one from the other without asking your provider for anything. A classic M3U link looks like this:

http://serveur.com:8080/get.php?username=IDENTIFIANT&password=MOTDEPASSE&type=m3u_plus&output=ts

The three coloured elements sont your Xtream Codes: the server with its port, your identifiant and your password. So if you've only received an M3U link, you can use it in Xtream mode straight away.

The reverse works too: from your three Xtream fields, reconstruct the URL above by substituting the values, and you get an M3U link usable in VLC or in a Smart TV app that only accepts that format.

Setting up the programme guide (EPG)

The EPG shows the current and upcoming programme for each channel. In Xtream Codes mode, it is delivered automatically by the server: no action is required, and a daily refresh starts on its own.

In M3U mode, the EPG has to be added separately in the form of a second URL, most often in XMLTV format and ending with xmltv.php. You enter it in the "EPG URL" or "TV Guide" field of your app. If the programmes don't display despite a correct URL, the most common cause is a time-zone offset in the player's settings.

À noter : a complete EPG across 36,000 channels makes for a large file. On low-powered devices, restrict the EPG to the channel groups you actually watch — the smoothness gain is immediate.

Common errors and their solution

Invalid credentials

A space slipped in when pasting, or the capitalisation doesn't match. Re-paste the three fields from the original message without retyping them manually. Also check that the port is indeed present after the domain name.

The list loads but no channel starts

The port is blocked by your router or your internet provider. Test it using mobile tethering: if everything works, the block comes from the home network and a DNS change or a VPN usually solves the problem.

Endless loading at startup

Too many channels loaded all at once in M3U mode. Switch to Xtream Codes, which load by category, or hide the channel groups you don't watch.

The programme guide stays empty

In M3U, the EPG is added separately via an XMLTV URL. In Xtream Codes, force an EPG refresh in the settings and check the device's time zone.

Regular dropouts at peak times

Rarely a credentials issue. Most often, it's the bandwidth or the Wi-Fi at fault: our buffering-fix guide details the diagnostic method.

Connection error on a single device

You're exceeding the number of simultaneous streams in your plan. Fully close the app on the other devices — putting it to sleep doesn't always release the connection.

If the dropouts persist after checking the credentials, apply the full method for resolving IPTV buffering and check your internet speed actually available.

Securing and managing your credentials

Never publish your codes

A credential posted on a forum is exploited within minutes and saturates your connection quota.

Respect your simultaneous streams

A 1-screen plan can be installed on as many devices as you like, but only plays one stream at a time.

Prefer the Ethernet cable

Most dropouts blamed on credentials actually come from Wi-Fi on the TV.

Keep the activation message

Store it in a dedicated email folder: it will come in handy with every new device.

If you watch on several sets at home, a multi-screen plan avoids connection conflicts: see our guide family and multi-screen IPTV. As for encrypting your traffic, our VPN guide for IPTV explains when a VPN brings a real benefit and when it harms smoothness.

Receive your codes in 5 minutes

Every subscription comes with your Xtream Codes credentials et your M3U link, as well as installation assistance on the device of your choice.

OFFER LIMITED

IPTV Subscription Pack

IPTV 12 MONTHS Premium

Smart TV, Mobile, PC

£89→£51.99

à peine £4.33/month

+36 000 HD/4K channels
VOD & Catch-up included
1 Month Free
SUBSCRIBE NOW

or start with 1 month at £10.99

30-day guarantee|Secure Payment

Frequently Asked Questions

An M3U link is a simple text file containing the complete list of channels. Xtream Codes is an API: you enter a server address, a username and a password, and the app queries the server to retrieve the channels, the VOD and the programme guide separately. Xtream Codes loads faster, updates the list automatically and separates live from video on demand. M3U remains handy for players that don't support the API, such as VLC.
They reach you by WhatsApp or by email when your subscription is activated. The message contains three elements: the server URL (often in the format http://domain.com:port), your username and your password. Keep this message: they are the same credentials on all your devices, whatever app you use.
The credentials work on any device, but the number of simultaneous streams depends on your plan. A 1-screen plan only allows one playback at a time: you can install the app on the TV, the phone and the PC, but only one device can watch at the same time. Family plans allow 2 to 5 simultaneous streams.
Three causes, in order of frequency: the link was copied incompletely (it must end with &type=m3u_plus&output=ts), the subscription has expired, or your internet provider is blocking the port used. Test the link first in VLC on a computer. If it works there but not on the TV, the problem comes from the app or the local network, not the credentials.
It's a third connection mode, used by MAG-type boxes and Stalker emulators. Instead of a username and a password, you give the MAC address of your box and the provider links it to your subscription. You then enter a portal URL in the box's settings. The advantage is that no password travels; the drawback is that the subscription is tied to one specific device.
Rarely for more than a few hours. These codes are credentials shared publicly: the server caps simultaneous connections, access saturates immediately and the account is disabled. They also expose you to unmanaged servers that may log your IP address. A short plan from an identified service, such as a single month, gives complete, stable access from day one.
It isn't essential to make it work. A VPN proves useful in two situations: if your internet provider slows down or blocks certain streaming ports, and if you want to conceal your network activity. Beware, a poorly chosen VPN adds latency and can degrade smoothness in 4K. Opt for a geographically close server.
In Xtream Codes mode, the update happens on its own: the new channels appear when the app restarts. In M3U mode, you have to manually reload the playlist from your player's settings. This is one of the major reasons to prefer the Xtream API when your app offers it.

Related Articles

Quick Answer

An M3U playlist is a text file listing channel stream URLs that any IPTV player can load, while Xtream Codes uses a login (username, password, server URL) for easier setup and built-in EPG. Both connect you to the same channels. EzzeTV provides both an M3U link and Xtream Codes credentials instantly after signup.

Related Articles