AFKast AFKast
Xtream Codes · Xtream API

Xtream Codes Player: Sign In With Server, Username and Password

AFKast is a player that works with the Xtream Codes login your IPTV provider gives you. Enter the server URL, username and password once, and live TV, movies, series and the program guide arrive already sorted into categories.

AFKast Xtream Codes player showing live TV categories and the EPG program guide

What your Xtream Codes account looks like in AFKast

Three-field Xtream login

No wrestling with a long M3U link: just enter the server URL, username and password from your provider.

Live TV, movies and series apart

The Xtream API already separates content by type, so AFKast shows live channels, movies and series in their own sections using your provider's categories.

EPG from your provider

If your provider supplies program data, you see what is on now and what comes next right in the channel list. XMLTV guides are supported too.

Favorites, search, continue watching

Pin the channels you watch most, search across thousands of titles and pick up a movie or episode exactly where you left off.

Profiles and sync

Everyone at home can have a profile, with an optional PIN. Sign in with an AFKast account and favorites and watch history sync across your devices.

Subtitles, audio and playback tools

Subtitle and audio track selection, playback speed and a sleep timer, plus HDR10 and HLG on compatible devices and content.

How to add an Xtream Codes login to AFKast

  1. 1

    Get your login from your provider

    Have the server URL (including the port, e.g. http://example-server.com:8080), username and password from your legal IPTV provider ready.

  2. 2

    Install AFKast

    Use the App Store for iPhone, iPad and Mac, or the Microsoft Store for Windows. Android and Android TV are available on Google Play.

  3. 3

    Choose Xtream Codes

    When adding a new playlist, pick the Xtream Codes option, give it a name and fill in the server, username and password fields with no extra spaces.

  4. 4

    Let the categories load

    AFKast connects to your provider's server and loads live TV, movie and series categories plus any EPG data. Large accounts can take a little while.

  5. 5

    Organize and sync

    Mark your favorites and choose a profile. If you are signed in to an AFKast account, the same playlist and favorites are waiting on your other devices.

What is an Xtream Codes (Xtream API) login?

Xtream Codes started out as the name of a stream management system used by many IPTV providers. Today the term mostly describes the login method that system introduced, known as the Xtream API. Instead of one long link, your provider gives you three details: a server URL (usually with a port number), a username and a password. An Xtream Codes player uses them to connect to your provider's server and request live channels, movies, series and program data directly from it.

One distinction matters: an Xtream Codes login is not a subscription, it is simply a way to access the subscription you already have. Only your own IPTV provider can give you these details. AFKast does not hand out accounts, channels or playlists; it connects to your provider using your login.

Why Xtream is often better organized than a plain M3U

A plain M3U file is essentially a list of links, one after another. Categories depend on group-title tags, and logos and guide matching depend on how carefully the file was put together. The Xtream API delivers content in a structured way instead:

  • Split by type: live TV, movies (VOD) and series come from the server separately, so films never clutter your channel list.
  • Seasons and episodes: series can be listed by season and episode rather than as one endless list.
  • Richer details: where the provider has filled them in, posters, plot summaries, year and runtime come along too. Their quality depends entirely on the provider's server.
  • Program guide: if the provider offers EPG, it arrives already matched to channels, often with no separate XMLTV link to hunt for.
  • Up-to-date content: every refresh reads the current categories and titles from the server.

That does not make Xtream better in every case. Some providers only offer M3U, and some Xtream data is incomplete. For a fuller comparison, read Xtream Codes vs M3U.

Xtream Codes loginM3U / M3U8 link
What you enterServer URL + username + passwordA single link or file
CategoriesStructured, straight from the serverDepend on group-title tags
Movie and series detailsPosters, plots, seasons/episodes if the provider adds themUsually name and logo
EPGThrough the API, if the provider offers itMay need a separate XMLTV link
Copy-paste riskThree short fieldsOne long URL where a single typo breaks it

Live TV, movies and series in AFKast

Once your Xtream Codes login is added, AFKast groups everything into three main sections. Live TV shows your provider's categories, channel logos and EPG where available. Movies and Series behave like a library, with posters, descriptions and a season-and-episode layout for shows. Anything you have not finished waits for you in "continue watching".

The everyday tools are the same everywhere: favorites, fast search, profiles (with an optional PIN), subtitle and audio track selection, playback speed and a sleep timer. HDR10 and HLG are supported on compatible devices and content.

EPG: the guide comes from your provider

With the Xtream API, the program guide is read from your provider's server. So if one channel shows an empty guide, the cause is usually that the provider supplies no program data for it, not the player. AFKast also supports guides in XMLTV format. Our what is EPG guide explains how it all works.

Common Xtream Codes errors and how to fix them

Most "login failed", "cannot connect to server" or "empty playlist" messages come down to a handful of simple causes:

SymptomLikely causeWhat to do
Cannot reach the serverWrong server URL or missing portEnter the address exactly as your provider gave it, port included (e.g. http://example-server.com:8080). Do not add paths such as /get.php or /player_api.php.
Connection times outhttps instead of http (or the other way round)Use the protocol your provider specified. Many Xtream servers only work over http, and trying https can stop the connection.
Wrong username or passwordExtra spaces from copying, letter caseCheck each field by hand and remove leading or trailing spaces. Usernames and passwords may be case-sensitive.
Login refused after working beforeExpired or suspended accountCheck your subscription status with your provider; there is nothing to fix in the player.
Channel will not start, "max connections" messageToo many simultaneous connectionsYour provider's limit on simultaneous streams may be reached. Stop playback on your other devices and try again.
Movies or series section is emptyNo VOD in your package, or stale dataRefresh the playlist; if it is still empty, ask your provider whether your package includes movies and series.

If your provider also gives you an M3U link for the same account, you can run it through the free M3U Checker to tell whether the problem lies with the account or the login details. For more fixes, see IPTV not working.

Which devices can you use as an Xtream Codes player?

DeviceStatusWhere to get it
iPhone & iPad✅ AvailableApp Store
Mac✅ AvailableMac App Store
Windows✅ AvailableMicrosoft Store
Android phone & tablet✅ AvailableGoogle Play
Android TV & Google TV✅ AvailableGoogle Play

All options are on the download AFKast page.

Free plan and Pro

The free plan covers 1 playlist and 2 devices and includes ads. Pro removes ads and adds offline downloads (where the source allows it), picture-in-picture, custom groups and sync on up to 6 devices. "6 devices" does not mean 6 streams at once: how many streams can play simultaneously is set by your provider's connection limit. Details are on the pricing page.

Your login details and privacy

Your Xtream Codes username and password are the key to your subscription, so do not post them anywhere public. AFKast uses them only to connect to your provider's server. They are stored on your device, and if you sign in to an AFKast account, your playlist syncs to your other devices through that account so you do not have to type it again. You can remove the playlist from the app at any time.

💡 Tip: When copying the server URL from your provider's message, keep the leading http:// and the port number. A missing port or the wrong protocol is behind a large share of Xtream login errors.
🛡️
AFKast is a media player only. It does not host, sell, recommend or provide any channels, streams, content, playlists or Xtream Codes accounts. Use the app only with login details from your own legal IPTV provider. Watching or sharing copyrighted content without permission is against the law.

❓ Frequently Asked Questions

What is an Xtream Codes player?

An Xtream Codes player is an app that connects through the Xtream API using the server URL, username and password from your IPTV provider. AFKast uses those details to show live TV, movies, series and the program guide in organized sections.

Where do I get my Xtream Codes login?

Only from your own IPTV provider. AFKast does not supply accounts, channels or playlists and does not recommend any provider; your provider sends you the server URL, username and password.

Is Xtream Codes or M3U better?

If your provider offers both, the Xtream login usually gives tidier categories, movie and series details and EPG. The result still depends on the provider's data, and if you only have an M3U link, AFKast plays that too.

Why do I get a "cannot connect to server" error?

The usual causes are a missing port, using https instead of http, an extra path added to the address, or spaces picked up while copying. Enter the address exactly as given; if it still fails, ask your provider whether your account has expired.

Can I use the same Xtream account on several devices?

AFKast syncs your playlist to 2 devices on the free plan and up to 6 with Pro. How many streams can play at the same time is decided by your provider's connection limit; when it is reached, stop playback on another device.

Is AFKast available on Android and Android TV?

The Android phone, tablet and Android TV / Google TV version is available on Google Play. iPhone, iPad and Mac versions are on the App Store, and Windows is on the Microsoft Store.

Are my Xtream login details safe?

AFKast uses them only to connect to your provider's server. They are kept on your device and, if you sign in to an AFKast account, synced between your devices. Do not share them with anyone, and remember you can remove the playlist from the app at any time.

IPTV player for your other devices

📚 Related guides

AFKast

Use your Xtream Codes login with AFKast

Install the app, enter the server, username and password from your provider, and get live TV, movies and series neatly organized.

Download Free Pricing

🛡️ AFKast is a media player and does not provide channels or content. Use your own legal IPTV subscription.

AFKast Android · Android TV · iPhone · iPad · Windows · Mac