Configure IPtables to allow Plex Media Server

I could write quite a lengthy post about configuring and setting up the Plex Media Server (PMS), however I’ve decided that this post will be short and sweet. To get Plex working properly you will need to allow incoming packets on the the following ports on your server machine. I have also provided the Plex part of my IPtables configuration in case that would be useful for a reader.

32400 32400

Here is the Plex part of my IPtables configuration file from CentOS6.5. It’s location on the server is: /etc/sysconfig/iptables

This configuration is confirmed working on following devices both through the Plex app or via DLNA:

  • Google Nexus 7 2013 (Android)
  • Samsung smart TV
  • Any machine with a browser

Hopefully that will save someone a few hours work trying to figure it out themselves. Happy new year! Jack. I’ve had a few requests for the entire IPtables script i use on my Plex server – So here it is:


  1. TimeSearcher says

    Fedora 20 KDE desktop users are fortunate in having the “All Applications | Administration | Firewall” configuration applet available to will let them configure the Plex ports.

  2. TimeSearcher says

    I should also mention that you use the firewall configuration applet to add these ports to both the “Public” and “Trusted” zones.

    Thanks for your article, Jack!

  3. TimeSearcher says

    You’ll need to use the command line to make firewalld changes permanent.

    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=32400/tcp
    [sudo] password for michael:
    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=32400/udp
    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=32410/udp
    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=32412/udp
    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=32414/udp
    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=1900/udp

  4. Chad says

    To add what I’ve found – I have just installed Plex Media Server running on Ubuntu (14.04) for some testing purposes to make sure I know how to get things running, and I’ve found I’ve needed to open these ports:
    TCP: 32400, 32469
    UDP: 35689, 50605

    Not sure if things have changed since whatever version you are running, but since I opened these 4 ports I’ve had no issues with either browsing to the server and watching stuff that way or running through Plex Home Theater on a Windows box that is hooked up to my tv.

Leave a Reply

Your email address will not be published. Required fields are marked *