TrueNAS Scale giving Plex it's own ipaddress

Hi Everyone,

This handout is to supply your Plex with it’s own ipaddress. In my config I use a bridge network interface. For me, this is the solution for Plex finding the content folders on Truenas Scale.

Adding ipaddress to network interface:
Go to Network
Edit the Bridge interface
At the bottom click Add
Type the (free) static ipaddress and netmask
(the extra ipaddress will be added below the existing one at the bridge interface)
Click Test Changes, Confirm and Test changes
Click Save changes, Save

Testing added ipaddress:
Go to System, Shell
Type: ip a show [bridge interface]
(beside the first ipaddress you will see the ipaddress just added)

Configuring Plex with the new ipaddress:
Go to Apps, your configured Plex app
Click Edit
Sroll down to ‘Additional Environment Variables’ and click Add
At Name type: PLEX_PREFER_IPV4
At value type: [the new static ipaddress]
Scroll to the bottom and click Update
Your Plex app will evolve from Deploying to Running
(now your Plex will be running the new static ipaddress)

Registering new ipaddress at local DNS server:
If you run a local DNS server you can add the new ipaddress as DNS-record
(just for your convenience)