OS X Server / PlexConnect over internet?

Hi,

 

Finally got plexconnect working in my network:

 

What i did is:

 

- Installed PMS server on my OS X Server (Mavericks)

 

Even with the great tutorial here, i didn't get PlexConnect working on the Mavericks Server.

 

- Installed PlexConnect on my MacBook Air 2013

 

I installed PlexConnect on my MBair, installed the certi on my MBair and installed (through USB) the certi on my ATV3

== BAAMMMMM!! Working flawless!! ==

One BIG drawback of this setup is off course i need to have the MBair "online" when i want to watch movies/series. But for now it's ok... I really want an solution, so i can run PlexConnect on the Mavericks Server (be patient, i think ;) )

 

Question:

 

Is it possible to config my "Settings.cfg" in PlexConnect to my domain server where PMS is running on? 

 

I was thinking about:

 

Portforward 32400 on my airport extreme

 

Go to my brothers place, install PlexConnect on his iMac (which is completely configured to talk to my server), install the needed certi's on his iMac and ATV2 and we can "share" our movie database.

 

ip_plexconnect = his ip adress

 

What do you think?

 

 

 

Just to clarify, your saying you couldn’t get PlexConnect running on OSX Server (Mavericks)?

As for your question about connecting your brother to your PMS using your server and PlexConnect etc… It sounds hypothetically possible to me, but might be much harder to accomplish in practice than on paper.

Edit: Also, I’m assuming you might already know this but maybe not- assuming this setup does work, it would only work one way. I. E. - if the end goal is for you and your brother to be able to share your movie database, this method would only allow him to access your movies. If he has movies you want to access you’d be out of luck using this setup. Again, it sounds like you probably already know this, I’m just making sure. That’d be a huge pain to go to all the trouble of making it work and only having it, you know, half work.

Just to clarify, your saying you couldn't get PlexConnect running on OSX Server (Mavericks)? As for your question about connecting your brother to your PMS using your server and PlexConnect etc.... It sounds hypothetically possible to me, but might be much harder to accomplish in practice than on paper. Edit: Also, I'm assuming you might already know this but maybe not- assuming this setup does work, it would only work one way. I. E. - if the end goal is for you and your brother to be able to share your movie database, this method would only allow him to access your movies. If he has movies you want to access you'd be out of luck using this setup. Again, it sounds like you probably already know this, I'm just making sure. That'd be a huge pain to go to all the trouble of making it work and only having it, you know, half work.

Hi,

Yes i didn't get PlexConnect working correctly on the server. I really did a step-by-step check, double check, triple check... 

I think the problem for me was to configure the "website" part of the tutorial, i'm not familiar with Apache (yes i do not run website services). The DNS on the other hand was running correctly (nslookup trailers.apple.com give an correct output to my DNS). My server, on the other hand is an DNS. File, TM, Media server. 

So if you can explain me, which steps i must take to get it running. 

While i'm typing this, i think what to add to my server...? Because i did not use webstite services and my MBair runs correct. I can of course just install PlexConnect and nothing else? Like i did on my MBair? isn't it?

Why don’t you get help running it on Mavericks and then allow access to your brother through MyPlex, if he has a Plex client that supports it?

