# No servers found

**URL:** <https://forums.plex.tv/t/no-servers-found/93712>\
**Category:** Apps & Creations\
**Created:** [February 15, 2015, 8:20am UTC](https://forums.plex.tv/t/no-servers-found/93712 "2015-02-15T08:20:55Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdonovan](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@pdonovan](https://forums.plex.tv/u/pdonovan)\
**Post date:** [February 15, 2015, 8:20am UTC](https://forums.plex.tv/t/no-servers-found/93712/1 "2015-02-15T08:20:55Z")

</div>

PlexConnect used to be working fine for me, with both PMS and PlexConnect running in jails on FreeNAS 9.3. An update somewhere along the line has prevented PlexConnect from finding or connecting to my Plex server.

&nbsp;

- Your ATV model (2 or 3) and firmware version (found under the ATV settings \> general \> about \> Apple TV software):  
ATV 2 ,running 6.2.1  
  
- The DNS server set on the ATV (found under the ATV settings \> general \> network \> DNS):  
192.168.1.1 (running dnsmasq which forwards trailers.apple.com to 192.168.1.139)  
  
- The local IP address of the device that PlexConnect is installed on:  
192.168.1.139  
  
- The device and operating system (including version number) that PlexConnect is installed on:  
FreeNAS 9.3 jail  
  
- The device and operating system (including version number) that the Plex media server (PMS) is installed on:  
FreeNAS 9.3 jail, not the same jail as plexconnect  
  
- The Plex media server (PMS) version number you are running (do not put 'latest'):  
0.9.11.7  
  
- The local IP address of the device that the Plex media server (PMS) is installed on:  
192.168.1.137  
  
- The PlexConnect version number. If using Github source then a time and date of download (look at the creation date of the folder) and if you are using any non-standard setup e.g. Plexify or a fork.  
PlexConect pulled from GitHub on Feb 15, commit afd8638774ded4e0e3241af45cd6516b1566d5ab  
  
-The contents of your 'Settings.cfg' file (this is created at first clean shutdown of PlexConnect, using CTR+c):  
  
[PlexConnect]  
enable\_plexgdm = False  
ip\_pms = 192.168.1.137  
port\_pms = 32400  
enable\_dnsserver = True  
port\_dnsserver = 53  
ip\_dnsmaster = 8.8.8.8  
prevent\_atv\_update = False  
enable\_plexconnect\_autodetect = True  
ip\_plexconnect = 0.0.0.0  
hosttointercept = trailers.apple.com  
port\_webserver = 80  
enable\_webserver\_ssl = True  
port\_ssl = 443  
certfile = ./assets/certificates/trailers.pem  
allow\_gzip\_atv = False  
allow\_gzip\_pmslocal = False  
allow\_gzip\_pmsremote = True  
loglevel = High  
logpath = .  
  
- A detailed description of the issue (the clearer you can make this the better):  
PlexConnect on the ATV can't find any servers. I've changed a few things recently so I'm not sure what broke it - it's either an update of FreeNAS or an update to PMS, of perhaps using PlexHome. I've never had much luck with GDM so I've always specified the IP address of the server in PlexConnect's config. Looking at the logs it looks like PMS is refusing the connection from PlexConnect.

&nbsp;

PlexConnect log is at: [http://pastebin.com/VMg1iMNG](http://pastebin.com/VMg1iMNG)

&nbsp;

Cheers,

Paul

&nbsp;

---

<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:** [February 15, 2015, 10:45am UTC](https://forums.plex.tv/t/no-servers-found/93712/2 "2015-02-15T10:45:29Z")

</div>

There seems to be an issue with non-GDM-servers and PlexHome tokens. I am trying to get my head around the "real" process, but currently things get lost in too many layers of access tokens...

---

<div class="post-metadata">

**Author:** ![bwynants](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bwynants/32/102771_2.png) [@bwynants](https://forums.plex.tv/u/bwynants)\
**Post date:** [February 15, 2015, 10:55am UTC](https://forums.plex.tv/t/no-servers-found/93712/3 "2015-02-15T10:55:27Z")

</div>

@Baa any clue what commit is the last one that works fine?

---

<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:** [February 15, 2015, 11:38am UTC](https://forums.plex.tv/t/no-servers-found/93712/4 "2015-02-15T11:38:03Z")

</div>

It's not an issue with PlexConnect per se. It just doesn't support PlexHome with a server defined directly with IP rather than GDM. If you don't use PlexHome, you should be good.

---

<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:** [February 15, 2015, 6:50pm UTC](https://forums.plex.tv/t/no-servers-found/93712/5 "2015-02-15T18:50:12Z")

</div>

Ok, I think I can explain the issue a little better now...

GDM off: PlexAPI.py triggers the given IP:Port to get in contact with your PMS. PMS is supposed to answer with some basic information, like machine type it is running on and so on. Unfortunately with PlexHome (or RequireAuthorisation for that matter) it wouldn't take to us... :-(

What's really interesting for PlexConnect at that stage is the host UDID to distinguish the servers going forward. And with PlexHome enabled that UDID wasn't given.

GDM on: PlexAPI.py checks for servers in its surroundings, and those with GDM enabled will answer accordingly, handing over the UDID.

PlexConnect memorizes the servers being local at that point.

Now we go on and check MyPlex, which doesn't do any harm. It adds some information about local servers (like ownership...) and shared, probably remote servers that were not found earlier. Double checking the UDID, PlexConnect either updates or adding PMS data.

That process worked pretty well, as long as the manually specified PMS didn't require authentication...

Along came PlexHome: "Require authentication" is used now for every server in your neighborhood. The manually defined PMS (remember, it didn't answer during initial lookup: no UDID) basically gets lost in memory - and might be double-added using it's external/public IP plus UDID from myPlex data...

This also doesn't do much harm (though it doesn't help either) if your router supports "looping back" a request from your LAN back into your LAN using the public IP. If not, as of today, we don't have a chance to talk to our lost PMS...

So long - at least that's my current understanding.

Questions to&nbsp;pdonovan:

Does you router support "loop back"? Do you have a chance to enable it (I remember with my FritzBox, I had to update the firmware...)? Does it help with your issue? I know it's not a perfect solution, and I am thinking about other ways to solve it.

---

<div class="post-metadata">

**Author:** ![pdonovan](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@pdonovan](https://forums.plex.tv/u/pdonovan)\
**Post date:** [February 15, 2015, 8:17pm UTC](https://forums.plex.tv/t/no-servers-found/93712/6 "2015-02-15T20:17:22Z")

</div>

> Questions to&nbsp;pdonovan:
> 
> Does you router support "loop back"? Do you have a chance to enable it (I remember with my FritzBox, I had to update the firmware...)? Does it help with your issue? I know it's not a perfect solution, and I am thinking about other ways to solve it.

My problems with GDM have been related to the FreeNAS/FreeBAD jails setup, GDM works on my home network generally OK - I just re-installed Plex Home Theatre on my iMac and it found the PMS in a jail just fine. The problem I have is that PlexConnect running in jail A can't see PMS running in jail B. I'm not sure what questions to ask about how to fix the problem in the FreeNAS forums.

I'll try running an instance of PlexConnect in the same jail as PMS as a solution.

---

<div class="post-metadata">

**Author:** ![pdonovan](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@pdonovan](https://forums.plex.tv/u/pdonovan)\
**Post date:** [February 17, 2015, 8:17am UTC](https://forums.plex.tv/t/no-servers-found/93712/7 "2015-02-17T08:17:44Z")

</div>

PlexConnect inside the same jail couldn't find the server via GDM either.  
  
However, I discovered another implementation of GDM in Python and it does work! It's part of Plexbmc and is here: [https://github.com/hippojay/script.plexbmc.helper/blob/master/resources/lib/plexgdm.py](https://github.com/hippojay/script.plexbmc.helper/blob/master/resources/lib/plexgdm.py)  
  
Running that Python script both finds the server both inside the same jail as the server and from another jail (but, oddly, not outside the jail system - I think that might be some kind of multicast problem with FreeBSD jails).  
  
Do you think you could take a look at why that GDM code works? If PlexConnect's GDM was more reliable it would solve some of the issues with PlexHome.  
&nbsp;

---

<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:** [February 18, 2015, 4:37pm UTC](https://forums.plex.tv/t/no-servers-found/93712/8 "2015-02-18T16:37:39Z")

</div>

Well, Hippojay's GDM code is not really different. In fact, PlexConnect is directly based on it:

PlexAPI.py, lines 9,10:

loosely based on hippojay's plexGDM:

[https://github.com/hippojay/plugin.video.plexbmc&nbsp;](https://github.com/hippojay/plugin.video.plexbmc%C2%A0)

PlexAPI.py, lines 177ff - compare to Hippojay's code lines 195ff.

It's interesting that the original code should find servers better, though...

Edit: Hm, he now a multicast instead of a broadcast. I guess I will have to dig deeper. :-)

---

<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:** [February 21, 2015, 8:34pm UTC](https://forums.plex.tv/t/no-servers-found/93712/9 "2015-02-21T20:34:44Z")

</div>

pdonovan: I changed PlexAPI/PlexGDM from broadcast to multicast - as seen in hippojay's code. Could you give it a try? Does it now find your PMS?

---

<div class="post-metadata">

**Author:** ![jason-plex\_ncpod.org](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jason-plex\_ncpod.org](https://forums.plex.tv/u/jason-plex_ncpod.org)\
**Post date:** [February 22, 2015, 5:05am UTC](https://forums.plex.tv/t/no-servers-found/93712/10 "2015-02-22T05:05:56Z")

</div>

Baa, the attached updated PlexAPI.py exhibits the following error when applied to PlexConnect v0.5-dev / Mac mini / OS X 10.10.2: (some log context given)

20:46:18 DNSServer: DNS request received!

20:46:18 DNSServer: Source: ('192.168.254.3', 57663)

20:46:18 DNSServer: Domain: trailers.apple.com

20:46:18 DNSServer: \*\*\*intercept request

20:46:18 DNSServer: -\> DNS response: 192.168.254.10

20:46:18 WebServer: serving .xml: /api/home/users

20:46:18 PlexAPI: \*\*\*

20:46:18 PlexAPI: looking up Plex Media Server

20:46:18 WebServer: serving /js/application.js

20:46:18 WebServer: serving .xml: /api/home/users

20:46:18 WebServer: serving .xml: /PlexConnect.xml

20:46:19 PlexAPI: \*\*\*

20:46:19 DNSServer: DNS request received!

20:46:19 DNSServer: Source: ('192.168.254.3', 55798)

20:46:19 DNSServer: Domain: p11-buy.itunes-apple.com.akadns.net

20:46:19 DNSServer: \*\*\*forward request

20:46:19 DNSServer: -\> DNS response from higher level

20:46:19 PlexAPI: MyPlex switch HomeUser change successfull

20:46:19 PlexAPI: \*\*\*

20:46:19 PlexAPI: looking up Plex Media Server

20:46:19 PlexAPI: \*\*\*

20:46:20 PlexAPI: GDM: No servers discovered

20:46:20 PlexAPI: Servers (local, plex.tv, MyPlex): 1

20:46:20 DNSServer: DNS request received!

20:46:20 DNSServer: Source: ('192.168.254.3', 59682)

20:46:20 DNSServer: Domain: se-cdn.itunes-apple.com.akadns.net

20:46:20 DNSServer: \*\*\*forward request

20:46:20 DNSServer: -\> DNS response from higher level

20:46:20 WebServer: Internal Server Error:

Traceback (most recent call last):

&nbsp; File "/Applications/PlexConnect-master/WebServer.py", line 229, in do\_GET

&nbsp; &nbsp; XML = XMLConverter.XML\_PMS2aTV(PMSaddress, self.path + query, options)

&nbsp; File "/Applications/PlexConnect-master/XMLConverter.py", line 373, in XML\_PMS2aTV

&nbsp; &nbsp; PMS = PlexAPI.getXMLFromPMS(PMS\_baseURL, path, options, auth\_token, enableGzip)

&nbsp; File "/Applications/PlexConnect-master/PlexAPI.py", line 377, in getXMLFromPMS

&nbsp; &nbsp; response = urllib2.urlopen(request, timeout=20)

&nbsp; File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen

&nbsp; &nbsp; return opener.open(url, data, timeout)

&nbsp; File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 423, in open

&nbsp; &nbsp; protocol = req.get\_type()

&nbsp; File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 285, in get\_type

&nbsp; &nbsp; raise ValueError, "unknown url type: %s" % self.\_\_original

ValueError: unknown url type: /api/home/users

---

<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:** [February 22, 2015, 9:06am UTC](https://forums.plex.tv/t/no-servers-found/93712/11 "2015-02-22T09:06:07Z")

</div>

I don't see how this could be related to the changes made. I will double check the home-feature, though.

Are you able to post a high level log?

---

<div class="post-metadata">

**Author:** ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)\
**Post date:** [February 22, 2015, 6:14pm UTC](https://forums.plex.tv/t/no-servers-found/93712/12 "2015-02-22T18:14:47Z")

</div>

Not sure if this would help but I had a user downgrade to iOS 5.3 in this topic and run PlexConnect as a host directly on his aTV and he had success. If all else fails debugging you could try this as a alternative if desired but for the community this would help if you could find the culprit to help other users in the future working with @baa to debug the issue:

[&nbsp; &nbsp; &nbsp;install problem - Failed to create socket on UDP port 53 &nbsp; &nbsp;](https://forums.plex.tv/topic/147663-install-problem-failed-to-create-socket-on-udp-port-53/)

---

<div class="post-metadata">

**Author:** ![bakman1](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@bakman1](https://forums.plex.tv/u/bakman1)\
**Post date:** [February 23, 2015, 9:28am UTC](https://forums.plex.tv/t/no-servers-found/93712/13 "2015-02-23T09:28:39Z")

</div>

This appears to be related to the ssl poodle vulnerability updates in python on freenas.

See [this topic](https://forums.plex.tv/topic/134854-freenas-myplex-does-not-log-in/), it could fix your problem (if not previously done).&nbsp;

---

<div class="post-metadata">

**Author:** ![pdonovan](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@pdonovan](https://forums.plex.tv/u/pdonovan)\
**Post date:** [February 23, 2015, 11:08am UTC](https://forums.plex.tv/t/no-servers-found/93712/14 "2015-02-23T11:08:25Z")

</div>

Baa, yes, that PlexAPI.py file works fine. It finds my PMS using GDM, PlexHome is working too.

---

<div class="post-metadata">

**Author:** ![jason-plex\_ncpod.org](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jason-plex\_ncpod.org](https://forums.plex.tv/u/jason-plex_ncpod.org)\
**Post date:** [February 23, 2015, 6:25pm UTC](https://forums.plex.tv/t/no-servers-found/93712/15 "2015-02-23T18:25:03Z")

</div>

> I don't see how this could be related to the changes made. I will double check the home-feature, though.
> 
> Are you able to post a high level log?

Baa, apologies, that error popped up for the first time after applying your updated PlexAPI.py. &nbsp;After looking at the diff of the update, it was not clear to me how it could have been caused by it either. &nbsp;Unfortunately, it did not solve my GDM-AWOL server.

---

<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:** [December 21, 2019, 4:42am UTC](https://forums.plex.tv/t/no-servers-found/93712/16 "2019-12-21T04:42:10Z")

</div>

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