Just to be clear, what’s happening is that my browser is on the external IP address of the remote server, it has me log in, it stays on that IP address but it only shows the server on my home local network…
So if I run this on the server itself (it is linux) I would use 127.0.0.1 (localhost)?
Well… I just copied the contents from your repo, created my script, chmod on the file, ran it with relative path to the script. I know it is running the right one. I did a test of this:
root@ReadyNAS:/apps/plexmediaserver# cat test.sh
OK! So, it actually works as a bash script! But I am getting an error; it gives me a 401 unauthorized when it tries to hit the claim URL with the token.
Looks like you have root axx on your fathers ReadyNAS (wich may be usefull for us).
Firstly when connecting to the Plex server on your fathers end are you using: NASIP:32400/web/index.html ? Of not chances are you are being redirected to plex.tv’s app that yet has to have your fathers server signed in again under settings -> general.
If thats not working, have you tried ssh tunneling in to get direct local access to the Plex Media Server. So forward port 32400 from the NAS to a port of your choice, either 32400 or just 8888. Then connect to the local servers webpage.
So if on say Ubuntu do: ssh -l IpOfReadyNAS -L 8888:127.0.0.1:32400
You can also do this if running putty but then go to the ssh - tunnels options to set that up.
If that still doesn’t work it may require you to remove the entry in this key in Preferences.xml PlexOnlineMail="your@email.com", change it to: PlexOnlineMail="" and restart plex media server on the ReadyNAS. BE CAREFULL WHEN EDITING YOUR PREFERENCES FILE. MAKE A BACKUP FIRST! There is a chance that things will be reset if the file is not edited correctly.
So, I appear to have a config.xml and not a Preferences.xml. Mine contains:
root@ReadyNAS:/apps/plexmediaserver# cat config.xml
<Application resource-id="plexmediaserver">
<AppID>NETGEAR_GENIEAPP_000006</AppID>
<Category>APP_CAT_MEDIA</Category>
<Version>1.15.1.710-ece95b3a1</Version>
<MinFirmwareVer>6.6.0</MinFirmwareVer>
<Name>Plex Media Server</Name>
<Author>Plex Inc.</Author>
<RequireReboot>0</RequireReboot>
<LaunchURL>http://localhost:32400/web</LaunchURL>;
<InfoURL lang="en-us">https://www.plex.tv</InfoURL>;
<ConfigURL/>
<release-note>https://forums.plex.tv/t/plex-media-server/30447/last</release-note>;
<LicenseInfo>https://www.plex.tv/about/privacy-legal/plex-terms-of-service/</LicenseInfo>;
<DebianPackage>plexmediaserver</DebianPackage>
<ServiceName>fvapp-plexmediaserver.service</ServiceName>
<Description lang="en-us">Plex organizes all of your personal media so you can easily access and enjoy it.</Description>
<UnSupportedSysType>RN202,RN204</UnSupportedSysType>
</Application>