install problem - Failed to create socket on UDP port 53

  • ATV 2 firmware version 6.2.1

  • DNS 61.9.195.193

  • local IP 192.168.0.6

  • iMac late 2014 OSX 10.10.2

  • The Plex media server (PMS) Version 0.9.11.1.678-c48ffd2

  • The local IP address of the device that the Plex media server (PMS) is installed on: local IP 192.168.0.6

  • The PlexConnect version number. __VERSION__ = '0.5-dev'

  • The contents of your 'Settings.cfg' file (this is created at first clean shutdown of PlexConnect, using CTR+c)

  • A detailed description of the issue (the clearer you can make this the better):

  • Trying to complete the install of PlexConnect but coming across this error when trying to run the application "DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use" Ive run a check to see what comes up on that port and attached a txt file with the info from terminal

 

  • any help would be much appreciated
  • I have a limited understanding of these issues so non tech speak would be helpful where possible
  •  

There are loads of posts with this error on the PlexConnect forum.

Have you looked at them? Have you already reported the issue there and were advised to report it on the Mac forum?  If not, I would suggest moving this thread to that forum and in the meantime reading the topics that mention error

Failed to create socket on UDP port 53

A forum topic can be switched to a different forum by sending request through the 'Report' button on the first post

Hi sa2000

Thanks

have requested the post to be moved

Yes ive had a look through the topics and havent found anything to resolve the issue as yet more through my lack of understanding than it not being there

one suggestion was to run this command "sudo lsof -i :53"

the result of which was
COMMAND PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
Python  379 root    4u  IPv4 0xa5c6b0f97b5fd053      0t0  UDP 192.168.0.6:domain

I then saw a suggestion to check activity monitor and make sure there were no instances of Python running.

I found 4 activities running so i quit them then restarted plexconnect and this is what i got from terminal

