# How to set up IPTV on XCIPTV

> Install XCIPTV on Android TV, Fire TV Stick, or Android, then log in with Xtream Codes or an M3U playlist and set playback.

XCIPTV Player is an IPTV app for Android TV, Google TV, Android phones and tablets, and the Fire TV Stick. It has built-in ExoPlayer and VLC Player engines and native EPG support.

XCIPTV logs in directly on the device with Xtream Codes API credentials or an M3U playlist URL. It does not need the external MAC address portal that some Smart TV apps use.

## Before you start

You need your IPTV login details from your provider: the Xtream Codes API server URL, username, and password (recommended), or the full M3U playlist URL.

If your provider sent only one long M3U link and you need to log in with Xtream Codes, read [how to find the server address in an M3U URL](https://iptvfiesta.sx/help-center/article/how-to-find-server-address-in-m3u-url).

## Install XCIPTV

1. Install XCIPTV on your device:
   - **Android TV or Google TV:** open **Google Play Store**, search for **XCIPTV Player**, then select **Install**.
   - **Fire TV Stick:** open the **Downloader** app, enter the XCIPTV APK download code or link, then select **Install**.
   - **Android phone or tablet:** download **XCIPTV Player** from **Google Play Store**.

## Log in with Xtream Codes

Xtream Codes is the recommended login method for XCIPTV.

1. Open the **XCIPTV** app. The login prompt appears automatically.

2. In **Server URL**, enter the portal address from your provider, for example `http://line.provider.com:8080`.

3. In **Username**, enter your subscription username.

4. In **Password**, enter your subscription password.

5. Select **Sign In**. XCIPTV checks your account and downloads your channels, VOD movies, TV series, and EPG data.

## Log in with an M3U playlist

Use this method if your provider did not give you Xtream Codes API credentials.

1. On the login screen, select **M3U Playlist**, or select **Settings** in the corner to switch the login method.

2. Enter a name for the playlist, for example `My IPTV`.

3. Paste or type your full **M3U URL**.

4. Select **Sign In**. The app reads the M3U link and builds your Live TV and VOD lists.

To split the M3U link into separate Xtream Codes values, read [how to find the server address in an M3U URL](https://iptvfiesta.sx/help-center/article/how-to-find-server-address-in-m3u-url).

## Set the player and stream format

1. On the XCIPTV dashboard, select the **Settings** gear icon in the top right corner.

2. Select **Player Settings**.

3. Set **Player Type** for Live TV and VOD to **ExoPlayer**. Switch to **VLC Player** if video stutters.

4. Select **Stream Format**, then choose **HLS** or **TS**, depending on which format plays faster on your internet connection.

5. Save the settings and return to the dashboard.
