⚡ Quick answer
To set up Xtream Codes: open your player, choose 'Add via Xtream Codes API', then enter the server host (with port), your username and your password exactly as issued. Xtream auto-updates your channel list and EPG, which a static M3U URL can't.
Xtream Codes is the login method serious users prefer — instead of a frozen URL, the app authenticates each session and pulls a live channel list and TV guide. Here's how to enter it correctly the first time.
Configure Xtream Codes
Xtream Codes is an API, not a file. The player calls host:port/player_api.php with your credentials, receives a session token and a structured list of categories, streams and EPG. Because it re-authenticates per session, it survives token rotation and reflects channel changes live — the key advantage over a static M3U manifest.
PrimIPTV provides Xtream credentials with every plan, including EPG endpoints, so your guide data and channel list stay current without re-pasting anything.
Frequently asked questions
What's the difference between Xtream Codes and M3U?+
M3U is a static URL; Xtream is a live API login. Xtream auto-updates channels and EPG and survives token changes; M3U is simpler but can freeze.
Why does Xtream Codes login keep failing?+
Almost always a missing/wrong port, a case-sensitive password typo, or a maxed-out connection limit on another device.
Do I need the port for Xtream Codes?+
Yes. The host alone won't connect — you must include the port number your provider gave you.
