Skip to content

Bad peer port config #416

Open
Open

Description

@cmjordan42

ListenPort = 51820

Hi, I just finally found the root cause of an ongoing but ephemeral issue and it turned out to be this same port being used by all peers. The port does need to be specified for the server config, but if all peers are set to have the same port then it can introduce issues with NAT. In my case, the server is running in a data center and when two peer/client devices are on the same remote network, they are constantly trying to clobber each other by trying to use the same port to handshake with the server (first established wins and the second exhibits weird behavior while it keeps attempting the handshake).

Since peer-to-peer is explicitly not supported per your README, the easy solution to this is just to remove this line and allow clients to choose their own random port.

Cheers

Activity

  1. github-actions commented on Jul 21, 2026

    @github-actions

    Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

  2. cmjordan42 commented on Jul 21, 2026

    @cmjordan42
    Author

    Also a work-around note in case someone with the same problem finds this before it's addressed... this is merely the default config. You are able to specify your own peer config (with the port unspecified) and this config will not be used.

  3. LinuxServer-CI commented on Aug 21, 2026

    @LinuxServer-CI
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

  4. cmjordan42 commented on Aug 21, 2026

    @cmjordan42
    Author

    No activity because repo owners are inactive? I dunno... why close a useful report

  5. LinuxServer-CI commented on Sep 21, 2026

    @LinuxServer-CI
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions