Skip to content

Add --dealer-port and --pub-port CLI arguments #369

@hacha

Description

@hacha

Summary

Add --dealer-port and --pub-port as CLI arguments to styly-netsync-server, similar to the existing --server-discovery-port argument.

Currently, these ports can only be configured via a TOML config file (--config), but not directly from the command line.

Motivation

When running multiple server instances on a single PC (e.g., for multiple demo contents at a permanent installation site), each instance needs different ports. Having to create a separate TOML config file just to change ports adds unnecessary friction for a very common use case.

Being able to specify ports directly on the command line makes it easy to launch multiple instances:

# Server 1
styly-netsync-server --dealer-port 5555 --pub-port 5556 --server-discovery-port 50001

# Server 2
styly-netsync-server --dealer-port 5557 --pub-port 5558 --server-discovery-port 50002

Acceptance Criteria

  • --dealer-port PORT CLI argument added (default: 5555)
  • --pub-port PORT CLI argument added (default: 5556)
  • CLI arguments override config file values (consistent with existing precedence: CLI > config file > defaults)

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