Issues with PlexConnect installation on ATV3

Hi everybody, my name is Adrien and I come from France.
I spent all my day trying to fix an issue with PlexConnect installation but cannot figure out.

 

Here is my configuration:

 

  • ATV2 or ATV3?: ATV3

  • Your ATV firmware version (found under the ATV settings > general > about > Apple TV software): 5.2.1 (6025)

  • The DNS server set on the ATV (found under the ATV settings > general > network > DNS): 212.27.40.241(Wireless) (at the beginning, then changed with the same IP of the device 192.168.000.012)

  • The device and operating system (including version number) that PlexConnect is installed on: MacBook Pro OSX 10.8.2

  • The local IP address of the device that PlexConnect is installed on: 192.168.000.012 (Wireless)

  • The device and operating system (including version number) that the Plex media server (PMS) is installed on: MacBook Pro OSX 10.8.2

  • The local IP address of the device that the Plex media server (PMS) is installed on: 192.168.000.012 (Wireless)

  • Where your media is stored (e.g. internal drive): External Hard Drive on Time Capsule on the same network (works with Plex/Web)

  • The PlexConnect version number (or if using Github source then a time and date of download; look at the creation date of the folder):07th June 11:46 a.m.

  • detailed description of the issue (the clearer you can make this the better):

The trailer app does not work as it should work. It starts to look for trailers and it stops. It is said it is not available. I tried several times but it remains the same. I remind you that I'm using the ATV wirelessly.
The only thing I did is to change the port (100) in the file : Webserver.py as 80 was already used.

I also noted that once I try to enter in the trailer app or another one, every move appear on the terminal window, if it can help you...

  • A log file (currently this is the output in your terminal/cmd window - we are looking to generate a separate log file):

Last login: Fri Jun  7 18:30:45 on ttys000
MacBook-Pro-de-Adrien:PlexConnect-XML_templates Sosa$ sudo ./PlexConnect.py
Password:
PlexConnect : ***
PlexConnect : PlexConnect
PlexConnect : Press ENTER to shut down.
PlexConnect : ***
PlexConnect : IP_self: 192.168.0.12
PlexGDM : ***
PlexGDM : looking up Plex Media Server
PlexGDM : ***
PlexGDM : servers discovered: 1
DNSServer : ***
DNSServer : Starting up.
DNSServer : intercept trailers.apple.com: 192.168.0.12
DNSServer : forward other to higher level DNS: 212.27.40.241
DNSServer : ***
WebServer : ***
WebServer : WebServer: Serving HTTP on 0.0.0.0 port 100.
WebServer : ***
DNSServer : DNS request received!
DNSServer : Source: ('192.168.0.13', 58276)
DNSServer : Domain: ax.init.itunes.apple.com
DNSServer : ***forward request
DNSServer : -> DNS response from higher level
DNSServer : DNS request received!
DNSServer : Source: ('192.168.0.13', 65265)
DNSServer : Domain: upp.itunes.apple.com
DNSServer : ***forward request
DNSServer : -> DNS response from higher level
 
Here is the file Settings.py
 
#!/usr/bin/python
 
"""
Global Settings...
"""
 
#
# Plex Media Server
def getPlexGDM():
    return True  # True: use PlexGDM (GoodDayMate) to auto discover PMS
 
def getIP_PMS():  # default IP, if GDM fails... todo: do we need this fall back?
    return '192.168.178.2'
def getPort_PMS():
    return 32400
 
#
# DNS/WebServer
def getIP_DNSmaster():  # Router, ISP's DNS, ...
    return '212.27.40.241'  # google public DNS
 
def getHostToIntercept():
    return 'trailers.apple.com'
 
Thank you in advance.
 

 

>> The only thing I did is to change the port (100) in the file : Webserver.py as 80 was already used.

You can not do that. aTV is requesting on port #80, PlexConnect has to answer port #80.

There is a settings.py file. You can do changes there... but even this might mess things up. Changing the WebServer or some other source is NOT a good idea.

Please... set it back to #80 - or re-get the sources. And kick your "other" application from port 80.

