# PMS auto discover

**URL:** <https://forums.plex.tv/t/pms-auto-discover/33954>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [May 7, 2013, 3:12pm UTC](https://forums.plex.tv/t/pms-auto-discover/33954 "2013-05-07T15:12:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skycryer](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/skycryer/32/85998_2.png) [@Skycryer](https://forums.plex.tv/u/Skycryer)\
**Post date:** [May 7, 2013, 3:12pm UTC](https://forums.plex.tv/t/pms-auto-discover/33954/1 "2013-05-07T15:12:25Z")

</div>

Is there a way to automatic find plex servers in Network with javascript/jQuery?

---

<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:** [May 7, 2013, 6:17pm UTC](https://forums.plex.tv/t/pms-auto-discover/33954/2 "2013-05-07T18:17:07Z")

</div>

Hm. There is the bonjour interface as well as PlexGDM. Unfortunately I don't know about an implementation in .js/jQuery. I guess, there are some, though.

I have some bonjour code in C. And there is PlexGDM in C# ([https://github.com/quiqueck/Plex-ATV-Plugin](https://github.com/quiqueck/Plex-ATV-Plugin)) or&nbsp;Python (hippojay) ([https://github.com/hippojay/plugin.video.plexbmc](https://github.com/hippojay/plugin.video.plexbmc)). You could have a look and translate them, if nothing else helps.

I am sure, there are others... but maybe this is a start for your search.

---

<div class="post-metadata">

**Author:** ![hippojay](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hippojay/32/41_2.png) [@hippojay](https://forums.plex.tv/u/hippojay)\
**Post date:** [May 7, 2013, 10:21pm UTC](https://forums.plex.tv/t/pms-auto-discover/33954/3 "2013-05-07T22:21:43Z")

</div>

Yeah, it's pretty easy to do:

1. Send a UDP message to the multicast address 239.0.0.250 on port 32414:&nbsp;M-SEARCH \* HTTP/1.0

2. listen for responses from each PMS returned to port 32414 starting "200 OK"

The returned message body will contain some information about the server - the source IP of this message will be the PMS IP.

As Baa linked to - a python&nbsp;implementation&nbsp;is here:&nbsp;[https://github.com/hippojay/plugin.video.plexbmc/blob/frodo/resources/lib/plexgdm.py](https://github.com/hippojay/plugin.video.plexbmc/blob/frodo/resources/lib/plexgdm.py)

---

<div class="post-metadata">

**Author:** ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)\
**Post date:** [August 8, 2014, 11:21am UTC](https://forums.plex.tv/t/pms-auto-discover/33954/4 "2014-08-08T11:21:48Z")

</div>

Hey Skycryer,

Did you manage to create a jQuery based script for plex GDM?

Need/Want to implement it [here](http://ish0w.github.io/L0ck-for-plex-media-server/) (Incase your interested ther discussion is [here](https://forums.plex.tv/topic/113976-parental-control-channel-for-pms/))

Unable to understand if it is possible

Thanks

---

<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 20, 2019, 11:19pm UTC](https://forums.plex.tv/t/pms-auto-discover/33954/5 "2019-12-20T23:19:33Z")

</div>

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