# \[Solved\] Scan Network, for Plex Servers

**URL:** <https://forums.plex.tv/t/solved-scan-network-for-plex-servers/837458>\
**Category:** Plex Media Server\
**Tags:** server-windows, server-linux\
**Created:** [April 11, 2023, 3:25am UTC](https://forums.plex.tv/t/solved-scan-network-for-plex-servers/837458 "2023-04-11T03:25:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmorris](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rmorris/32/13669_2.png) [@rmorris](https://forums.plex.tv/u/rmorris)\
**Post date:** [April 11, 2023, 3:25am UTC](https://forums.plex.tv/t/solved-scan-network-for-plex-servers/837458/1 "2023-04-11T03:25:27Z")

</div>

Server Version#: N/A  
Player Version#: N/A

Hi,

Wanting to write a bit of code to monitor my servers - to know when then are in use, so I don’t upgrade (for example) while someone is using them. I know this info is in the dashboard, but I want a simple little utility to query several servers all at once.

The checking is simple, once I find the servers 😆. Not seeing PMS respond to SSDP broadcasts … is there an easy way to scan for Plex Servers on my network (subnet)?

Thanks!

---

<div class="post-metadata">

**Author:** ![pshanew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pshanew/32/160555_2.png) [@pshanew](https://forums.plex.tv/u/pshanew)\
**Post date:** [April 11, 2023, 3:35am UTC](https://forums.plex.tv/t/solved-scan-network-for-plex-servers/837458/2 "2023-04-11T03:35:11Z")

</div>

You could go the other route and listen for the servers’ SSDP multi-cast packets instead. They will be sent to 239.255.255.250:1900 UDP every 5-10 seconds from each server. It will be an M-SEARCH, with information similar to the following in the packets:

```auto
Simple Service Discovery Protocol
    M-SEARCH * HTTP/1.1\r\n
    HOST: 239.255.255.250:1900\r\n
    MAN: "ssdp:discover"\r\n
    ST: upnp:rootdevice\r\n
    MX: 5\r\n
    \r\n
    [Full request URI: http://239.255.255.250:1900*]
    [HTTP request 5/11]
    [Prev request in frame: 873]
    [Next request in frame: 1349]

```

The source will be the IP address of the server.

Server’s always send these; there’s no way to turn them off.

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [April 11, 2023, 3:41am UTC](https://forums.plex.tv/t/solved-scan-network-for-plex-servers/837458/3 "2023-04-11T03:41:23Z")

</div>

[Plex Dash](https://www.plex.tv/plex-labs/) & [Tautulli](https://tautulli.com/) mobile apps will send notifications to your phone when someone is playing media, when the server is offline, etc. Tautulli has several other notification methods - Discord, e-mail, Facebook, etc.

Dash monitors all servers claimed by your userid. With Tautulli, you have to run an instance for each server you wish to monitor (easily accomplished with Docker).

If you’ve remote access enabled, [Uptime Robot](https://uptimerobot.com/) will monitor the remote access port and notify you when the server is offline (must used fixed port forwarding).

---

<div class="post-metadata">

**Author:** ![rmorris](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rmorris/32/13669_2.png) [@rmorris](https://forums.plex.tv/u/rmorris)\
**Post date:** [April 11, 2023, 3:43am UTC](https://forums.plex.tv/t/solved-scan-network-for-plex-servers/837458/4 "2023-04-11T03:43:04Z")

</div>

That makes sense, thanks! But one more dumb question then 😜. Even from a single IP, there may be more than one server, right? Meaning … Plex is one one of several. How to identify PMS?

I just did a Wireshark network scan, and I see the SSDP broadcasts, now to know which ones are from PMS.

Thanks!

---

<div class="post-metadata">

**Author:** ![pshanew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pshanew/32/160555_2.png) [@pshanew](https://forums.plex.tv/u/pshanew)\
**Post date:** [April 11, 2023, 3:45am UTC](https://forums.plex.tv/t/solved-scan-network-for-plex-servers/837458/5 "2023-04-11T03:45:00Z")

</div>

After receiving the multi-cast packet from a potential server, attempt to connect to _it_ at TCP 32400. If it’s a Plex server, it will allow you to connect. Plex servers always listen on TCP 32400; there’s also no way to turn that off.

---

<div class="post-metadata">

**Author:** ![rmorris](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rmorris/32/13669_2.png) [@rmorris](https://forums.plex.tv/u/rmorris)\
**Post date:** [April 11, 2023, 3:46am UTC](https://forums.plex.tv/t/solved-scan-network-for-plex-servers/837458/6 "2023-04-11T03:46:56Z")

</div>

That helps immensely, thanks!!

---

<div class="post-metadata">

**Author:** ![pshanew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pshanew/32/160555_2.png) [@pshanew](https://forums.plex.tv/u/pshanew)\
**Post date:** [April 11, 2023, 3:47am UTC](https://forums.plex.tv/t/solved-scan-network-for-plex-servers/837458/7 "2023-04-11T03:47:27Z")

</div>

You’re welcome!

---

<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:** [July 10, 2023, 3:47am UTC](https://forums.plex.tv/t/solved-scan-network-for-plex-servers/837458/8 "2023-07-10T03:47:40Z")

</div>

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