Thank you for your answer. I was worried that the issue was linked to this. I tried to modify the port 80 because my internet connection is shared with other people in the building and I cannot access to port settings. That's why I tried anything to enjoy this amazing alternative to jailbreak I was waiting for so many times. 
I guess there is no solution to use anoter port, right?

Why do you need to change it, port 80 should be available?

Port 80 is not available:

Here is what I get with the sudo command:

MacBook-Pro-de-Adrien:PlexConnect-XML_templates Sosa$ sudo ./PlexConnect.py
Password:
PlexConnect : ***
PlexConnect : PlexConnect
PlexConnect : Press ENTER to shut down.
PlexConnect : ***
PlexConnect : IP_self: 192.168.0.12
PlexGDM : ***
PlexGDM : looking up Plex Media Server
PlexGDM : ***
PlexGDM : servers discovered: 1
DNSServer : ***
DNSServer : Starting up.
DNSServer : intercept trailers.apple.com: 192.168.0.12
DNSServer : forward other to higher level DNS: 212.27.40.241
DNSServer : ***
WebServer : Failed to connect to port 80 (http): [Errno 48] Address already in use
PlexConnect : WebServer not alive. Shutting down.
DNSServer : Shutting down.
 
As a consequence I tried this command to check port 80:
 
sudo lsof -i :80 # checks port 80
 
Here is what I get:
 
MacBook-Pro-de-Adrien:PlexConnect-XML_templates Sosa$ sudo lsof -i :80 # checks port 80
COMMAND    PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
httpd       24 root    6u  IPv6 0x9ad6fad8f11013bb      0t0  TCP *:http (LISTEN)
httpd      287 _www    6u  IPv6 0x9ad6fad8f11013bb      0t0  TCP *:http (LISTEN)
Dropbox    738 Sosa   18u  IPv4 0x9ad6fad8ef111aa3      0t0  TCP 192.168.0.12:62702->108.160.163.35:http (ESTABLISHED)
httpd     1414 _www    6u  IPv6 0x9ad6fad8f11013bb      0t0  TCP *:http (LISTEN)
Google    6407 Sosa   74u  IPv4 0x9ad6fad8f20e61db      0t0  TCP 192.168.0.12:64027->par10s10-in-f4.1e100.net:http (ESTABLISHED)
Google    6407 Sosa   89u  IPv4 0x9ad6fad8f58ab36b      0t0  TCP 192.168.0.12:63971->r1.ycpi.vip.dee.yahoo.net:http (CLOSE_WAIT)
Google    6407 Sosa  202u  IPv4 0x9ad6fad8f5611913      0t0  TCP 192.168.0.12:64006->81.93.191.73:http (ESTABLISHED)
Google    6407 Sosa  207u  IPv4 0x9ad6fad8f58abaa3      0t0  TCP 192.168.0.12:64007->81.93.191.59:http (ESTABLISHED)
Google    6407 Sosa  245u  IPv4 0x9ad6fad8f2b9836b      0t0  TCP 192.168.0.12:63390->ec2-184-72-217-166.compute-1.amazonaws.com:http (ESTABLISHED)

But I cannot figure out what's the problem.
I don't know how to make port 80 available. Apparently Dropbox already uses it and i consider kicking it, but what about the rest?

You have an instance of Apache running. Try switching it to a different port to free up port 80.

Here is the problem, I do not have access to port settings as the internet connection is shared by all the building. The only thing I can do is to remove the problematic application.
What is a "instance of Apache"?

Apache is a web server built into OSX, from what you posted i can see that it is running on your machine so you can shut it down or change the port that it is using.

Do you know how I could shut it down or change the port it uses?

Yes but could you open a browser window at http://localhost first please?

What does it show?

Hi I think your 192.?.?.? Address is incorrect, 000 is incorrect for the 3rd octet, recheck it. That’s an invalid network.

Finally it worked. I just closed dropbox and the setup started. Apparently the IP is correct and the Apache instance does not have any impact on it.

Thank you for your help! I can finally enjoy this amazing application.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.