Xtream UI Integration Guide
Connect your Xtream UI or XUI panel to IPTVbp for automated subscription provisioning, renewals, and credential management.
Xtream UI Integration Guide
Xtream UI (also known as XUI) is one of the most widely used IPTV panel systems. This guide covers connecting it to IPTVbp so that customer accounts are created and managed automatically.
Prerequisites
Before you begin, ensure you have:
- An Xtream UI panel that is installed, running, and accessible from the internet.
- Admin credentials for the panel.
- The panel URL including the port (e.g.
http://203.0.113.10:25500). - At least one bouquet/package configured in Xtream UI.
Step 1: Enable API Access
- Log into your Xtream UI admin panel.
- Navigate to Settings > General Settings.
- Ensure API is enabled.
- Note down your admin username and password -- these are used for API authentication.
Step 2: Add the Panel in IPTVbp
- In the vendor dashboard go to Services > IPTV Panels.
- Click Add New Panel.
- Fill in the form:
| Field | Value |
|---|---|
| Panel Type | Xtream UI |
| Display Name | My Xtream Panel (your choice) |
| Panel URL | http://203.0.113.10:25500 |
| API Username | Your Xtream admin username |
| API Password | Your Xtream admin password |
- Click Test Connection.
A successful test shows:
- Connection OK
- Authentication OK
- Packages found: N
If the test fails, see the Troubleshooting section below.
- Click Save.
Step 3: Map Packages
After adding the panel, click Configure Packages. IPTVbp retrieves all bouquets/packages from your Xtream panel. For each package you plan to sell:
- Verify the Package Name and Package ID match what you see in Xtream UI.
- Set Max Connections (the number of simultaneous streams).
- Toggle Is Reseller if this package creates reseller accounts.
- Add a description for internal reference.
Click Save when done.
Step 4: Create Products
Go to Products > Create New:
- Enter a product name (e.g. "Premium IPTV -- 1 Month").
- Set the price and billing cycle.
- Under Panel Configuration, select your Xtream UI panel and the desired package.
- Set the connection count.
- Optionally enable a trial period.
- Save and publish.
How Provisioning Works
When a customer completes a purchase:
- IPTVbp receives the payment confirmation (via webhook or redirect).
- The provisioning engine calls the Xtream UI API to create a new user line.
- The line is assigned to the selected bouquet with the configured connection limit and expiry.
- IPTVbp stores the generated username and password.
- A credentials email is sent to the customer with their username, password, server URL, and port.
For renewals the same process extends the existing line rather than creating a new one.
Credential Format
By default IPTVbp generates credentials in this format:
- Username: First part of the customer's email plus a random suffix (e.g.
john_a8k2). - Password: A random 10-character alphanumeric string.
You can customise the format in Settings > Provisioning.
Advanced: Multiple Panels
You can connect as many Xtream UI panels as you need. Common reasons:
- Geographic load balancing -- route European customers to a panel in Amsterdam and US customers to one in New York.
- Capacity management -- when one panel reaches its user limit, new orders go to the next panel.
- Content segregation -- different panels for different channel packages.
To enable automatic distribution, mark multiple panels as Active for new subscriptions and IPTVbp will round-robin between them.
Advanced: Reseller Accounts
To sell reseller packages:
- Create a reseller bouquet in Xtream UI with the desired credit allocation.
- In IPTVbp, map the package and toggle Is Reseller.
- Create a product linked to that package.
- When a customer purchases, IPTVbp creates a reseller account with the allocated credits.
Troubleshooting
Connection timeout:
- Verify the panel URL is correct, including
http://and the port. - Try the IP address instead of a hostname.
- Check that the panel server firewall allows incoming connections on the panel port.
- SSH into the panel server and confirm the service is running:
systemctl status xtreamcodes.
Authentication failed:
- Double-check the username and password.
- Try logging into the Xtream UI web interface directly with those credentials.
- Ensure API access is not restricted to specific IPs (or whitelist the IPTVbp server IP).
Packages not loading:
- Confirm at least one bouquet exists in Xtream UI.
- Click Refresh Packages in IPTVbp.
- Check the Xtream UI database is healthy (
mysql -e "SELECT COUNT(*) FROM bouquets").
Lines not being created:
- Check the IPTVbp Logs section for provisioning errors.
- Verify the selected package ID still exists in Xtream UI (packages may get deleted or renumbered after a panel update).
- Ensure the panel has capacity (some hosting providers limit the number of lines).
Related Articles
How to Integrate Xtream UI Panel
Complete guide to connecting and configuring Xtream UI / XUI panels with automated provisioning.
Plex Integration for IPTV Billing
Set up Plex as a media server alongside your IPTV panel and manage access through IPTVbp billing.
Common Panel Connection Issues
Diagnose and fix the most frequent panel connection problems including timeouts, authentication failures, and SSL errors.