Plexconnect won't start on Mac

7:45:06 PlexConnect: ***
17:45:06 PlexConnect: PlexConnect
17:45:06 PlexConnect: Press CTRL-C to shut down.
17:45:06 PlexConnect: ***
17:45:06 PlexConnect: started: 17:45:06
17:45:06 PlexConnect: IP_self: 192.168.0.12
17:45:06 DNSServer: started: 17:45:06
17:45:06 DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use
17:45:06 PlexConnect: DNSServer not alive. Shutting down.
17:45:06 PlexConnect: Shutting down.
17:45:06 PlexConnect: shutdown
localhost:PlexConnect-master MYNAME$ sudo ./PlexConnect.py
17:47:57 PlexConnect: ***
17:47:57 PlexConnect: PlexConnect
17:47:57 PlexConnect: Press CTRL-C to shut down.
17:47:57 PlexConnect: ***
17:47:57 PlexConnect: started: 17:47:57
17:47:57 PlexConnect: IP_self: 192.168.0.12
17:47:57 DNSServer: started: 17:47:57
17:47:57 DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use
17:47:57 PlexConnect: DNSServer not alive. Shutting down.
17:47:57 PlexConnect: Shutting down.
17:47:57 PlexConnect: shutdown
 
I had trouble running plexconnect on my WHS based machine and I am now trying to get it to run on my Mac instead. I had it running once and then it crashed. Whenever I try running I get the error above.
 
Any ides on what I should be doing?

You have something running a DNS server on port 53 already.

From terminal - do a "netstat -a" then find what process is using that port.

You have something blocking the ports. I also suspect you have an old version of Plexconnect. Restart the computer, update Plexconnect and make sure you have followed the up to date installation instructions available in the Read Before Posting Thread stickied at the top of this forum.

After you figure out your port issue, delete pms and plexconnect and start fresh by downloading new versions, create new certs etc, use my signature first link. If plexconnect is working you should be able to see this in your browser by typing in your mac’s ip address in safari:

You have something running a DNS server on port 53 already.

From terminal - do a "netstat -a" then find what process is using that port.

