Failed to create socket on UDP port 53: [Errno 48]

I saw there was a similar thread, but for port 80. Any reason mine is aiming for port 53?

 


DNSServer : Failed to create socket on UDP port 53: [Errno 48] Address already in use
PlexConnect : DNSServer not alive. Shutting down.
 
I've run "sudo lsof -i -P" and returned a long list with some addresses I'd rather not post publicly, but on UDP 53:

named        29           root   20u  IPv4 0xb886007969635c11      0t0    TCP localhost:53 (LISTEN)
named        29           root   21u  IPv4 0xb886007969636349      0t0    TCP localhost:54 (LISTEN)
named        29           root   22u  IPv4 0xb88600796b543669      0t0    TCP home.[mydomain]:53 (LISTEN)
named        29           root  512u  IPv4 0xb8860079691f97e1      0t0    UDP localhost:53
named        29           root  513u  IPv4 0xb886007977041559      0t0    UDP home.[mydomain]:53
 
I am running OS X Server, and Sickbeard on this machine. But it is my PMS machine as well. Can I install PlexConnect to a machine not hosting the PMS and receive the same results?

 

Edit:

I've tried this and had the same issue, but on Port 80 on a machine neither running Server, nor Sickbeard, nor PMS.

I saw there was a similar thread, but for port 80. Any reason mine is aiming for port 53?

 
I've run "sudo lsof -i -P" and returned a long list with some addresses I'd rather not post publicly, but on UDP 53:
 
 
 
I am running OS X Server, and Sickbeard on this machine. But it is my PMS machine as well. Can I install PlexConnect to a machine not hosting the PMS and receive the same results?

you're already running a DNS server on that machine, you can't run 2.

Yep, you can run it on another machine.

@Trudge, tried it on the other machine, had Apache running through MAMP which blocked it. Killing that fixed the error. Thanks!

I am seeing this error but I'm NOT running OS X server, just 10.6.8 client.

Would dynDNS update agent be causing any problems?

Some terminal output

iMac:PlexConnect userone$ sudo lsof -i -P | grep -i 53
mDNSRespo    36 _mdnsresponder    8u  IPv4 0xca18e562f115e819      0t0  UDP *:5353
mDNSRespo    36 _mdnsresponder    9u  IPv6 0xca18e562f115e691      0t0  UDP *:5353
mDNSRespo    36 _mdnsresponder   53u  IPv4 0xca18e562f46cd409      0t0  UDP *:51311
configd      53           root   12u  IPv6 0xca18e562f115e9a1      0t0  UDP *:*
configd      53           root   16u  IPv4 0xca18e562f115e071      0t0  UDP *:*
configd      53           root   26u  IPv4 0xca18e562f115ce11      0t0  UDP *:*
configd      53           root   28u  IPv4 0xca18e562f115cc89      0t0  UDP *:*
configd      53           root   30u  IPv4 0xca18e562f115cb01      0t0  UDP *:*
Python    65782           root   14u  IPv4 0xca18e562f115ade9      0t0  UDP *:53
Plex\x20D 65972     userone   42u  IPv4 0xca18e562f258cb29      0t0  UDP 10.0.100.243:49812->10.0.100.1:5351

I am seeing this error but I'm NOT running OS X server, just 10.6.8 client.

Would dynDNS update agent be causing any problems?

Some terminal output

iMac:PlexConnect userone$ sudo lsof -i -P | grep -i 53
mDNSRespo    36 _mdnsresponder    8u  IPv4 0xca18e562f115e819      0t0  UDP *:5353
mDNSRespo    36 _mdnsresponder    9u  IPv6 0xca18e562f115e691      0t0  UDP *:5353
mDNSRespo    36 _mdnsresponder   53u  IPv4 0xca18e562f46cd409      0t0  UDP *:51311
configd      53           root   12u  IPv6 0xca18e562f115e9a1      0t0  UDP *:*
configd      53           root   16u  IPv4 0xca18e562f115e071      0t0  UDP *:*
configd      53           root   26u  IPv4 0xca18e562f115ce11      0t0  UDP *:*
configd      53           root   28u  IPv4 0xca18e562f115cc89      0t0  UDP *:*
configd      53           root   30u  IPv4 0xca18e562f115cb01      0t0  UDP *:*
Python    65782           root   14u  IPv4 0xca18e562f115ade9      0t0  UDP *:53
Plex\x20D 65972     userone   42u  IPv4 0xca18e562f258cb29      0t0  UDP 10.0.100.243:49812->10.0.100.1:5351

After a reboot, everything seems to be working now, unless there is something in that list that shouldn't be there.

you're already running a DNS server on that machine, you can't run 2.

Yep, you can run it on another machine.

bummer... I use a shared vpn connection on my mac mini for all my devices at home, so there is a dns server running on that machine which is also meant to be the PMS and PlexConnect host. Is there a way to use just the mac's dns server and shut down the one that comes with PlexConnect, or maybe some solution I don't think of?

yes... last commit, setting "enable dnsserver".

you're already running a DNS server on that machine, you can't run 2.

Yep, you can run it on another machine.

So in simple terms, what does it mean? I get the same error, but I don't believe I've got something installed that would run a DNS server... How do I go about to find out what causes this?

So in simple terms, what does it mean? I get the same error, but I don't believe I've got something installed that would run a DNS server... How do I go about to find out what causes this?

What OS are you running?

@everyone

PlexConnect requires administrative privileges in order to function properly. Therefore you must use the "sudo" command when executing the script:    sudo ./PlexConnect

yes... last commit, setting "enable dnsserver".

Got it. Thank you, Baa! With the dns server disabled, plexconnect starts up nicely... but when I start the trailer app on apple tv, now the apples' trailer page comes up, of course...  I guess that's because the dns server that comes with plexconnect has some configurations for intercepting the traffic between the app on apple tv and apples' trailer website.

