Skip to content

Clarify or fix default IP usage #24

@FoxxMD

Description

@FoxxMD

Almost all of the examples in the readme as well as the API Reference documentation show code examples like

const plexAPI = new PlexAPI({
  accessToken: "<YOUR_API_KEY_HERE>",
  xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40",
});

which implies that it is possible to use this library without specifying a server url. This is somewhat reinforced by the server index being optional.

However, it looks like the actual client library defaults to using a private IP address, 10.10.10.47, when no server url is provided. This leads to the same error shown in #20 if using the client code as shown in all examples because that IP address obviously isn't used by everyone.

Please let me know if this address is supposed to be special to Plex somehow and I just don't understand.

Otherwise, it seems like the documentation should specify that serverURL always needs to be specified and, ideally, that it is NOT optional when initializing a new client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions