How to set up a Plex media server and access it remotely
Discover how to configure a personal media library using the Plex media server on Windows, macOS, and Linux, and access it remotely over Meshnet.
Last updated
Discover how to configure a personal media library using the Plex media server on Windows, macOS, and Linux, and access it remotely over Meshnet.
Last updated
© 2024 Nord Security. All Rights Reserved.
Plex is a powerful media server software tool that allows you to organize, watch, and access your personal media files from various devices. You can use Plex to conveniently manage various types of media — for example, videos, pictures, and music.
Self-hosting a media server, such as Plex, can be empowering because you are in full control of your files and don’t have to upload them to the cloud. However, if you want to access your media while away from home, you would need to resort to setting up port forwarding. While opening up ports in your firewall may not be too difficult, it can leave your home network vulnerable to malicious attacks.
With the use of Meshnet, you can connect your Plex media server and all client devices to a single virtual network. This configuration allows you to remotely access your media from any device without exposing the server to outside connections.
This article contains instructions on how you can set up a media server using Plex on desktop devices and use Meshnet for secure remote connections.
To use Plex as a media server, you are required to have a Plex account. You can create a free account on the Plex sign-up page. Alternatively, you can use your Google, Facebook, or Apple account.
First, you need to install the Plex software on the device that you will use as the media server.
To install the Plex media server on Windows:
Visit the Plex downloads page.
Download the Plex media server installer for Windows.
Follow the instructions provided by the installation wizard.
Click Finish to complete the installation and launch the Plex media server.
Once the Plex media server has been installed, you can start the setup process by visiting its web interface.
Open your internet browser and navigate the following URL:
localhost:32400/web/
Select your preferred login method and log in to your Plex account.
Choose your preferences for activity sharing and click Finish.
On the How Plex works page, click Got it!.
Enter a name for your Plex media server, clear the Allow me to access my media outside my home checkbox, and click Next.
Remove the pre-configured media libraries, if there are any, by clicking the X button next to them. Click Next.
Select Done.
Upon finishing the server setup, you can freely navigate and customize your media server. Currently, you have not imported any media content to your server. You can choose to import locally stored media or shared media, such as shared folders.
To add media content that is stored directly on the server:
Open your Plex media server web interface.
In the upper-right corner, click the Settings button.
On the left, under Manage, click Libraries, and select Add library.
Select the type of media for this library. You can enter a custom name or leave the default one. Click Next.
Click Browse for media folder.
In the Add folder pop-up window, select the folder containing your media files. Alternatively, you can enter the folder’s path. Click Add.
Click Add library.
You should see a new entry for your added media location on the Libraries page.
Tip
If content from your media library is unavailable after adding it, restart your computer.
Aside from locally stored media, you can have network shares from your network-attached storage (NAS) devices or shared folders from your Meshnet peer devices. Media stored on such mediums must first be mounted to the operating system and only then can they be imported to the Plex media server.
Instructions for mounting network shares on Windows can be found in the Mount a shared folder section of the "Configure and access shared folders on Windows" article.
After mounting the shared drive, follow the steps from the Add locally stored media section to import your remote media files to your Plex media server.
If you regularly expand your media library, manually initiating a library scan each time can be tiresome. To avoid this, you can enable automatic library updates.
Open your Plex media server web interface.
In the upper-right corner, click the Settings button.
On the left, under Settings, click Library.
Select the Scan my library automatically checkbox.
Scroll down and click Save changes.
Your media library should be updated automatically each time there are any changes to its content.
Since Meshnet IP addresses use a different subnet than standard local area networks (LANs), devices in your Meshnet running Plex applications cannot automatically discover the media server. However, Plex allows you to specify custom URLs that are used for server discovery. You can use this option to provide your Meshnet details and enable connections to your media server over Meshnet.
Open your Plex media server web interface.
In the upper-right corner, click the Settings button.
On the left, under Settings, select Network.
Click Show advanced.
Clear the Enable relay checkbox, to use direct connections to your server.
In the Custom server access URLs, enter the following string replacing <NordName>
and <MeshnetIP>
with your media server’s Nord name and Meshnet IP address, respectively:
http://<NordName>:32400/,http://<MeshnetIP>:32400/
Example
http://secret.meerkat-himalayas.nord:32400/,http://100.96.239.157:32400/
Click Save changes.
With your Plex media server fully set up, you can access it over Meshnet to watch your media content remotely.
A convenient method to access your Plex media server from any device without installing additional software is via an internet browser.
Copy the Nord name of your Plex media server from the NordVPN app.
Open your internet browser.
In the URL field, paste the copied Nord name followed by :32400/
and press Enter.
Example
secret.meerkat-himalayas.nord:32400/
Log in to your Plex account.
Upon logging in, select your media library from the menu on the left. All of the content from the selected library should appear.
Another way to access your Plex media server is by using the Plex app on each device.
To install Plex on Windows:
Visit the Plex downloads page.
Download the Plex for Windows app.
Open the downloaded installer file.
Follow the installation wizard instructions to install Plex.
After installing the Plex app:
Launch Plex.
At the top of the page, click Sign in and select Sign in once more.
Log in to your Plex account and close the browser window.
Select the preferences for your media and click Finish setup.
From the menu on the left, click More.
Select your added media library.
In Finder , drag and drop the Plex media server app to the Applications folder.
Launch Plex media server. If you receive a confirmation dialog, select Open.
From the menu bar, click the Plex icon and select Open at login to start the Plex media server with each system reboot.