OK, I ran that and I can't see anything. Sorry it is quite long - am I missing something on there or looking int he wrong place?

Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)    
tcp4       0      0  192.168.0.12.57206     artemis.ssh.only.http  ESTABLISHED
tcp4       0      0  192.168.0.12.57205     199.16.156.21.http     ESTABLISHED
tcp4       0      0  192.168.0.12.57204     68.232.35.139.https    ESTABLISHED
tcp4       0      0  192.168.0.12.57192     edge-star-shv-03.http  ESTABLISHED
tcp4       0      0  192.168.0.12.57191     lhr14s20-in-f15..https ESTABLISHED
tcp4       0      0  192.168.0.12.57190     a23-66-242-110.d.https ESTABLISHED
tcp4       0      0  192.168.0.12.57189     95.100.97.129.http     ESTABLISHED
tcp4       0      0  192.168.0.12.57188     lhr08s01-in-f2.1.https ESTABLISHED
tcp4       0      0  192.168.0.12.57187     wb-in-f84.1e100..https ESTABLISHED
tcp4       0      0  192.168.0.12.57186     95.101.239.139.http    ESTABLISHED
tcp4       0      0  192.168.0.12.57085     157.56.251.217.https   ESTABLISHED
tcp4       0      0  192.168.0.12.56688     lhr08s02-in-f22..https ESTABLISHED
tcp4       0      0  192.168.0.12.54963     we-in-f109.1e100.imaps ESTABLISHED
tcp4       0      0  192.168.0.12.54812     we-in-f109.1e100.imaps ESTABLISHED
tcp4       0      0  192.168.0.12.54618     192.168.0.8.afs3-files ESTABLISHED
tcp4       0      0  192.168.0.12.daap      192.168.0.8.49304      ESTABLISHED
tcp4       0      0  192.168.0.12.daap      192.168.0.8.49290      ESTABLISHED
tcp4       0      0  192.168.0.12.daap      192.168.0.8.49289      ESTABLISHED
tcp4       0      0  192.168.0.12.52834     we-in-f108.1e100.imaps ESTABLISHED
tcp4       0      0  192.168.0.12.49751     wg-in-f125.1e100.jabbe ESTABLISHED
tcp4       0      0  localhost.57343        *.*                    LISTEN     
tcp4       0      0  192.168.0.12.54821     17.149.36.183.5223     ESTABLISHED
tcp4       0      0  192.168.0.12.51979     17.172.34.99.imaps     ESTABLISHED
tcp4       0      0  192.168.0.12.50311     wi-in-f109.1e100.imaps ESTABLISHED
tcp4       0      0  192.168.0.12.65139     do-2.lastpass.co.https ESTABLISHED
tcp4       0      0  192.168.0.12.63943     199.16.156.81.https    ESTABLISHED
tcp4       0      0  192.168.0.12.63826     199.16.156.81.https    ESTABLISHED
tcp4       0      0  192.168.0.12.60223     wg-in-f125.1e100.jabbe ESTABLISHED
tcp4       0      0  192.168.0.12.59874     p06-imap.mail.me.imaps ESTABLISHED
tcp4       0      0  192.168.0.12.59689     17.172.34.111.imaps    ESTABLISHED
tcp4       0      0  192.168.0.12.59662     17.172.238.205.5223    ESTABLISHED
tcp4       0      0  192.168.0.12.59630     108.160.162.46.http    ESTABLISHED
tcp6       0      0  imac-406c8f1ca82.daap  fe80::7256:81ff:.52063 CLOSE_WAIT 
tcp6       0      0  imac-406c8f1ca82.daap  fe80::7256:81ff:.52042 CLOSE_WAIT 
tcp4       0      0  192.168.0.12.52229     192.168.0.73.ms-wbt-se ESTABLISHED
tcp4       0      0  *.63185                *.*                    LISTEN     
tcp4       0      0  *.63098                *.*                    LISTEN     
tcp4       0      0  *.63043                *.*                    LISTEN     
tcp4       0      0  *.63031                *.*                    LISTEN     
tcp4       0      0  *.63030                *.*                    LISTEN     
tcp4       0      0  localhost.62054        localhost.62056        ESTABLISHED
tcp4       0      0  localhost.62056        localhost.62054        ESTABLISHED
tcp4       0      0  localhost.62054        *.*                    LISTEN     
tcp6       0      0  *.daap                 *.*                    LISTEN     
tcp4       0      0  *.daap                 *.*                    LISTEN     
tcp4       0      0  192.168.0.12.59978     192.168.0.73.microsoft ESTABLISHED
tcp4       0      0  *.https                *.*                    LISTEN     
tcp4       0      0  *.http                 *.*                    LISTEN     
tcp4       0      0  192.168.0.12.49402     do-2.lastpass.co.https ESTABLISHED
tcp4       0      0  *.32469                *.*                    LISTEN     
tcp4       0      0  *.globe                *.*                    LISTEN     
tcp4       0      0  localhost.49303        localhost.49301        CLOSE_WAIT 
tcp4       0      0  localhost.26164        localhost.49201        ESTABLISHED
tcp4       0      0  localhost.49201        localhost.26164        ESTABLISHED
tcp4       0      0  localhost.26164        *.*                    LISTEN     
tcp4       0      0  *.17500                *.*                    LISTEN     
tcp4       0      0  *.32443                *.*                    LISTEN     
tcp4       0      0  *.32400                *.*                    LISTEN     
tcp4       0      0  localhost.4380         *.*                    LISTEN     
tcp4       0      0  localhost.4370         *.*                    LISTEN     
tcp4       0      0  localhost.acmsoda      *.*                    LISTEN     
tcp4       0      0  localhost.6971         *.*                    LISTEN     
tcp4       0      0  localhost.64022        *.*                    LISTEN     
tcp4       0      0  localhost.6970         *.*                    LISTEN     
tcp4       0      0  localhost.12311        *.*                    LISTEN     
tcp4       0      0  localhost.6968         *.*                    LISTEN     
tcp4       0      0  localhost.ipp          *.*                    LISTEN     
tcp6       0      0  localhost.ipp          *.*                    LISTEN     
udp6       0      0  *.56530                *.*                               
udp4       0      0  *.56530                *.*                               
udp6       0      0  *.59101                *.*                               
udp4       0      0  *.59101                *.*                               
udp4       0      0  *.59381                *.*                               
udp4       0      0  *.50623                *.*                               
udp6       0      0  *.57923                *.*                               
udp4       0      0  *.57923                *.*                               
udp6       0      0  *.57887                *.*                               
udp4       0      0  *.57887                *.*                               
udp6       0      0  *.63011                *.*                               
udp4       0      0  *.63011                *.*                               
udp6       0      0  *.59147                *.*                               
udp4       0      0  *.59147                *.*                               
udp6       0      0  *.54859                *.*                               
udp4       0      0  *.54859                *.*                               
udp6       0      0  *.57456                *.*                               
udp4       0      0  *.57456                *.*                               
udp6       0      0  *.63876                *.*                               
udp4       0      0  *.63876                *.*                               
udp6       0      0  *.53246                *.*                               
udp4       0      0  *.53246                *.*                               
udp6       0      0  *.61535                *.*                               
udp4       0      0  *.61535                *.*                               
udp6       0      0  *.58306                *.*                               
udp4       0      0  *.58306                *.*                               
udp6       0      0  *.60380                *.*                               
udp4       0      0  *.60380                *.*                               
udp4       0      0  192.168.0.12.52462     *.*                               
udp4       0      0  localhost.59110        *.*                               
udp4       0      0  192.168.0.12.57148     *.*                               
udp4       0      0  localhost.61047        *.*                               
udp4       0      0  *.32413                *.*                               
udp4       0      0  172.16.149.1.ntp       *.*                               
udp4       0      0  192.168.238.1.ntp      *.*                               
udp4       0      0  *.62948                *.*                               
udp4       0      0  *.domain               *.*                               
udp6       0      0  *.55498                *.*                               
udp4       0      0  *.55498                *.*                               
udp6       0      0  *.56669                *.*                               
udp4       0      0  *.56669                *.*                               
udp4       0      0  *.55851                *.*                               
udp4       0      0  *.51923                *.*                               
udp4       0      0  *.8094                 *.*                               
udp4       0      0  *.10322                *.*                               
udp4       0      0  *.5197                 *.*                               
udp4       0      0  *.ssdp                 *.*                               
udp4       0      0  *.32410                *.*                               
udp4       0      0  *.32414                *.*                               
udp4       0      0  192.168.0.12.63053     192.168.0.1.nat-pmp               
udp4       0      0  *.17500                *.*                               
udp6       0      0  *.55035                *.*                               
udp4       0      0  *.55035                *.*                               
udp4       0      0  *.57083                *.*                               
udp4       0      0  *.*                    *.*                               
udp6       0      0  *.52826                *.*                               
udp4       0      0  *.52826                *.*                               
udp4       0      0  *.*                    *.*                               
udp6       0      0  *.53484                *.*                               
udp4       0      0  *.53484                *.*                               
udp6       0      0  *.64086                *.*                               
udp4       0      0  *.64086                *.*                               
udp6       0      0  *.56793                *.*                               
udp4       0      0  *.56793                *.*                               
udp6       0      0  *.54818                *.*                               
udp4       0      0  *.54818                *.*                               
udp6       0      0  *.54096                *.*                               
udp4       0      0  *.54096                *.*                               
udp4       0      0  *.*                    *.*                               
udp4       0      0  *.*                    *.*                               
udp4       0      0  *.*                    *.*                               
udp4       0      0  192.168.0.12.ntp       *.*                               
udp6       0      0  imac-406c8f1ca82.ntp   *.*                               
udp6       0      0  localhost.ntp          *.*                               
udp4       0      0  localhost.ntp          *.*                               
udp6       0      0  localhost.ntp          *.*                               
udp6       0      0  *.ntp                  *.*                               
udp4       0      0  *.ntp                  *.*                               
udp6       0      0  *.mdns                 *.*                               
udp4       0      0  *.mdns                 *.*                               
udp4       0      0  *.*                    *.*                               
udp4       0      0  *.*                    *.*                               
udp4       0      0  *.*                    *.*                               
udp4       0      0  *.*                    *.*                               
udp4       0      0  *.*                    *.*                               
udp46      0      0  *.*                    *.*                               
udp4       0      0  *.netbios-dgm          *.*                               
udp4       0      0  *.netbios-ns           *.*                               
icm4       0      0  *.*                    *.*                               
icm6       0      0  *.*                    *.*   