Is it possible to configure the dns server on the mac in the same manner?

>> Is it possible to configure the dns server on the mac in the same manner?

I leave this up to you... :-D

>> Is it possible to configure the dns server on the mac in the same manner?

I leave this up to you... :-D

Lucky me! ;) 

Thanks anyway and keep up the great work!

Hi Baa,

I have the same issue I don't  know how to figure it out. I am not professional  but i can follow instructions.

Plz show me how disable DSN server.

17:41:49 DNSServer: started: 17:41:49
17:41:49 DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use
17:41:50 PlexConnect: DNSServer not alive. Shutting down.
 
thank you

Hi Baa,
I have the same issue I don't  know how to figure it out. I am not professional  but i can follow instructions.
Plz show me how disable DSN server.
 
 
17:41:49 DNSServer: started: 17:41:49
17:41:49 DNSServer: Failed to create socket on UDP port 53: [Errno 48] Address already in use
17:41:50 PlexConnect: DNSServer not alive. Shutting down.
 
thank you


Baa is on a well deserved holiday.
See the advanced settings section on the wiki for how to disable the PlexConnect DNS server and make sure you add in the appropriate forwarding for trailers.apple.com on your existing DNS server.

thank you for your reply. I wish Baa a happy holiday. 

Now I get the plex interface but with PLEX MEDIA SERVER unknown error.

3:58:47 PlexConnect: started: 23:58:47
23:58:47 PlexConnect: ***
23:58:47 PlexConnect: PlexConnect
23:58:47 PlexConnect: Press CTRL-C to shut down.
23:58:47 PlexConnect: ***
23:58:47 PlexConnect: IP_self: 
23:58:47 PlexConnect: started: 23:58:47
23:58:47 DNSServer: started: 23:58:47
23:58:47 DNSServer: ***
23:58:47 DNSServer: Starting up.
23:58:47 DNSServer: intercept trailers.apple.com: 
23:58:47 DNSServer: forward other to higher level DNS: 8.8.8.8
23:58:47 DNSServer: ***
23:58:47 WebServer: started: 23:58:47
23:58:48 WebServer: ***
23:58:48 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
23:58:48 WebServer: ***
23:58:48 PlexGDM: ***
23:58:48 PlexGDM: looking up Plex Media Server
23:58:48 PlexGDM: ***
23:58:49 PlexGDM: servers discovered: 1
23:58:49 XMLConverter: PlexGDM - PMS:
23:59:04 DNSServer: DNS request received!
23:59:04 DNSServer: Source: 
23:59:04 DNSServer: Domain: trailers.apple.com
23:59:04 DNSServer: ***intercept request
23:59:04 DNSServer: -> DNS response: 
23:59:04 WebServer: serving application.js
23:59:05 WebServer: serving /Applications/PlexConnect-XML_templates/assets/plexconnect.xml
23:59:05 WebServer: serving  /Applications/PlexConnect-XML_templates/assets/js/utils.js
23:59:05 ATVLogger: loadItem: Library
23:59:05 WebServer: serving .xml: /library/sections
23:59:05 WebServer: serving  /Applications/PlexConnect-XML_templates/assets/js/utils.js
23:59:06 WebServer: serving .xml: /library/sections/1/recentlyAdded?stack=1&X-Plex-Container-Start=0&X-Plex-Container-Size=20
23:59:18 ATVLogger: loadURL (override): http://trailers.apple.com/library/sections/1
23:59:18 WebServer: serving .xml: /library/sections/1
23:59:19 WebServer: serving  /Applications/PlexConnect-XML_templates/assets/js/utils.js
23:59:19 WebServer: serving  /Applications/PlexConnect-XML_templates/assets/js/updateXML.js
23:59:19 ATVLogger: 1
23:59:19 WebServer: serving .xml: /library/sections/1
00:00:16 DNSServer: DNS request received!
00:00:16 DNSServer: Source: 
00:00:16 DNSServer: Domain: trailers.apple.com
00:00:16 DNSServer: ***intercept request
00:00:16 DNSServer: -> DNS response: 
00:00:16 WebServer: serving .xml: /library/sections/1/all
00:00:24 ATVLogger: 1
00:00:24 WebServer: serving .xml: /library/sections/1
00:00:27 ATVLogger: 2
00:00:27 WebServer: serving .xml: /library/sections/1/genre
00:00:44 WebServer: serving .xml: /library/sections/1/decade
00:00:45 ATVLogger: 3
00:00:47 ATVLogger: 4
00:00:47 WebServer: serving .xml: /library/sections/1/director
00:00:50 ATVLogger: 5
00:00:50 WebServer: serving .xml: /library/sections/1/actor
00:00:52 ATVLogger: 6
00:00:52 WebServer: serving .xml: /library/sections/1

thank you

@

<span><a class="" href="http://forums.plexapp.com/index.php/user/150659-jojomaroc/" title="">jojomaroc</a></span>

Yeah we need more information on your setup than that, please read the sticky about what is required (including the higher level logging).

Also note what guide and steps you did to set up the appropriate DNS forwarding and provide a bit more clarity on the error you are seeing.

please help! i am not good at computer stuff at all and i don't understand what happened. i plugged in my apple tv 2 and played around a little. then i plugged in my apple tv 3 and plex does not work anymore. i get the error message about port 53 and shutting dow. Please help!

please help! i am not good at computer stuff at all and i don't understand what happened. i plugged in my apple tv 2 and played around a little. then i plugged in my apple tv 3 and plex does not work anymore. i get the error message about port 53 and shutting dow. Please help!


If you want others to help you need to help them and provide so information, see the 'read before posting' sticky.

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