# plexconnect failed to connect to https 443

**URL:** <https://forums.plex.tv/t/plexconnect-failed-to-connect-to-https-443/160365>\
**Category:** Apps & Creations\
**Created:** [September 26, 2016, 7:27pm UTC](https://forums.plex.tv/t/plexconnect-failed-to-connect-to-https-443/160365 "2016-09-26T19:27:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshuamc](https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/32.png) [@joshuamc](https://forums.plex.tv/u/joshuamc)\
**Post date:** [September 26, 2016, 7:27pm UTC](https://forums.plex.tv/t/plexconnect-failed-to-connect-to-https-443/160365/1 "2016-09-26T19:27:52Z")

</div>

Apple TV model 3 version 7.0.1

DNS - 192.168.0.14

Local address - 192.168.0.14

Windows 10

Plex server version 1.1.4.2757

Plex local - 192.168.0.14

Downloaded copy today of plex connect

[PlexConnect]  
enable\_plexgdm = True  
ip\_pms = 192.168.178.10  
port\_pms = 32400  
enable\_dnsserver = True  
port\_dnsserver = 53  
ip\_dnsmaster = 8.8.8.8  
prevent\_atv\_update = True  
enable\_plexconnect\_autodetect = True  
ip\_plexconnect = 0.0.0.0  
hosttointercept = [trailers.apple.com](http://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  
logpath = .

Keep getting the error plexconnect failed to connect to https 443 on the plex command line.

---

<div class="post-metadata">

**Author:** ![joshuamc](https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/32.png) [@joshuamc](https://forums.plex.tv/u/joshuamc)\
**Post date:** [September 26, 2016, 8:49pm UTC](https://forums.plex.tv/t/plexconnect-failed-to-connect-to-https-443/160365/2 "2016-09-26T20:49:42Z")

</div>

log file

21:47:45 PlexConnect: started: 21:47:45  
21:47:45 PlexConnect: Version: 0.5-dev-110616  
21:47:45 PlexConnect: Python: 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)]  
21:47:45 PlexConnect: Host OS: win32  
21:47:45 PlexConnect: PILBackgrounds: Is PIL installed? False  
21:47:45 Settings: getsetting enable\_plexconnect\_autodetect=True  
21:47:45 PlexConnect: IP\_self: 192.168.0.14  
21:47:45 Settings: getsetting [hosttointercept=trailers.apple.com](http://hosttointercept=trailers.apple.com)  
21:47:45 Settings: getsetting enable\_dnsserver=True  
21:47:46 DNSServer: started: 21:47:46  
21:47:46 Settings: getsetting port\_dnsserver=53  
21:47:46 Settings: getsetting ip\_dnsmaster=8.8.8.8  
21:47:46 Settings: getsetting prevent\_atv\_update=True  
21:47:46 DNSServer: \*\*\*  
21:47:46 DNSServer: DNSServer: Serving DNS on 192.168.0.14 port 53.  
21:47:46 DNSServer: intercept: [‘[trailers.apple.com](http://trailers.apple.com)’] =\> 192.168.0.14  
21:47:46 DNSServer: restrain: [‘[mesu.apple.com](http://mesu.apple.com)’, ‘[appldnld.apple.com](http://appldnld.apple.com)’, ‘[appldnld.apple.com.edgesuite.net](http://appldnld.apple.com.edgesuite.net)’] =\> 127.0.0.1  
21:47:46 DNSServer: forward other to higher level DNS: 8.8.8.8  
21:47:46 DNSServer: \*\*\*  
21:47:46 Settings: getsetting enable\_webserver\_ssl=True  
21:47:46 WebServer: started: 21:47:46  
21:47:46 Settings: getsetting port\_webserver=80  
21:47:46 WebServer: \*\*\*  
21:47:46 WebServer: WebServer: Serving HTTP on 192.168.0.14 port 80.  
21:47:46 WebServer: \*\*\*  
21:47:46 WebServer: started: 21:47:46  
21:47:46 Settings: getsetting port\_ssl=443  
21:47:46 Settings: getsetting certfile=./assets/certificates/trailers.pem  
21:47:46 Settings: getsetting certfile=./assets/certificates/trailers.pem  
21:47:46 WebServer: Failed to connect to HTTPS on 192.168.0.14 port 443: [SSL] PEM lib (\_ssl.c:2603)  
21:47:51 PlexConnect: Shutting down.  
21:47:52 WebServer: Shutting down (HTTP).  
21:47:56 DNSServer: Shutting down.  
21:47:56 PlexConnect: shutdown

---

<div class="post-metadata">

**Author:** ![joshuamc](https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/32.png) [@joshuamc](https://forums.plex.tv/u/joshuamc)\
**Post date:** [September 26, 2016, 8:57pm UTC](https://forums.plex.tv/t/plexconnect-failed-to-connect-to-https-443/160365/3 "2016-09-26T20:57:01Z")

</div>

Ok i sorted out the certificates error but now get this

21:56:01 PlexConnect: started: 21:56:01  
21:56:01 PlexConnect: Version: 0.5-dev-110616  
21:56:01 PlexConnect: Python: 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)]  
21:56:01 PlexConnect: Host OS: win32  
21:56:01 PlexConnect: PILBackgrounds: Is PIL installed? False  
21:56:01 PlexConnect: IP\_self: 192.168.0.14  
21:56:01 DNSServer: started: 21:56:01  
21:56:01 DNSServer: \*\*\*  
21:56:01 DNSServer: DNSServer: Serving DNS on 192.168.0.14 port 53.  
21:56:01 DNSServer: \*\*\*  
21:56:01 WebServer: started: 21:56:01  
21:56:01 WebServer: \*\*\*  
21:56:01 WebServer: WebServer: Serving HTTP on 192.168.0.14 port 80.  
21:56:01 WebServer: \*\*\*  
21:56:01 WebServer: started: 21:56:01  
21:56:01 WebServer: \*\*\*  
21:56:01 WebServer: WebServer: Serving HTTPS on 192.168.0.14 port 443.  
21:56:01 WebServer: \*\*\*  
21:56:08 PlexAPI: \*\*\*  
21:56:08 PlexAPI: PlexGDM - looking up Plex Media Server  
21:56:08 PlexAPI: \*\*\*  
21:56:09 PlexAPI: GDM: Servers discovered: 1  
21:56:09 PlexAPI: Servers (local, [plex.tv](http://plex.tv), MyPlex): 2  
21:56:10 PlexAPI: No Response from Plex Media Server  
21:56:10 PlexAPI: We failed to reach a server. Reason: Unauthorized  
21:56:10 PlexAPI: Traceback:  
Traceback (most recent call last):  
File “C:\Program Files\PlexConnect-master\PlexAPI.py”, line 432, in getXMLFromPMS  
response = urllib2.urlopen(request, timeout=20)  
File “C:\Python27\lib\urllib2.py”, line 154, in urlopen  
return opener.open(url, data, timeout)  
File “C:\Python27\lib\urllib2.py”, line 435, in open  
response = meth(req, response)  
File “C:\Python27\lib\urllib2.py”, line 548, in http\_response  
‘http’, request, response, code, msg, hdrs)  
File “C:\Python27\lib\urllib2.py”, line 473, in error  
return self.\_call\_chain(\*args)  
File “C:\Python27\lib\urllib2.py”, line 407, in \_call\_chain  
result = func(\*args)  
File “C:\Python27\lib\urllib2.py”, line 556, in http\_error\_default  
raise HTTPError(req.get\_full\_url(), code, msg, hdrs, fp)  
HTTPError: HTTP Error 401: Unauthorized

---

<div class="post-metadata">

**Author:** ![joshuamc](https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/32.png) [@joshuamc](https://forums.plex.tv/u/joshuamc)\
**Post date:** [September 26, 2016, 9:06pm UTC](https://forums.plex.tv/t/plexconnect-failed-to-connect-to-https-443/160365/4 "2016-09-26T21:06:42Z")

</div>

Just in case anyone has the same issues.

For certificates just try running them again

The authentication issue please follow here [https://forums.plex.tv/discussion/comment/1244304/#Comment\_1244304](https://forums.plex.tv/discussion/comment/1244304/#Comment_1244304)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:25pm UTC](https://forums.plex.tv/t/plexconnect-failed-to-connect-to-https-443/160365/5 "2020-01-08T19:25:00Z")

</div>


