Plex is powerful media server software that streams your movies and TV shows to any Plex client—from web browsers and mobile apps to Android TV boxes and Smart TVs. It's flexible, fast, and keeps your library organized. In this guide, based on my hands-on experience, I'll walk you through building a standalone Plex server using a Raspberry Pi 4 and external hard drive.
Contents: Why the Pi 4? | Creating the Pi Plex Server | Preparing the Pi | Installing the Plex Server | Breaking out the popcorn
The Raspberry Pi 4 is ideal for a Plex server due to its performance. It's nearly as capable as a low-end laptop and features USB 3.0 ports for high-speed hard drive connections—crucial for smooth video streaming.

Start by installing Raspberry Pi OS (formerly Raspbian) from the official download page. Use tools like balenaEtcher to flash the image onto your SD card.
Insert the SD card, boot the Pi, and log in with username pi and password raspberry.
Update the system fully:
sudo apt-get update sudo apt-get upgrade
Reboot after updates. Log in again.

Install HTTPS support for APT:
sudo apt-get install apt-transport-https
Add the Plex GPG key:
curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
Add the Plex repository:
echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
Update APT again:
sudo apt-get update
Install Plex:
sudo apt-get install plexmediaserver
To set a static IP, first find your current IP:
hostname -I
(Example: 192.168.0.53—yours will vary based on your router.)
Edit cmdline.txt:
sudo nano /boot/cmdline.txt
Add at the end: ip=192.168.0.53 (replace with yours). Save with Ctrl+X, then Y.
reboot
After reboot, access Plex via browser at https://192.168.0.53:32400/web/ (use your IP). The server should appear.

Add your media library (Movies, TV Shows, etc.) from your connected drive. Plex organizes files automatically.

Notes from experience: No need to change username to 'plex'—defaults work fine.
For USB drives, ensure they're mounted. On Raspberry Pi OS Lite, mount manually or edit /etc/fstab for auto-mount. For external HDDs, format and mount as needed—see our Raspberry Pi NAS guide for details.
Hot-swap drives if adding files, then remount; Plex updates the database automatically.
Questions? Drop a comment below—happy streaming!