How to Setup Xtream Codes for IPTV - Complete Guide
Learn how to setup Xtream Codes API login for your IPTV player. Step-by-step guide for TiviMate, IPTV Smarters, and other popular apps.
How Do I Setup Xtream Codes for IPTV?
Quick Answer: To setup Xtream Codes: 1) Get your credentials (Server URL, Username, Password) from your provider, 2) Open your IPTV player and select 'Xtream Codes' or 'Login' option, 3) Enter the server URL (including port), 4) Enter username and password, 5) Connect. EPG and VOD load automatically with Xtream Codes.
Xtream Codes is preferred over M3U because it automatically loads EPG and organizes channels.
Xtream Codes is the most popular way to connect to IPTV services. Unlike M3U playlists, Xtream Codes automatically organizes your channels, loads EPG data, and provides access to VOD content. This guide shows you how to set it up on any player.
Understanding Your Xtream Codes Credentials
Your IPTV provider gives you three pieces of information: Server URL (like http://example.com:8080), Username, and Password. The server URL must include the port number (usually :8080 or :8000). These are different from your account login for the provider's website.
Setup in TiviMate
Add Playlist
Open TiviMate and go to Settings > Playlists > Add playlist.
Select Xtream Codes
Choose 'Xtream Codes' as the playlist type.
Enter Credentials
Enter your Server URL (with port), Username, and Password exactly as provided.
Connect
Tap 'Next' and wait for channels to load. EPG will populate automatically.
Setup in IPTV Smarters Pro
Select Login Method
On the home screen, choose 'Login with Xtream Codes API'.
Enter Details
Fill in your playlist name (anything you want), Server URL, Username, and Password.
Add User
Tap 'Add User' and the app will connect and download channel data.
Setup in Other Players
Most modern IPTV players support Xtream Codes login. Look for options labeled 'Xtream Codes', 'API Login', 'Portal Login', or 'Login with credentials'. The process is always the same: enter server URL, username, and password.
Troubleshooting Connection Issues
Check Port Number
The server URL must include the port. If your URL is 'http://example.com' without a port, try adding :8080 or :25461.
Verify Credentials
Copy and paste credentials directly - don't type them. A single character error prevents connection.
Try HTTP and HTTPS
If http:// doesn't work, try https:// (or vice versa). Some servers require specific protocols.
Frequently Asked Questions
What's the difference between M3U and Xtream Codes?
M3U is a simple playlist file listing channels. Xtream Codes is a full API that automatically provides organized channels, EPG, VOD, and more. Xtream Codes offers a better experience but requires a compatible provider and player.
Where do I find my Xtream Codes credentials?
Your provider sends credentials via email after purchase, or you can find them in your account dashboard on their website. Look for 'Server URL', 'Username', and 'Password' - these are different from your website login.
Can I convert Xtream Codes to M3U?
Yes. Use this format: http://SERVER:PORT/get.php?username=USERNAME&password=PASSWORD&type=m3u_plus. Replace SERVER, PORT, USERNAME, and PASSWORD with your actual credentials.
Why does Xtream Codes say 'connection failed'?
Usually: wrong URL/credentials, missing port number, wrong protocol (http vs https), or subscription expired. Double-check every character and try both http and https versions of the URL.
Related Guides
How to Setup EPG (TV Guide) for IPTV - Complete Tutorial
Learn how to setup and configure EPG (Electronic Program Guide) for your IPTV player. Step-by-step instructions for TiviMate, IPTV Smarters, Kodi, and more.
M3U Playlist Not Working? Fix Common IPTV Playlist Errors
M3U playlist not loading or showing errors? Learn how to fix the most common IPTV playlist problems with our step-by-step troubleshooting guide.
Written by
IPTV Guide Team
IPTV & Streaming Specialists