iMac2:OSX paulwhitehead$ sudo "/Applications/PlexConnect-master/PlexConnect.py"
10:40:02 PlexConnect: ***
10:40:02 PlexConnect: PlexConnect
10:40:02 PlexConnect: Press CTRL-C to shut down.
10:40:02 PlexConnect: ***
10:40:02 PlexConnect: started: 10:40:02
10:40:02 PlexConnect: Version: 0.5-dev
10:40:02 PlexConnect: Python: 2.7.6 (default, Sep  9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
10:40:02 PlexConnect: Host OS: darwin
10:40:02 PlexConnect: PILBackgrounds: Is PIL installed? False
10:40:02 PlexConnect: IP_self: 192.168.0.6
10:40:02 DNSServer: started: 10:40:02
10:40:02 DNSServer: ***
10:40:02 DNSServer: DNSServer: Serving DNS on 192.168.0.6 port 53.
10:40:02 DNSServer: intercept: ['trailers.apple.com'] => 192.168.0.6
10:40:02 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
10:40:02 DNSServer: forward other to higher level DNS: 8.8.8.8
10:40:02 DNSServer: ***
10:40:02 WebServer: started: 10:40:02
10:40:02 WebServer: started: 10:40:02
10:40:18 WebServer: ***
10:40:18 WebServer: ***
10:40:18 WebServer: WebServer: Serving HTTP on 192.168.0.6 port 80.
10:40:18 WebServer: WebServer: Serving HTTPS on 192.168.0.6 port 443.
10:40:18 WebServer: ***
10:40:18 WebServer: ***

so am i right in thinking that the port 53 issue is resolved, that plex connect is runninmg but there is no connection to my plex media server?

Have you reset the Mac in a attempt to clear the ports? Port 53 is required to run PlexConnect.

I don't know anything about this - is this relevant: https://forums.plex.tv/topic/114122-cant-get-it-to-work/?p=678694

I am sure now the topic is in the right forum you will get all the help you need to fix this

Have you reset the Mac in a attempt to clear the ports? Port 53 is required to run PlexConnect.

yes i've rebooted

the port 53 issue seems to be resolved by quiiting all instances of python then retarting plex connect

I now have an issue where there does not seem to be a connection to my PMS as per post  #3 above

Hard to say, personally I use the Daemon via launchctl to avoid port 53 errors using the App I coded in my signature based upon baa's launchctl method that I modified into a GUI. The PMS not connecting over your network could be numerous issues. How is your network in full detail (e.g. ethernet to aTV, ethernet to mac PMS host, PlexConnect on same PMS host, ethernet over power line, VPN, internet sharing, multiple routers) the more details you can provide the better. I always recommend in worst cases to uninstall/reinstall PMS per the plex.tv guide

Aehm...

those four python processes you see are most likely PlexConnect running. If it is installed per daemon, it will autostart at systemboot - you don't have to run PlexConnect manually.

On the other issue - the log looks perfectly fine, as long as you are not running an aTV with DNS directed to your PlexConnect host. Your PMS will be searched as soon as your aTV requests Plex content.

Aehm...

those four python processes you see are most likely PlexConnect running. If it is installed per daemon, it will autostart at systemboot - you don't have to run PlexConnect manually.

On the other issue - the log looks perfectly fine, as long as you are not running an aTV with DNS directed to your PlexConnect host. Your PMS will be searched as soon as your aTV requests Plex content.its not installed as a daemon yet.

its not running as a daemon yet - i figured id get it working first and set up the daemon after

understood re the 4 python processes. i think the advice was there to make sure taht plexconnect was not running before trying to start it again.

as for the DNS issue, yes the DNS on the ATV is pointing to the same DNS on the imac which is running plexconnect. what do i do to change that?

Hard to say, personally I use the Daemon via launchctl to avoid port 53 errors using the App I coded in my signature based upon baa's launchctl method that I modified into a GUI. The PMS not connecting over your network could be numerous issues. How is your network in full detail (e.g. ethernet to aTV, ethernet to mac PMS host, PlexConnect on same PMS host, ethernet over power line, VPN, internet sharing, multiple routers) the more details you can provide the better. I always recommend in worst cases to uninstall/reinstall PMS per the plex.tv guide

the network set up is as follows

ATV2 conected via ethernet cable to gateway/router

PMS and Plexconnect installed on same iMac which is connected to network over wifi

I also have a PS3 connected to the gateway/router via ethernet - could the PS3 be the problem?

Quick way to find out, disconnect the PS3.

BTW: both my PMS & Plexconnect are running on my iMac without issue.

I have multiple aTV3's and multiple PS3's on the same network without any issues. Since its a aTV2 you could always downgrade to iOS 5.3, jailbreak and follow the tutorial I made based on baa's original method for aTV2's:

post 355

It would make your aTV a portable PlexConnect host and possibly you could just sign into myplex and it would work.

I have multiple aTV3's and multiple PS3's on the same network without any issues. Since its a aTV2 you could always downgrade to iOS 5.3, jailbreak and follow the tutorial I made based on baa's original method for aTV2's:

post 355

It would make your aTV a portable PlexConnect host and possibly you could just sign into myplex and it would work.

thanks for your help on this - i'll ceheck out your jailbreak post and give that a go - will report back when ive done it

I have multiple aTV3's and multiple PS3's on the same network without any issues. Since its a aTV2 you could always downgrade to iOS 5.3, jailbreak and follow the tutorial I made based on baa's original method for aTV2's:

post 355

It would make your aTV a portable PlexConnect host and possibly you could just sign into myplex and it would work.

Apologies if this sounds stupid

I've looked at your jailbreak post and folowed the first instruction but i get this message

iMac2:~ paulwhitehead$ ssh root@192.168.0.3
ssh: connect to host 192.168.0.3 port 22: Connection refused

i've failed at the first hurdle!

Did you downgrade to iOS 5.3 via DFU mode using this IPSW:

AppleTV2,1_5.3_10B809_Restore.ipsw

After you restore you need to use this:

for Mac

Then you need to find the aTV ip address and then follow the first step.

Did you downgrade to iOS 5.3 via DFU mode using this IPSW:

AppleTV2,1_5.3_10B809_Restore.ipsw

After you restore you need to use this:

for Mac

Then you need to find the aTV ip address and then follow the first step.

Thanks for your help and patience wahlman.j

I did as per your suggestion, ran the downgrade, restored with SeasonPass and then ran through the steps at your post #355 https://forums.plex.tv/topic/88905-plexconnect-on-atv2jailbroken-launchctl/?p=822596

PlexConnect is up and running

Much appreciated

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