Can't get plex connect to run, the old 'port in use' error

Hello Folks

I have been trying to get plex connect to run on my 2006 iMac. When I run the command I get

 

10:38:08 PlexConnect: ***

10:38:08 PlexConnect: PlexConnect
10:38:08 PlexConnect: Press CTRL-C to shut down.
10:38:08 PlexConnect: ***
10:38:08 PlexConnect: started: 10:38:08
10:38:08 PlexConnect: Version: 0.3.1+
10:38:08 PlexConnect: Python: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)]
10:38:08 PlexConnect: Host OS: darwin
10:38:08 PlexConnect: IP_self: 192.168.1.103
10:38:08 DNSServer: started: 10:38:08
10:38:08 DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use
10:38:08 PlexConnect: DNSServer not alive. Shutting down.
10:38:08 PlexConnect: Shutting down.
10:38:08 PlexConnect: shutdown
10:38:08 PlexConnect: shutdown
 
I think I understand that this means that some other process has grabbed port 53, but I can't figure out what it is that I need to switch off. I have run sudo lsof -i -P and I get:
 
Python     187           root    0u  IPv4 0x05484ce4      0t0    UDP jaimac.lan:53
Python     187           root    3u  IPv4 0x05484c08      0t0    UDP *:*
Python     188           root    0u  IPv4 0x055aef68      0t0    TCP jaimac.lan:80 (LISTEN)
Python     189           root    0u  IPv4 0x055aeb58      0t0    TCP jaimac.lan:443 (LISTEN)
Python     189           root    3u  IPv4 0x0c75fee8      0t0    TCP jaimac.lan:443->jaimac.lan:50300 (CLOSE_WAIT)
Python     189           root   11u  IPv4 0x0c7602f8      0t0    TCP jaimac.lan:443->jamacbook.lan:53545 (CLOSE_WAIT)
prl_disp_  201           root   20u  IPv4 0x055ae748      0t0    TCP localhost:64000 (LISTEN)
prl_disp_  201           root   27u  IPv4 0x05484dc0      0t0    UDP localhost:64000
 
 
and:
 
mDNSRespo   31 _mdnsresponder   46u  IPv4 0x0642eef0      0t0    UDP *:53490
mDNSRespo   31 _mdnsresponder   47u  IPv6 0x0642ee14      0t0    UDP *:53490
mDNSRespo   31 _mdnsresponder   48u  IPv4 0x0642ed38      0t0    UDP *:53002
mDNSRespo   31 _mdnsresponder   49u  IPv6 0x0642e4a0      0t0    UDP *:53002
mDNSRespo   31 _mdnsresponder   50u  IPv4 0x0642e3c4      0t0    UDP *:52932
mDNSRespo   31 _mdnsresponder   51u  IPv6 0x0642e2e8      0t0    UDP *:52932
mDNSRespo   31 _mdnsresponder   52u  IPv4 0x0642e20c      0t0    UDP *:61508
mDNSRespo   31 _mdnsresponder   53u  IPv6 0x0642e130      0t0    UDP *:61508
mDNSRespo   31 _mdnsresponder   54u  IPv4 0x0642e054      0t0    UDP *:63826
mDNSRespo   31 _mdnsresponder   55u  IPv6 0x0642df78      0t0    UDP *:63826
 
 
among other stuff.
 
I'm not sure where to go from here.
 
Any help appreciated.
 
Jonathan
 
 
 

It looks like you may have run PlexConnect before and not shut it down cleanly, which has left the DNS component running.

Try rebooting the machine to clear it and ensure you only shut down PlexConnect by using CTR+c and do not just shut the terminal window (once you have it running fine you can set it to autostart using launchctl - see the OSX support folder)

Ok, thanks very much. That has got plex connect up and running on the iMac.

However, when I run Trailers on the ATV, it accesses for an extended period and then returns "trailers unavailable".

This is what is happening at the terminal end:

                                                          14:05:00 DNSServer: DNS request received!
14:05:00 DNSServer: Source: ('192.168.1.64', 63707)
14:05:00 DNSServer: Domain: trailers.apple.com
14:05:00 DNSServer: ***intercept request
14:05:00 DNSServer: -> DNS response: 192.168.1.103
14:05:00 WebServer: serving /js/application.js
14:06:06 DNSServer: DNS request received!
14:06:06 DNSServer: Source: ('192.168.1.64', 63770)
14:06:06 DNSServer: Domain: p3-buy.itunes.apple.com.akadns.net
14:06:06 DNSServer: ***forward request
14:06:06 DNSServer: -> DNS response from higher level
 
Any further thoughts?
 
Thanks for the help again!!
 
Jonathan

Looks like missing/bad certificate on aTV.

OK, I'm making some progress.

I deleted the old install of plex connect, then upgraded to python 2.7 (should have done that at first...). I installed again, generated new certificates, deleted the ATV profile and installed a new one.

Now I can see the media server and all the content when I run trailers.

However, only the mp4 content plays. The others show up, and their thumbnails/previews, but when I play I just get "this content is not available, try later" or words to that effect.

Everything plays well on the iPad client, so the server is working fine.

???

J

Did you change the setting "TranscoderAction" to anything but "Auto"?

I'm not aware of having made that change. Where would I find that setting, so that I can check it...??

aTV->PlexConnect->Settings.

Whoa just seen your iMac is 2006, what CPU is inside that?

It might not be powerful enough to remux and certainly not transcode to a native ATV format.

iMac has 2 GHz core duo CPU.

It works OK when I stream to the iPad - does that not involve transcoding - or am I missing something???

by the way, found the settings and transcoder action is west to auto and quality to 720p 3Mbs

J

is west to auto???

can't I type anymore....

transcoder action WAS set to auto...

Sorry missed the bit about the files playing on the iPad. What are the transcoder settings on the iPad app set to?

direct streaming is on, video quality 1280 x 720 3mbps...

interesting...

If you set the ATV to direct stream do they play?

Sorry guys, been busy at work...

no, setting it to direct stream did not work. Thinking of giving up and installing an old mac mini instead of the ATV.

thanks for the help tho.

J

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