# PlexConnect.py quickly closes upon running

**URL:** <https://forums.plex.tv/t/plexconnect-py-quickly-closes-upon-running/83871>\
**Category:** Apps & Creations\
**Created:** [November 24, 2014, 12:37am UTC](https://forums.plex.tv/t/plexconnect-py-quickly-closes-upon-running/83871 "2014-11-24T00:37:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry\_butler](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jerry\_butler](https://forums.plex.tv/u/jerry_butler)\
**Post date:** [November 24, 2014, 12:37am UTC](https://forums.plex.tv/t/plexconnect-py-quickly-closes-upon-running/83871/1 "2014-11-24T00:37:33Z")

</div>

ATV 2 FIRMWARE

&nbsp;

DNS and IP of PlexConnect device match - ###.###.20.99

Media Server (same as PlexConnect/PMS device) is a PC running Windows 7 Home Premium SP 1. Should be noted that the server itself is working fine - friends who I've shared with have access, as do I when I run PlexConnect from my Mac (something I'm wanting to get away from by using this PC as a dedicated Plex machine).

PMS 0.9.1101

PlexConnect Version - downloaded 30 mins ago

I don't have a settings.cfg file as I haven't been able to run the program let alone do a clean shutdown.

&nbsp;

ISSUE: When I double-click PlexConnect.py, it quickly opens and immediately closes.

I also don't have a file name PlexConnet.log in the folder. I again assume it's because I haven't been able to do a clean shutdown. For the split second Python is open, I can see that it looks very similar to the feedback I'd receive when I use my Mac, but Python only remains open for half a second at most. I should also note that I have deleted everything and restarted the process only to get the same results.&nbsp;

Any help or guidance is appreciated.

---

<div class="post-metadata">

**Author:** ![bevanpfc](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bevanpfc/32/82627_2.png) [@bevanpfc](https://forums.plex.tv/u/bevanpfc)\
**Post date:** [November 24, 2014, 1:35am UTC](https://forums.plex.tv/t/plexconnect-py-quickly-closes-upon-running/83871/2 "2014-11-24T01:35:07Z")

</div>

Sorry I don’t have advice but I’m interested to see the outcome of this as I had the same problem as this trying to install plexconnect on my brother inlaw’s windows 7 pc a while ago, we gave up in the end and used the plex iOS app with AirPlay, it’s a shame there’s nothing simple like openplex for windows !

---

<div class="post-metadata">

**Author:** ![drewbie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drewbie/32/6262_2.png) [@drewbie](https://forums.plex.tv/u/drewbie)\
**Post date:** [November 24, 2014, 3:36am UTC](https://forums.plex.tv/t/plexconnect-py-quickly-closes-upon-running/83871/3 "2014-11-24T03:36:53Z")

</div>

try running plexconnect.py from a command window then you will see the actual error.&nbsp;

ALso is a plexconnect.log file created you can post?

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [November 24, 2014, 10:49am UTC](https://forums.plex.tv/t/plexconnect-py-quickly-closes-upon-running/83871/4 "2014-11-24T10:49:06Z")

</div>

> Sorry I don't have advice but I'm interested to see the outcome of this as I had the same problem as this trying to install plexconnect on my brother inlaw's windows 7 pc a while ago, we gave up in the end and used the plex iOS app with AirPlay, it's a shame there's nothing simple like openplex for windows !

Please do not hijack a thread as similar generic symptoms do not mean it is the same issue at all.

Read the sticky or the link in my signature which contains info on how to report a problem, if you can provide us the information in a new thread we will get you up and running with the minimal amount of frustration possible. :)

---

<div class="post-metadata">

**Author:** ![jerry\_butler](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jerry\_butler](https://forums.plex.tv/u/jerry_butler)\
**Post date:** [November 25, 2014, 12:37am UTC](https://forums.plex.tv/t/plexconnect-py-quickly-closes-upon-running/83871/5 "2014-11-25T00:37:26Z")

</div>

No log file to post. Here is what I get when I run the program via CMD.

&nbsp;

C:\Program Files\PlexConnect-master\>python PlexConnect.py

19:26:09 PlexConnect: \*\*\*

19:26:09 PlexConnect: PlexConnect

19:26:09 PlexConnect: Press CTRL-C to shut down.

19:26:09 PlexConnect: \*\*\*

19:26:09 Settings: add setting enable\_plexgdm=True

19:26:09 Settings: add setting ip\_pms=192.168.178.10

19:26:09 Settings: add setting port\_pms=32400

19:26:09 Settings: add setting enable\_dnsserver=True

19:26:09 Settings: add setting port\_dnsserver=53

19:26:09 Settings: add setting ip\_dnsmaster=8.8.8.8

19:26:09 Settings: add setting prevent\_atv\_update=True

19:26:09 Settings: add setting enable\_plexconnect\_autodetect=True

19:26:09 Settings: add setting ip\_plexconnect=0.0.0.0

19:26:09 Settings: add setting hosttointercept=trailers.apple.com

19:26:09 Settings: add setting port\_webserver=80

19:26:09 Settings: add setting enable\_webserver\_ssl=True

19:26:09 Settings: add setting port\_ssl=443

19:26:09 Settings: add setting certfile=./assets/certificates/trailers.pem

19:26:09 Settings: add setting loglevel=Normal

19:26:09 Settings: add setting logpath=.

Traceback (most recent call last):

&nbsp; File "PlexConnect.py", line 186, in 

&nbsp; &nbsp; running = startup()

&nbsp; File "PlexConnect.py", line 60, in startup

&nbsp; &nbsp; cfg = Settings.CSettings()

&nbsp; File "C:\Program Files\PlexConnect-master\Settings.py", line 60, in \_\_init\_\_

&nbsp; &nbsp; self.checkSection()

&nbsp; File "C:\Program Files\PlexConnect-master\Settings.py", line 102, in checkSect

ion

&nbsp; &nbsp; self.saveSettings()

&nbsp; File "C:\Program Files\PlexConnect-master\Settings.py", line 71, in saveSettin

gs

&nbsp; &nbsp; f = open(self.getSettingsFile(), 'wb')

IOError: [Errno 13] Permission denied: 'C:\\Program Files\\PlexConnect-master\\S

ettings.cfg'

&nbsp;

---

<div class="post-metadata">

**Author:** ![jerry\_butler](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jerry\_butler](https://forums.plex.tv/u/jerry_butler)\
**Post date:** [November 25, 2014, 12:39am UTC](https://forums.plex.tv/t/plexconnect-py-quickly-closes-upon-running/83871/6 "2014-11-25T00:39:42Z")

</div>

No need for anymore help - I figured out my issue - permissions weren't properly set. Thanks for trying to help.

---

<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:** [December 21, 2019, 3:39am UTC](https://forums.plex.tv/t/plexconnect-py-quickly-closes-upon-running/83871/7 "2019-12-21T03:39:14Z")

</div>

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