You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This approach may result in conflicts if some ports in this range are already in use. Being able to specify a custom port range would provide more control and prevent such issues.
Why this feature should be added
Avoid port conflicts: users can prevent runtime issues by limiting the range to known available ports.
Flexibility: allows adaptation to specific environments or network policies.
Proposed Solution
Introduce a configuration option, such as p2pPortRange, where users can specify the allowed range of ports:
p2pPortRange = "29160-29200"
If not set, the default behavior remains unchanged (random selection from 1024–65535), ensuring backward compatibility.
Describe alternatives you've considered
No response
Affected area
Docs
Installation
Performance and Scalability
Security
User Experience
Test and Release
Developer Infrastructure
Client Plugin
Server Plugin
Extensions
Others
The text was updated successfully, but these errors were encountered:
I'm not quite sure what specific issue you're encountering. The code you posted is probing the port number on the peer's side. The exit port of the peer's NAT could be any arbitrary port.
I was specifically referring to the ability to define a port range on the client side (frpc). Allowing this configuration would simplify operations in environments with restricted port access, such as when using Docker
Describe the feature request
I would like to request a feature that allows explicitly defining a range of ports for P2P mode.
Currently, ports are selected using:
source
This approach may result in conflicts if some ports in this range are already in use. Being able to specify a custom port range would provide more control and prevent such issues.
Why this feature should be added
Proposed Solution
Introduce a configuration option, such as p2pPortRange, where users can specify the allowed range of ports:
If not set, the default behavior remains unchanged (random selection from 1024–65535), ensuring backward compatibility.
Describe alternatives you've considered
No response
Affected area
The text was updated successfully, but these errors were encountered: