How to detect a Plex server

I'm currently trying to build a NuGet package to allow .net developers to access Plex via the REST services from their apps.  After a quick play last night I had it working to retrieve the details of the currently playing movie - all thanks to the superb API docs available from this forum.  I'll make the library available on GitHub/NuGet once it's a bit more complete, and will post on here when that happens.

 

The only downside to my library is it requires the server ip address/name and port.  I'd like to be able to autodetect this.  I believe it can be done by a udp broadcast and detecting the response.  is this true, and if so does anyone have any guidance on doing this?  What does the packet need to contain, what is the response etc.

 

Thanks

Take a peek @ the code from iBaa found here

/T

Awesome, thanks - despite being clueless about python I think I can understand it enough to convert it to C#.

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