After you figure out your port issue, delete pms and plexconnect and start fresh by downloading new versions, create new certs etc, use my signature first link. If plexconnect is working you should be able to see this in your browser by typing in your mac's ip address in safari:

OK - will do. I did download the latest version of PlexConnect from the GIT repository. Will start again from scratch.

Turn off anything that autostarts in your login items by deleting them with the minus symbol, check your /library/launchdaemons /library/launchagents, enable one thing at a time until you find the culprit using port 53

Let's try this one

sudo lsof -i ':53'

Let's try this one

sudo lsof -i ':53'
COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
Python  1213 root    4u  IPv4 0x7762bf813780f2ab      0t0  UDP *:domain
 
Hmm...that is strange. It looks like python is the culprit. I did read someone else have a similar issue and they were advised to shutdown all instances of Python running. I did that and it didn't work.
 
At the moment as well Activity Monitor isn't showing even a single Python instance.

Does "Activity Monitor" only show YOUR processes or all of them?

Anyways... you can always kill: sudo kill 1213.

It might really be some old  PlexConnect processes. How did it crash?

Here are port 80 and 443...

>> tcp4       0      0  *.https                *.*                    LISTEN     
>> tcp4       0      0  *.http                 *.*                    LISTEN

Sudo kill didn't fix it. Then I looked at whether I was looking at all processes or just my own.

I was only showing my own. Killed ALL processes now and it seems to be running. Going to bed now but will test it properly tomorrow.

Thanks guys

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