Skip to content

PlexServer()clients() returns nothing #1447

@fregapple

Description

@fregapple

Describe the Bug

When attempting to return the list of clients connect to the server, I get an empty list for plex media apps.

I am currently using a docker container, using network_mode: "host"

When watching content, the plex dash shows everything is local.

Code Snippets

from plexapi.server import PlexServer
from plexapi.gdm import GDM

baseurl = '192.168.1.77:32400'
token = '<token>'

plex = PlexServer(baseurl, token)
ggg = GDM().all(True)

print(plex.clients())
print(plex.sessions())
print(ggg)

Expected Behavior

print clients, sessions and all GDM

Additional Context

console prints:

[ ]
[TrackSession:2729:Not-for-Me, EpisodeSession:19647:Code-Geass:-Lelouch--s01e11, EpisodeSession:19647:Code-Geass:-Lelouch--s01e11]
[{'data': {'Content-Type': 'plex/media-player', 'Port': '32500', 'Protocol': 'plex', 'Resource-Identifier': '4c5e238c-965d-4dc2-aa22-44bb1376a269', 'Name': "Freg's PlexAmp", 'Version': '4.10.1', 'Product': 'Plexamp', 'Protocol-Version': '1', 'Protocol-Capabilities': 'timeline,playback,playqueues,playqueues-creation', 'Device-Class': 'pc'}, 'from': ('192.168.1.3', 32412)}]

Operating System and Version

Ubuntu 22.04

Plex Media Server Version

1.40.5.8761

Python Version

3.11

PlexAPI Version

current

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions