Is there a way to get the IP of the connecting client through the Plex Channel API?
Have you looked at these docs?
https://code.google.com/p/plex-api/wiki/PlexTv
This is from the PMS web api docs: https://forums.plex.tv/topic/104353-pms-web-api-documentation/
Thank you for the reply hthighway. I have looked at those and don't see a way I can get the client IP via python. I am able to get the Server IP but I need to be able to get connection client IPs to distinguish them in order to accomplish what I am trying to do with Live Streams. I need unique IDs in in integer datatype. I was going to use the Last octave of the IP mixed with an enumerator to do this.
I know plexWatch harvests the client IP address.
It does that by having verbose logging turned on inside of the PMS.
You could take look at the plexWatch code to see how it is gathering the data
You were right about plexWatch using the debug log to get the IP. At least from what I can tell. I would prefer not to require users to be dependent on verbose or any level of logging though. If this is the only way to get a client IP I will have to find another way.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.