Skip to content

Comments

Add public port override option to assingment client#1979

Open
ksuprynowicz wants to merge 2 commits intomasterfrom
feature/custom_public_port
Open

Add public port override option to assingment client#1979
ksuprynowicz wants to merge 2 commits intomasterfrom
feature/custom_public_port

Conversation

@ksuprynowicz
Copy link
Member

Currently even if you specify local port for assignment client, public port will be chosen by STUN reply, and will be wrong, making it impossible to connect.
This PR allows specifying public ports so that they can be forwarded on the router.

@ksuprynowicz ksuprynowicz added the work in progress Do not merge yet label Dec 31, 2025
@ksuprynowicz ksuprynowicz added needs CR This pull request needs to be code reviewed needs QA This pull request needs to be tested and removed work in progress Do not merge yet labels Jan 1, 2026
@ksuprynowicz
Copy link
Member Author

This is ready for a review and testing.
Fixes #1979


const QCommandLineOption useSamePublicPortsOption(ASSIGNMENT_MONITOR_USE_SAME_PUBLIC_PORTS_OPTION,
"Normally public ports are discovered using STUN server. "
"Sometimes this doesn't work and gives wrong port names. "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Sometimes this doesn't work and gives wrong port names. "
"Sometimes this doesn't work and gives wrong port numbers. "

@JulianGro
Copy link
Member

Fixes #321

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

Labels

needs CR This pull request needs to be code reviewed needs QA This pull request needs to be tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants