IPTV on Raspberry Pi: Kodi and Player Setup
Set up IPTV on a Raspberry Pi with LibreELEC and Kodi: choose the right Pi, install the PVR IPTV Simple Client, add your M3U playlist and guide, and fix issues.
By Vikings IPTV Editorial TeamUpdated 6 min read

A Raspberry Pi makes a tidy, silent IPTV box for the price of a takeaway and an afternoon. It will not match a commercial streaming stick for polish, and it cannot run the big subscription apps, but for playing your own playlist with a proper guide it does the job well, and you control every part of it.
This guide uses the simplest dependable route: LibreELEC, a small operating system that boots straight into the Kodi media centre.
Can a Raspberry Pi run IPTV?
Yes. A Raspberry Pi 4 or 5 running LibreELEC with Kodi plays IPTV through the official PVR IPTV Simple Client add-on. You enter an M3U playlist link and, optionally, an XMLTV guide link from your IPTV service, and Kodi shows the channels with a programme guide in its TV section.
What you need
| Item | Notes |
|---|---|
| Raspberry Pi 4 or 5 | 2 GB of memory is enough for playback |
| Official power supply | Underpowered supplies cause random crashes |
| microSD card, 16 GB or more | A reputable brand; cheap cards fail |
| Micro-HDMI to HDMI cable | The Pi 4 and 5 use micro-HDMI |
| Ethernet cable | Strongly recommended over Wi-Fi |
| Case with cooling | The Pi 5 in particular runs warm |
| A remote | Your TV's own remote usually works over HDMI-CEC |
| An M3U link | From your IPTV service |
Older models such as the Pi 3 can play standard and some HD streams, but menus are slow and high-bitrate channels struggle. A Pi Zero is not suitable.
One hardware note: the Pi 5 decodes HEVC video in hardware but handles H.264 in software. It is fast enough that this is not usually a problem for 1080p, but it is worth knowing if a particular stream stutters.
Step 1: Install LibreELEC
- On a computer, download Raspberry Pi Imager from the official Raspberry Pi website.
- Insert the microSD card.
- In Imager, choose your Pi model, then under the operating system list open Media player OS and select LibreELEC for your model.
- Choose the card as storage and write the image.
- Put the card in the Pi, connect HDMI and Ethernet, then power.
- Follow the first-run wizard: language, hostname and network.
Step 2: Install the IPTV add-on
Kodi handles live TV through "PVR client" add-ons. The one for playlists is in the official repository.
- From the Kodi home screen open Add-ons.
- Select Install from repository.
- Open PVR clients.
- Select PVR IPTV Simple Client and choose Install.
Use only the official Kodi repository. Third-party repositories and "builds" that promise free channels are a common source of unlicensed streams and malware.
Step 3: Add your playlist and guide
- After installing, select PVR IPTV Simple Client again and open Configure.
- Under the general settings, set Location to remote path (internet address).
- Enter your M3U playlist URL.
- Open the EPG settings and enter your XMLTV URL if your service provides one.
- Confirm with OK.
- Restart Kodi when prompted, or reboot the Pi.
The add-on needs an M3U link. If you were given an Xtream Codes login, ask your service for the matching M3U and XMLTV links; M3U vs Xtream Codes explains the formats.
Step 4: Watch
Open TV from the Kodi home screen. You will find Channels for the list and Guide for the programme grid. Large playlists take a minute or two to import the first time. Add regular channels to a favourites group through the channel manager in Settings > PVR & Live TV.
Settings worth changing
- Time zone. Set it under Settings > Interface > Regional, or guide times will be wrong.
- Refresh rate. In Settings > Player > Videos, enabling "Adjust display refresh rate" can smooth motion on some TVs.
- Audio. If you have no sound, check the audio output device under Settings > System > Audio.
- Startup. In Settings > PVR & Live TV > Playback you can have Kodi resume the last channel when it starts.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| TV menu is empty | Add-on not enabled or playlist not loaded | Check the URL; restart Kodi |
| "No PVR clients" message | Add-on disabled | Enable it under Add-ons > My add-ons > PVR clients |
| Guide is empty | No XMLTV URL, or channel IDs do not match | Add the guide link; ask your provider if still blank |
| Guide times are off | Wrong time zone | Set the region and time zone |
| Stuttering | Wi-Fi, a weak power supply or heat | Use Ethernet; check for the lightning-bolt power warning; add cooling |
| Random freezes or reboots | Power supply or failing SD card | Use the official supply; replace the card |
| A channel will not play | Stream format or source | Test the same link in VLC on a computer |
Testing a playlist in VLC is a quick way to tell a Pi problem from a service problem; see how to watch IPTV on VLC. For network issues, the buffering guide and the internet speed guide apply to a Pi like any other device.
Limits to know about
- No mainstream streaming apps. Services protected by DRM generally do not run on LibreELEC. The Pi is for your own playlists and local media.
- No Android apps. Players such as TiviMate will not install. Our guide to choosing the best IPTV player lists options for other devices.
- 4K is demanding. The Pi 4 and 5 can output 4K, but high-bitrate 4K streams depend on the codec and your network.
- It needs occasional care. Updates, SD cards and settings are your responsibility.
If you want something that simply works with a remote, a streaming stick is easier. If you enjoy tinkering, the Pi is rewarding.
Legality
Kodi, LibreELEC and the PVR IPTV Simple Client are legal, open-source software. As with any player, what matters is the playlist you load: the service supplying it must hold the rights to its content. See our overview of IPTV legality.
Frequently asked questions
Which Raspberry Pi is best for IPTV?
A Raspberry Pi 4 or 5. Both handle HD comfortably. Older models are slow in the menus and struggle with high-bitrate streams.
Is Kodi the only way to watch IPTV on a Raspberry Pi?
No, but it is the simplest. You can also run VLC on Raspberry Pi OS, which plays M3U links but has no proper programme guide.
Can I use an Xtream Codes login on a Raspberry Pi?
The PVR IPTV Simple Client needs an M3U link and an XMLTV link. Ask your service for the links that correspond to your Xtream Codes login.
Why is IPTV stuttering on my Raspberry Pi?
The usual causes are Wi-Fi, an inadequate power supply or overheating. Use Ethernet, the official power supply and a case with cooling.
Can a Raspberry Pi play 4K IPTV?
The Pi 4 and 5 support 4K output, and HEVC streams play best. Results depend on the stream's bitrate and your network, so test before relying on it.
Summary
For IPTV on a Raspberry Pi, write LibreELEC to a card, install the PVR IPTV Simple Client from Kodi's official repository, enter your M3U and XMLTV links and open the TV section. Use Ethernet, the official power supply and proper cooling, and most problems never appear.
Need M3U and guide links to load? Our plans provide them, and the installation hub covers other devices.