I don’t personally have PlexConnect running on OSX Server, so I admit, I’m a bit new here too. But having read over the tutorial ( http://forums.plexapp.com/index.php/topic/71085-a-guide-to-how-i-got-plexconnect-running-on-os-x-server-107/ ) it seems fairly straightforward. A lot of steps sure, but nothing too difficult. That said, if you think you messed up with the website portion of the installation, I’d advice starting there.

Also, I second f00b4r’s advice. Connecting you and your brothers media libraries through MyPlex would be significantly easier. Still though, if your trying to accomplish this without setting your brother up with a PMS, I still say the method you described sounds do-able. At least hypothetically.

Why don't you get help running it on Mavericks and then allow access to your brother through MyPlex, if he has a Plex client that supports it?

I was thinking about that, so he can just install plex iOS and airplay to his ATV...

What i wrote above btw didn't work... First an DNS error, fixed it to add trailers.apple.com to my DNS and now python gives an port 80 problem... So i must configure website again....

Forget it! It works fine with my MBair, for now i can live with that... 

Plex iOS and airplay sounds about as good a solution as any… The method you described, port forwarding with PlexConnect and what not though… Well it is interesting, if not that practical in your situation. I might just try it myself sometime. If you ever get around to getting it up and running I’m sure people would be interested! Good luck.

I had a similar set-up to you, before moving Plex across to my FreeNAS box.

PMS and PlexConnect running on an iMac, which I'd been running OSX10.9 betas for a few months.  Sounds like the problem is a conflict with the inbuilt web server in OSX Server already using the port (80) PlexConnect wanted to use?  If so, and you're not wanting to serve any web pages from your Mac, just kill it in Terminal using the following commands:

sudo apachectl stop

 

If you need to start the Apache web server again, enter:

 

sudo apachectl start

 

I suspect getting PlexConnect to run outside your LAN, and then connect and redirect back to a local PMS will be more problematic than getting it to work on your Mac!

PlexConnect outside of my LAN is properly a huge project and my knowledge about this is to bad...

Is VPN an option? So his iMac makes a part of my network (tunnel)?

If i kill Apache, does Plexconnect work correctly? And effect it other services?


If i kill Apache, does Plexconnect work correctly? And effect it other services?

Plexconnect doesn't need Apache, but by default it does want to listen on the same port, and it can't if Apache already has it open.  Try killing Apache and running Plexconnect on your Mac running OSX Server.  Pretty sure it will work and you won't notice any difference, unless you are running a web server on it.  If you need to, just start Apache back up or reboot the Mac and Apache will startup on boot anyway.

Plexconnect doesn't need Apache, but by default it does want to listen on the same port, and it can't if Apache already has it open.  Try killing Apache and running Plexconnect on your Mac running OSX Server.  Pretty sure it will work and you won't notice any difference, unless you are running a web server on it.  If you need to, just start Apache back up or reboot the Mac and Apache will startup on boot anyway.

I've tried this setup, but it does not work, this how i did it:

- Quit apache with terminal (copy/paste your) > successful 

- Downloaded and one time running PlexConnect,

- Configured the "Settings.cfg" (ip_pms, dnsmaster = False, etc.)

- Set DNS (trailers.apple.com to my server where PMS runs on, like the tut)

- Made certi's and copied to ./Asset/Cert..../

- sudo python "pathtoplexconnect/plexconnect.py"

ATV:

Set DNS to Server

Result: "failed to open trailers, try again" or something like that

Terminal seems ok, but no reaction!

Sounds like your over configuring things to me!

When I was running everything on my iMac it went something like this.

1. Install PMS (running on 192.168.168.50)

2. Install PlexConnect (also running on 192.168.168.50)

3. Start PlexConnect and check it starts DNS server and web server is listening (no problems with DNS, but had to kill Apache to get it to listen on port 80)

4. Change DNS setting on aTV to PlexConnect IP (i.e. 192.168.168.50)

5. Watch Plex through aTV :)

PlexConnect will try and find the PMS, but if it doesn't that should be the only thing you need to change (i.e. point PlexConnect to PMS, in my example the same IP address)

Are you also running a DNS server in OSX Server?  If you are, I suspect that's not going to help you.

I'm now running PMS and PlexConnect on a different box, but similarly needed to do very little to the default installation (just pointing PlexConnect at the PMS)

>>- Set DNS (trailers.apple.com to my server where PMS runs on, like the tut)

PlexConnect uses this address only for the very first call. Lateron - to remove the apple address from XML/JS files, PlexConnect sets up a "virtual" host named "atv.plexconnect". You got to add this host to your DNSServer as well...

Showing a log might help as well.

>>- Set DNS (trailers.apple.com to my server where PMS runs on, like the tut)

PlexConnect uses this address only for the very first call. Lateron - to remove the apple address from XML/JS files, PlexConnect sets up a "virtual" host named "atv.plexconnect". You got to add this host to your DNSServer as well...

Showing a log might help as well.

Ah! atv.plexconnect i didn't add...

Give it a try (again)...

I'll post my output here.

Thnx to all so far!

YES!

Thanks Adrianwi and Baa! It works! 

I was forgotten to add atv.plexconnect to my DNS and stupidly didn't refresh my profile on the ATV!

Two things left over:

1. Is it possible that my brother connect over VPN, use the profile that sits on my server and connect to my PMS?

2. Is there an (easy) Apple script so i can run PlexConnect on the background?

VPN setup seems like it would work to me, but if I had to guess if say it might be a bit laggy. That’s a lot of hoops to jump through. But then, I guess it can’t be too much worse than the method you were originally going to try.


VPN setup seems like it would work to me, but if I had to guess if say it might be a bit laggy. That's a lot of hoops to jump through. But then, I guess it can't be too much worse than the method you were originally going to try.

I think you're right...

Today i was testing a movie through PlexConnect installed and running on my MBair, as i mentioned in the TS and there was a little buffer (Airport Extreme AC protocol network, with a busy server). Over the internet is properly worthless.

I'll try the "myplex" option...

The fact that you could make it work is cool, but if it doesn’t work well in practice than what’s the point. So yeah, I’d go with MyPlex too. And that way, you get the added benefit of being able to access your brother movies too. It not just a one way sharing setup that way. Win win situation for you sir!

Using a VPN tunnel can also confuse PlexConnect due to different tunnel IP addresses getting assigned.

You're right, VPN tunnels on an different subnet and ip range i suppose. But just for fun and as learning "project" it would be an challenge. On the other hand, i don't think my brother understand all of this technical stuff and then he's annoyed because it doesn't work directly on his devices.

Ok, i think my question is answered right now. How about the startup script i asked, is there a way to get PlexConnect working in daemon (this is how it's called right?) mode? I read something about an update that's coming soon, to make this possible?

PS.

Sorry for my English btw, i'm not native speak/write English person (I'm from the Netherlands).