Xtream Codes
TREX TV Xtream Codes Login Setup
Xtream Codes is an API, not an app. When a player offers “Login with Xtream Codes API” it is asking for three values, and it will then fetch your channels, categories, guide and on-demand library automatically. This is the connection method we recommend for every device that supports it.
Steps last verified 22 August 2026.
Before you start. Your TREX TV line details — server URL, username and password — are sent to you on WhatsApp or Telegram the moment your free 24-hour trial or paid plan is activated. Keep that message: every app on this page needs the same three values. If you have lost it, message support on WhatsApp and we will resend it.
What you need
- A player with Xtream Codes support — Smarters Pro, TiviMate, IBO, and most others
- The server URL, username and password from your activation message
The three fields
| Field | What goes in it | Common mistake |
|---|---|---|
| Server URL | The bare host, with http:// and the port — e.g. http://your-host:8080 | Pasting the long get.php?… link, or adding a trailing slash |
| Username | Exactly as sent, including case | Retyping instead of copying; l/1 and O/0 confusion |
| Password | Exactly as sent, including case | A space copied from the end of the message |
Why Xtream Codes beats a plain M3U
Categories survive
Channels arrive grouped the way we group them, instead of one flat list of thousands of entries.
The guide comes with it
No second EPG URL to configure — the API serves programme data alongside the channels.
On-demand appears
Films and series show up as their own sections. A flat M3U cannot express that structure.
It refreshes itself
New channels appear without you re-importing anything. See playlist not updating.
Checking your line is alive
Most players show a Account info or User info panel after login with your expiry date and your active connection count. If that panel loads, the line is working and any playback problem is local — go to troubleshooting. If it does not load, the credentials or the subscription are the problem — see app login failure.
Never post your line publicly. Anyone with those three values can use your connections, and a line being used from several countries at once is the most common reason a subscription stops working. If you think it has leaked, ask us to reset it.
Questions about this device
Can I use one line on several apps?
Yes. Configure as many apps as you like. Only simultaneous streams count against your connection limit.
What is the port for?
The server listens on a specific TCP port. If your activation message includes one, it must be in the URL. If it does not, the default port is implied and you should leave it out.
My player only asks for an M3U URL.
Then use the M3U playlist guide — the same credentials build that URL.

