# Error with installation "Failed to create socket on UDP port 53"

**URL:** https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007
**Category:** Apps & Creations
**Created:** [June 11, 2013, 12:41am UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007 "2013-06-11T00:41:37Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![brett05](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@brett05](https://forums.plex.tv/u/brett05)
#### Post date: [June 11, 2013, 12:41am UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/1 "2013-06-11T00:41:37Z")

</div>

When installing following the instructions in the wiki for ATV2 connected via ethernet to OSX (Mac Mini that I'm using as an itunes server), I am getting the following error in Terminal.  
&nbsp;  
_DNSServer : Failed to create socket on UDP port 53: [Errno 48] Address already in use  
PlexConnect : DNSServer not alive. Shutting down._  
&nbsp;  
Does anyone know what might be causing this (I have a very limited knowledge of terminal)?  
&nbsp;  
Cheers, Brett

---

<div class="post-metadata">

### Author: ![welsh73](https://avatars.discourse-cdn.com/v4/letter/w/73ab20/32.png) [@welsh73](https://forums.plex.tv/u/welsh73)
#### Post date: [June 11, 2013, 6:08am UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/2 "2013-06-11T06:08:06Z")

</div>

Sounds like your Mac Mini is already running a DNS server or something else on port 53.&nbsp;

You can check to see what's on 53 with something like:

```
sudo lsof -i :53 | grep LISTEN
```

---

<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: [June 11, 2013, 6:27am UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/3 "2013-06-11T06:27:20Z")

</div>

Thanks. Will try that, although the mini hasn’t got anything special installed. I only really use it as an iTunes server at the moment.   
  
  
Cheers, Brett

---

<div class="post-metadata">

### Author: ![brett05](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@brett05](https://forums.plex.tv/u/brett05)
#### Post date: [June 11, 2013, 10:51am UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/4 "2013-06-11T10:51:31Z")

</div>

> Sounds like your Mac Mini is already running a DNS server or something else on port 53.&nbsp;  
> &nbsp;  
> You can check to see what's on 53 with something like:
> 
> ```
> sudo lsof -i :53 | grep LISTEN
> ```

  
Just ran this and it returned this:-  
  
named 114 root 20u IPv4 0x5b821c5e606fd3e9 0t0 TCP 192.168.2.1:domain (LISTEN)

---

<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: [June 11, 2013, 7:32pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/5 "2013-06-11T19:32:48Z")

</div>

You must have either bought it or installed the server version of OSX at some point.  
  
Even if e.g. you upgraded from Lion server to Mountain Lion client the DNS server will still be running.  
  
You need to turn it off (unless you are an advanced user and know how to configure your DNS server and use the advanced setting in PlexConnect to use your own instead).

---

<div class="post-metadata">

### Author: ![brett05](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@brett05](https://forums.plex.tv/u/brett05)
#### Post date: [June 11, 2013, 10:36pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/6 "2013-06-11T22:36:41Z")

</div>

Sorry but it's running OSX 10.8.3. I only bought it a few months ago brand new and I know for certain that it's not the server version. I've also never installed the server version.&nbsp;I've only installed itunes, utorrent, handbrake & plex.

Could this be anything else at all?

> You must have either bought it or installed the server version of OSX at some point.  
> Even if e.g. you upgraded from Lion server to Mountain Lion client the DNS server will still be running.  
> You need to turn it off (unless you are an advanced user and know how to configure your DNS server and use the advanced setting in PlexConnect to use your own instead).

---

<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: [June 11, 2013, 10:56pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/7 "2013-06-11T22:56:52Z")

</div>

It is bind, the DNS server.  
  
Try running the following in terminal:  
  
  
  
sudo serveradmin fullstatus dns

---

<div class="post-metadata">

### Author: ![brett05](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@brett05](https://forums.plex.tv/u/brett05)
#### Post date: [June 11, 2013, 10:59pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/8 "2013-06-11T22:59:34Z")

</div>

Just ran that and it returned this:-

Bretts-Mac-mini:PlexConnect-XML\_templates brett$ sudo serveradmin fullstatus dns  
Password:  
sudo: serveradmin: command not found  
Bretts-Mac-mini:PlexConnect-XML\_templates brett$

---

<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: [June 11, 2013, 11:00pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/9 "2013-06-11T23:00:34Z")

</div>

Did you enter your password?

---

<div class="post-metadata">

### Author: ![brett05](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@brett05](https://forums.plex.tv/u/brett05)
#### Post date: [June 11, 2013, 11:01pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/10 "2013-06-11T23:01:31Z")

</div>

Yes I did (It just shows blank)

---

<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: [June 11, 2013, 11:06pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/11 "2013-06-11T23:06:42Z")

</div>

Yeah it doesn’t give feedback.  
  
You are definitely running a DNS server though:  
  
  
[https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/named.8.html](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/named.8.html)  
  
  
You need to disable it if you want to run PlexConnect (or if you now how to configure it you can use it instead and disable the PlexConnect one; this is really only for advanced users who now what tey are doing though).  
  
Tbh I do not know how you disable it on OSX without the GUI tool but you can probably find guides on Google.  
  
Something or someone must have installed it though.

---

<div class="post-metadata">

### Author: ![brett05](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@brett05](https://forums.plex.tv/u/brett05)
#### Post date: [June 11, 2013, 11:14pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/12 "2013-06-11T23:14:44Z")

</div>

Thanks. I do appreciate your help.

It's very strange indeed.... I wouldn't descibe myself as an advanced user when it comes to OSX by any means (I'm learning). I do have an understanding of computers though, having administered a corporate (Windows) network for the last 20 years. I think I'll have to do some googling regarding a DNS server on OSX.

When I checked what was running on port 53, did this result provide any information on the issue?

```
Bretts-Mac-mini:PlexConnect-XML_templates brett$ sudo lsof -i :53 | grep LISTEN
Password:
named   114 root   20u  IPv4 0x5b821c5e606fd3e9      0t0  TCP 192.168.2.1:domain (LISTEN)  
 
```

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
&nbsp;

---

<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: [June 12, 2013, 5:17am UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/13 "2013-06-12T05:17:42Z")

</div>

“named” is the process name for Bind, the DNS server.  
  
I have no idea why it is running if you have never installed the server component.  
  
If you look at some of the server threads you should be able to find info in using your own DNS server, although you will likely have to setup the name resolution by terminal in your case.

---

<div class="post-metadata">

### Author: ![brett05](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@brett05](https://forums.plex.tv/u/brett05)
#### Post date: [June 12, 2013, 5:20am UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/14 "2013-06-12T05:20:56Z")

</div>

Using my own DNS server sounds complicated. :blink:

I phoned Apple support a couple of hours ago and spoke with them about DNS. They basically said that it shouldn't be there but have given me something to try to test whether there is DNS installed. I'll try these things&nbsp;tonight when I get home from work and I'll post my findings here.

Cheers, Brett

---

<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: [June 12, 2013, 5:36am UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/15 "2013-06-12T05:36:11Z")

</div>

Cool.  
  
If you post your findings and how to disable the DNS server it would be very helpful for others.

---

<div class="post-metadata">

### Author: ![brett05](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@brett05](https://forums.plex.tv/u/brett05)
#### Post date: [June 12, 2013, 9:53pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/16 "2013-06-12T21:53:54Z")

</div>

OK, So I spoke in depth with a top level&nbsp;Apple expert last night and even to him, it was difficult to understand how a Mini running OSX10.8.3 can have a DNS Server running. We renamed the "System Configuration" folder, restarted the Mac and restested. The DNS Server now is not existant.

I'll get around to trying to install Plex Connect tonight.

Cheers, Brett

---

<div class="post-metadata">

### Author: ![slash.dot.dash](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@slash.dot.dash](https://forums.plex.tv/u/slash.dot.dash)
#### Post date: [June 14, 2013, 6:42am UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/17 "2013-06-14T06:42:30Z")

</div>

Hello I have just joined this forum for this very issue. &nbsp;I find myself in the same situation as Brett05. &nbsp;I purchased a mac mini server with 10.7 server with grand plans of hosting my own email. &nbsp;This never occurred and then I just purchased an ATV3 last week and wanted to install Plex Connect. &nbsp;After much fluffing around I discovered it couldn't run on server so I updated to 10.8. &nbsp;I have been trying again to run the PlexConnect.py file an get the same message as started this thread. &nbsp;I guess this now means I have to find out how to turn off the DNS server as well. &nbsp;When someone works this out can you please post on this thread so I can also hopefully get up & running as well. &nbsp;PS I don't know anything about linux but and do know how to follow instructions to type into terminal. I have also been using macs for 10 years but only on the front end so I know my way around system preferences well enough.

---

<div class="post-metadata">

### Author: ![slash.dot.dash](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@slash.dot.dash](https://forums.plex.tv/u/slash.dot.dash)
#### Post date: [June 15, 2013, 11:25pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/18 "2013-06-15T23:25:55Z")

</div>

SInce I didn't have much on my mac mini except Plex I decided to reinstall a clean version of 10.8. The install went fine but I just tried to reinstall plex and it wouldn't get me past the settings page

I have the log files as described but is this the correct place to post them. &nbsp;Please feel free to bump this post to where it should be if necessary.

---

<div class="post-metadata">

### Author: ![slash.dot.dash](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@slash.dot.dash](https://forums.plex.tv/u/slash.dot.dash)
#### Post date: [June 15, 2013, 11:36pm UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/19 "2013-06-15T23:36:10Z")

</div>

Sorry forgot to attache the files.......

![post-144375-0-55620800-1371339227.png|690x388](upload://8l07yNJoZcUCYeOld9xtrWw8mZ2.png)

---

<div class="post-metadata">

### Author: ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)
#### Post date: [June 16, 2013, 7:39am UTC](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007/20 "2013-06-16T07:39:48Z")

</div>

slash.dash - this doesn't seem to be related to PlexConnect (interfacing aTV) at all. I would try getting help in either the PlexMediaServer/MacOS or the Plex/Web section. To be honest, I have no idea were to start digging here...

[Next page](https://forums.plex.tv/t/error-with-installation-failed-to-create-socket-on-udp-port-53/36007.md?page=2)
