Hello,
I have been struggling with PlexConnect the whole week-end, with few results.
PlexConnect is up and ready on my Raspberry Pi. The aTV is able to access internet with the Pi as the DNS server.
I can log in into MyPlex with PlexConnect on the Apple TV.
The issue is: PlexConnect can’t find the PSM server.
On the contrary, the iOS app are able to reach my PMS and read content, the same for the webapp.
Please find below the details of my setup…
After a lot of reading on the forum, I have fine tuned a bit my installation, with no success…
I have spotted an error with Python:
URLError: <urlopen error [Errno -5] No address associated with hostname>
you will see the logs below…
Thks in advance for your help.
Your ATV model (2 or 3) and firmware version (found under the ATV settings > general > about > Apple TV software): aTV 3, firmware 7.2
The DNS server set on the ATV (found under the ATV settings > general > network > DNS): 192.168.x.xx (address of the Raspberry Pi running PlexConnect
The local IP address of the device that PlexConnect is installed on: 192.168.x.xx
The device and operating system (including version number) that PlexConnect is installed on: Raspberry Pi B, Raspbian Jessie, Python 2.7.9
The device and operating system (including version number) that the Plex media server (PMS) is installed on: Nas Synology DS 415+, DSM DSM 5.2-5644 Update 2
The Plex media server (PMS) version number you are running (do not put ‘latest’): 0.9.14.4
The local IP address of the device that the Plex media server (PMS) is installed on: 192.168.x.xz
The PlexConnect version number. If using Github source then a time and date of download (look at the creation date of the folder) and if you are using any non-standard setup or a fork. 0.5-dev-101215
The contents of your ‘Settings.cfg’ file (this is created at first clean shutdown of PlexConnect, using CTR+c)
[PlexConnect]
enable_plexgdm = False
ip_pms = 192.168.x.xz
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.8.8
prevent_atv_update = True
intercept_atv_icon = True
icon = movie-trailers
enable_plexconnect_autodetect = True
ip_plexconnect = 0.0.0.0
hosttointercept = trailers.apple.com
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
allow_gzip_atv = False
allow_gzip_pmslocal = False
allow_gzip_pmsremote = True
loglevel = Normal
PlexConnect.log (High):
192.168.x.xx= plexconnect IP address
192.168.x.yz= aTV IP address
192.168.x.xz= PMS IP address
18:30:24 PlexConnect: started: 18:30:24
18:30:24 PlexConnect: Version: 0.5-dev-101215
18:30:24 PlexConnect: Python: 2.7.9 (default, Mar 8 2015, 00:52:26)
[GCC 4.9.2]
18:30:24 PlexConnect: Host OS: linux2
18:30:24 PlexConnect: PILBackgrounds: Is PIL installed? True
18:30:24 Settings: getsetting enable_plexconnect_autodetect=True
18:30:24 PlexConnect: IP_self: 192.168.x.xx
18:30:24 Settings: getsetting hosttointercept=trailers.apple.com
18:30:25 ATVSettings: init class CATVSettings
18:30:25 ATVSettings: load settings
18:30:25 Settings: getsetting enable_dnsserver=True
18:30:25 DNSServer: started: 18:30:25
18:30:25 Settings: getsetting port_dnsserver=53
18:30:25 Settings: getsetting ip_dnsmaster=8.8.8.8
18:30:25 Settings: getsetting prevent_atv_update=True
18:30:25 DNSServer: ***
18:30:25 DNSServer: DNSServer: Serving DNS on 192.168.x.xx port 53.
18:30:25 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.x.xx
18:30:25 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld.apple.com.edgesuite.net’] => 127.0.0.1
18:30:25 DNSServer: forward other to higher level DNS: 8.8.8.8
18:30:25 DNSServer: ***
18:30:25 WebServer: started: 18:30:25
18:30:25 Settings: getsetting port_webserver=80
18:30:25 WebServer: ***
18:30:25 WebServer: WebServer: Serving HTTP on 192.168.0.xx port 80.
18:30:25 WebServer: ***
18:30:25 Settings: getsetting enable_webserver_ssl=True
18:30:25 WebServer: started: 18:30:25
18:30:25 Settings: getsetting port_ssl=443
18:30:25 Settings: getsetting certfile=./assets/certificates/trailers.pem
18:30:25 Settings: getsetting certfile=./assets/certificates/trailers.pem
18:30:25 WebServer: ***
18:30:25 WebServer: WebServer: Serving HTTPS on 192.168.x.xx port 443.
18:30:25 WebServer: ***
18:30:32 DNSServer: DNS request received!
18:30:32 DNSServer: Source: (‘192.168.x.xy’, 55425)
18:30:32 DNSServer: Domain: api-global.netflix.com
18:30:32 DNSServer: ***forward request
18:30:32 DNSServer: -> DNS response from higher level
18:30:32 DNSServer: DNS request received!
18:30:32 DNSServer: Source: (‘192.168.x.xy’, 61659)
18:30:32 DNSServer: Domain: nmtracking.eu-west-1.prodaa.netflix.com
18:30:32 DNSServer: ***forward request
18:30:32 DNSServer: -> DNS response from higher level
18:30:33 DNSServer: DNS request received!
18:30:33 DNSServer: Source: (‘192.168.x.xy’, 59146)
18:30:33 DNSServer: Domain: secure.netflix.com
18:30:33 DNSServer: ***forward request
18:30:33 DNSServer: -> DNS response from higher level
18:30:36 DNSServer: DNS request received!
18:30:36 DNSServer: Source: (‘192.168.x.xy’, 58072)
18:30:36 DNSServer: Domain: se.itunes.apple.com
18:30:36 DNSServer: ***forward request
18:30:36 DNSServer: -> DNS response from higher level
18:30:36 DNSServer: DNS request received!
18:30:36 DNSServer: Source: (‘192.168.x.xy’, 56279)
18:30:36 DNSServer: Domain: p43-buy.itunes.apple.com
18:30:36 DNSServer: ***forward request
18:30:36 DNSServer: -> DNS response from higher level
18:30:36 DNSServer: DNS request received!
18:30:36 DNSServer: Source: (‘192.168.x.xy’, 55713)
18:30:36 DNSServer: DNS request received!
18:30:36 DNSServer: Source: (‘192.168.x.xy’, 55713)
18:30:36 DNSServer: Domain: ichnaea.netflix.com
18:30:36 DNSServer: ***forward request
18:30:36 DNSServer: -> DNS response from higher level
18:30:36 DNSServer: DNS request received!
18:30:36 DNSServer: Source: (‘192.168.x.xy’, 56158)
18:30:36 DNSServer: Domain: a4.mzstatic.com
18:30:36 DNSServer: ***forward request
18:30:36 DNSServer: -> DNS response from higher level
18:30:40 DNSServer: DNS request received!
18:30:40 DNSServer: Source: (‘192.168.x.xy’, 53124)
18:30:40 DNSServer: Domain: trailers.apple.com
18:30:40 DNSServer: ***intercept request
18:30:40 DNSServer: -> DNS response: 192.168.x.xx
18:30:40 WebServer: http request header:
Host: trailers.apple.com
Accept-Encoding: gzip, deflate
Accept: /
Accept-Language: fr;q=0.9, en;q=0.8
Cookie: s_vi=[CS]v1|2A82003805012E1C-6000011260535F14[CE]
Connection: keep-alive
X-Apple-TV-Resolution: 1080
X-Apple-TV-Version: 7.2
User-Agent: AppleTV/7.2 iOS/8.3 AppleTV/7.2 model/AppleTV3,2 build/12F69 (3; dt:12)
18:30:40 WebServer: http request path:
/appletv/us/js/application.js
18:30:40 Localize: aTVLanguage: fr
18:30:40 WebServer: pms address:
18:30:40 WebServer: cleaned path:
/appletv/us/js/application.js
18:30:40 WebServer: PlexConnect options:
{‘aTVScreenResolution’: ‘1080’, ‘aTVFirmwareVersion’: ‘7.2’, ‘aTVLanguage’: ‘fr’, ‘aTVAddress’: ‘192.168.x.xy’}
18:30:40 WebServer: additional arguments:
18:30:40 WebServer: serving /js/application.js
18:30:40 Settings: getsetting allow_gzip_atv=False
18:30:40 WebServer: http request header:
Host: trailers.apple.com
X-Apple-Store-Front: 143442-3,19
Accept: /
Accept-Encoding: gzip, deflate
Accept-Language: fr;q=0.9, en;q=0.8
Cookie: s_vi=[CS]v1|2A82003805012E1C-6000011260535F14[CE]
Connection: keep-alive
X-Apple-TV-Resolution: 1080
X-Apple-TV-Version: 7.2
User-Agent: AppleTV/7.2 iOS/8.3 AppleTV/7.2 model/AppleTV3,2 build/12F69 (3; dt:12)
18:30:40 WebServer: http request path:
/&PlexConnect=Discover&PlexConnectUDID=C0HM7VBVFF54
18:30:40 Localize: aTVLanguage: fr
18:30:40 WebServer: pms address:
18:30:40 WebServer: cleaned path:
/
18:30:40 WebServer: PlexConnect options:
{‘aTVAddress’: ‘192.168.x.xy’, ‘aTVScreenResolution’: ‘1080’, ‘PlexConnectUDID’: ‘C0HM7VBVFF54’, ‘aTVLanguage’: ‘fr’, ‘aTVFirmwareVersion’: ‘7.2’, '$
18:30:40 WebServer: additional arguments:
18:30:40 WebServer: additional arguments:
18:30:40 WebServer: serving .xml: /
18:30:40 XMLConverter: ---------------------------------------------
18:30:40 XMLConverter: PMS, path: /
18:30:40 XMLConverter: Initial Command: Discover
18:30:40 ATVSettings: getsetting mytoken
18:30:40 ATVSettings: getsetting False
18:30:40 PlexAPI: ***
18:30:40 PlexAPI: poke plex.tv - request Plex Media Server list
18:30:40 PlexAPI: ***
18:30:40 PlexAPI: URL: https://plex.tv/api/resources?includeHttps=1
18:30:40 PlexAPI: xargs: {‘X-Plex-Token’: ‘mytoken’, ‘X-Plex-Platform’: ‘iOS’, ‘X-Plex-Model’: ‘3,1’, ‘X-Plex-Client-Platform’: ‘iOS’,
18:30:41 PlexAPI: ====== received PMS-XML ======
18:30:41 PlexAPI: <MediaContainer size="3">
<Device accessToken="mytoken" clientIdentifier="e8796c0650f567fd042e8161f571f51e05f64d96" createdAt="1438516672" device="DiskStation"
<Connection address=“192.168.x.xz” local=“1” port=“32400” protocol=“https” uri="https://192.168.x.xz.29a62912216c444fb3476cdf305e0c8d.plex.direc$
<Connection address=“my_external_IP_address” local=“0” port=“14472” protocol=“https” uri="https://my_external_IP_address.29a62912216c444fb3476cdf305e0c8d.plex.dir$
<Device accessToken=“mytoken” clientIdentifier=“DE235D56-E659-4A38-882B-3CEED4A23F38” createdAt=“1419543405” device=“iPhone” lastSeen$
<Device accessToken=“mytoken” clientIdentifier=“BE4BCC5D-C809-4607-BD47-760599EDCC6A” createdAt=“1428648577” device=“iPad” lastSeenAt$
18:30:41 PlexAPI: ====== PMS-XML finished ======
18:30:41 PlexAPI: URL: https://192-168-x-xz.29a62912216c444fb3476cdf305e0c8d.plex.direct:32400/
18:30:41 PlexAPI: xargs: {‘X-Plex-Token’: ‘mytoken’}
18:30:41 PlexAPI: No Response from Plex Media Server
18:30:41 PlexAPI: We failed to reach a server. Reason: [Errno -5] No address associated with hostname
18:30:41 PlexAPI: Traceback:
Traceback (most recent call last):
File “/usr/local/lib/PlexConnect-master/PlexAPI.py”, line 406, in getXMLFromPMS
response = urllib2.urlopen(request, timeout=20)
File “/usr/lib/python2.7/urllib2.py”, line 154, in urlopen
return opener.open(url, data, timeout)
File “/usr/lib/python2.7/urllib2.py”, line 431, in open
response = self._open(req, data)
File “/usr/lib/python2.7/urllib2.py”, line 449, in _open
‘_open’, req)
File “/usr/lib/python2.7/urllib2.py”, line 409, in _call_chain
result = func(*args)
File “/usr/lib/python2.7/urllib2.py”, line 1240, in https_open
context=self._context)
File “/usr/lib/python2.7/urllib2.py”, line 1197, in do_open
raise URLError(err)
URLError: <urlopen error [Errno -5] No address associated with hostname>
18:30:41 PlexAPI: Servers (local, plex.tv, MyPlex): 1
18:30:41 PlexAPI: {‘name’: ‘plex.tv’, ‘accesstoken’: ‘mytoken’, ‘address’: ‘plex.tv:443’, ‘enableGzip’: False, ‘ip’: ‘plex.tv’, 'scheme$
18:30:41 Settings: getsetting allow_gzip_atv=False
18:30:41 WebServer: http request header:
Host: trailers.apple.com
X-Apple-Store-Front: 143442-3,19
Accept: /
Accept-Encoding: gzip, deflate
Accept-Language: fr;q=0.9, en;q=0.8
Cookie: s_vi=[CS]v1|2A82003805012E1C-6000011260535F14[CE]
Connection: keep-alive
X-Apple-TV-Resolution: 1080