Ubuntu – 401 error when accessing Plex Media Server

amazon-web-servicesnetworkingplexUbuntu

Quick rundown, I have setup an AWS ec2 instance running Ubuntu 14.04. I have installed Ples & I have opened the necessary ports (both in the security groups & through the firewall) for Plex. I have verified that the required ports are open. Just for clarity on this question the command

`sudo iptables -L`

outputs

`ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:32400`

I can also telnet to that port successfully.

I have also attached this PMS to my myPlex account. My mobile device can see it as an available server.

My problem is that when I try to connect to this server either through my web browser, or my mobile device I immediately get a 401 Unauthorized error. If I set up an SSH tunnel like so

ssh -T -N -L 32400:localhost:32400 -i PlexTest.pem ubuntu@my.public.aws.ip
I am able to access this web server via

http://localhost:32400/web

What would I have missed to be unable to access this server remotely?

Edit:

I did forget to mention in my post that I have also enabled remote access from the PMS itself.

https://dl.dropboxusercontent.com/u/22970579/Screenshot%202015-06-12%2013.01.57.png

Best Answer

My problem stemmed from the fact that I was hitting my.aws.pub.ip:32400

The correct URL to hit is my.aws.pub.ip:32400/web/index.html or my.aws.pub.ip:32400/web, unless you have setup some sort of reverse proxy to tell AWS to send all requests on that port to PMS.

Here is what I originally missed in the PMS documentation.

If you installed the Server on a device like a NAS, or the Server PC is somewhere else in the house, you'll need to know the Server's internal IP Address. Once you know that IP address, on a PC in your home:

In cases where you're installing Plex Media Server on a remote system, you'll need to first connect to it so that you can access it as if the system were local. Please see information in the Installation article for details.

https://support.plex.tv/hc/en-us/articles/200264746-Quick-Start-Step-by-Step

Related Question