# \[HowTo\] Use Plex with No Internet

**URL:** <https://forums.plex.tv/t/howto-use-plex-with-no-internet/383325>\
**Category:** Tips, Tricks & How-Tos\
**Tags:** tipstricks\
**Created:** [March 3, 2019, 7:14pm UTC](https://forums.plex.tv/t/howto-use-plex-with-no-internet/383325 "2019-03-03T19:14:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sekthree](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sekthree/32/20440_2.png) [@sekthree](https://forums.plex.tv/u/sekthree)\
**Post date:** [March 3, 2019, 7:14pm UTC](https://forums.plex.tv/t/howto-use-plex-with-no-internet/383325/1 "2019-03-03T19:14:27Z")

</div>

I’ve seen far too many posts regarding “can’t connect to Plex with no internet”, and an uprising/outcry always ensues. It eventually settles down, but the lack of single point resources can be frustrating. I’ve been there, no internet - can’t google anything from a computer so a phone will have to do, but navigating through results and trying “solutions” can be daunting. I’m creating this How-To to help alleviate those posts and help everyone access their servers when the net is down. Couple of things before we get started.

**First** : There are fragmented Plex articles and resources out there that describe how to do exactly what I’m about to demonstrate, but I’d like to consolidate them into one single post for easy accessibility/search-ability. I WILL be using some of the screen grabs and instructions from some of these articles.

- [Network settings](https://support.plex.tv/articles/200430283-network/)
- [Opening Plex Web app from Local](https://support.plex.tv/articles/200288666-opening-plex-web-app/)
- [Advanced **HIDDEN** server settings](https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/)
- [Data Directory location](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/)
- [Internet and Network requirements](https://support.plex.tv/articles/200484903-internet-and-network-requirements/)

**Second** : **THIS SHOULD BE DONE BEFORE YOU ENCOUNTER HAVING NO INTERNET** , but it can be done when it does go down, _instructions for this at the way bottom._

**Third** : I am demonstrating based and stepping through the setup THAT I KNOW. Hopefully yours is similar. I am using the Linux distro (Ubuntu 16.04LTS). I might have something wrong, or different, I welcome any corrections, criticisms or comments.. so please let me know. I am displaying what i know works for me.

## When Do You Need Internet Access

There are a number of situations in which you will need an “internet” connection for either your Plex Media Server or a particular Plex app you’re using.

- **Fast User Switching**  
For Plex Pass subscribers making use of the Plex Home feature, an internet connection is required to authenticate when using the Fast User Switching feature to quickly switch between members of your Home. _For more please see_ : [Fast User Switching](https://support.plex.tv/articles/204232453-fast-user-switching/)

- **Certain Plex Apps**  
In some cases, certain apps may require an internet connection to use. Some, like game consoles, rely on the corresponding game service to be available. Others have components of the app itself that have to be loaded dynamically from an internet location. Affected apps:

\*Both the app and server must be signed in; cached connections can be used when internet is temporarily unavailable

# NETWORK SETTINGS

- To help make it easier to access my Plex Media Server, in my router settings I assigned a static IP to my server, as well as setup port forwarding to 32400. I’m not sure if this is entirely neccessary, but those are my settings so I’m providing it here. PMS = 192.168.1.9  

- Setup your Secure Connection to be “preferred”  
In the Plex Web App navigate to `Settings > Server > Network`  
Set `Secure Connections : Preferred`  

- Setup LAN IP addresses  
Click on the `Show Advanced` button at the top right of the settings area to toggle display of advanced settings. Scroll down to  
`List of IP addresses and networks that are allowed without auth`.  
Here the local subnet will need to be entered to allow the entire local network. My router gives addresses based off the 192.168.1.xx ip range, so here I have entered `192.168.1.0/255.255.255.0`. Depending on how your router is assigning IPs, the range might be different.  

> When the Plex Media Server is signed in to an account, specifying `127.0.0.1` will be ignored (you could instead use the specific LAN IP).

# ACCESS

- **Web Browser**  
Once the network settings have been configured, the PMS can be accessed via a webbrowser using the following: `http://[Local Plex Media Server IP Address]:32400/web`  
so in my case in the address bar I would enter `192.168.1.9:32400/web`  
In this image I am demonstrating accessing my PMS via the IP address while i have no internet (see bottom right corner showing exclamation on wifi).  
 ![noInternet](https://global.discourse-cdn.com/plex/original/3X/a/7/a7ffe9e62e6a4edb33c9166db7428980f9012269.jpeg)  
When selecting the server drop down, I can no longer see my shared servers, but rather my local PMS with status as _Nearby_  
 ![status](https://global.discourse-cdn.com/plex/original/3X/4/8/48861f05639d818a04910277acef7a9f9d685317.jpeg)
  - It’s been mentioned that during an internet outage users should NOT clear browser cookies for [plex.tv](http://plex.tv). Please read the following from @OttoKerner.

> Many users nowadays fiddle with their browser settings, so everything is cleaned out when the browser is closed.  
> While that is in general a good idea, it does make life complicated for a Plex web app user: it will invalidate the login session to [plex.tv](http://plex.tv) and therefore to one’s plex account.  
> Not only does one have to re-login to [plex.tv](http://plex.tv), the next time the browser is opened – logging-in is impossible if the internet is out!  
> This alone covers about 50% of all user’s ‘offline’ issues I reckon.

- **Roku**  
My main streaming devices are Roku 3’s.

- **Android** phone

# Network settings - when web browser is not possible/fails

While configuring network settings is easiest through the web browser, some folks (me included) might encounter an issue when the internet is down. This typically occurs when you have NOT already configured for offline access. If this is the case then directly configuring the preferences.xml file will need to be done. Each environment is different, and while I can’t provide examples for each one (if someone can i’ll be glad to edit and include in this post), the settings should be similar to my example. Again I am using Ubuntu 16.04LTS.

- Find Preferences file  
For your environment you will need to find where the settings file is stored. You can [Find directory locations here](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/), we will be working with the [Preferences.xml file](https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/). For my setup it is located here: `/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml` I can access via command prompt directly on my PMS box or via an SSH connection.
- Edit Preferences file  
I will be altering the Preferences file. Whenever altering any system or config files it’s always best to first make a backup copy of said file. After navigating to the directory location I execute the following command:  
`sudo cp Preferences.xml Preferences.bak`  
Once backed up i execute:  
`sudo nano Preferences.xml`  
With the preferences file open I browse through all settings to find the entry `allowedNetworks`. If this setting is NOT present i move the cursor to AFTER `PubSubServer="xx.xx.xx.xx"`(x’s are in place of numbers here), and before `OldestPreviousVersion="legacy"`. Here I enter the following line: `allowedNetworks="192.168.1.0/255.255.255.0"`  
Please Note: I’m currently going based off of my current preferences.xml, it’s a possibility that this setting can be entered anywhere in the file. I save the file using CTRL+X, then ‘Y’, then ‘Enter’.
- I don’t know if a restart is required, but if you can’t immediately access your PMS then either attempt to restart the server or the service.
  - To restart just the service on Ubuntu the following can be performed:  
`sudo service plexmediaserver stop`  
`sudo service plexmediaserver start `  
or  
` sudo service plexmediaserver restart`

I surely hope this helps someone. If there are any settings or steps I overlooked please let me know. Or any issues you have encountered and possible solutions. If anyone can provide setups to access from other streaming devices please do, I will include them in this tutorial. I apologize for not detailing things for other environments.

---

_[View the full topic](https://forums.plex.tv/t/howto-use-plex-with-no-internet/383325)._
