[GH-ISSUE #2718] [Feature Request] 有没有办法指定客户端(frpc)的端口与frps建立初始连接? #2171

Closed
opened 2026-05-05 13:23:52 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @scoryi on GitHub (Dec 24, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2718

Originally assigned to: @blizard863 on GitHub.

Describe the feature request

客户端frpc与frps建立连接的时候,使用的是随机端口。
有没有办法指定frpc的某个端口与frps建立连接?
111

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
Originally created by @scoryi on GitHub (Dec 24, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2718 Originally assigned to: @blizard863 on GitHub. ### Describe the feature request 客户端frpc与frps建立连接的时候,使用的是随机端口。 有没有办法指定frpc的某个端口与frps建立连接? ![111](https://user-images.githubusercontent.com/35684058/147334548-e568f785-d01c-493e-8469-1a7241e343f6.png) ### 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
gitea-mirror 2026-05-05 13:23:53 -06:00
Author
Owner

@fatedier commented on GitHub (Dec 24, 2021):

Can do that but why?

<!-- gh-comment-id:1000723162 --> @fatedier commented on GitHub (Dec 24, 2021): Can do that but why?
Author
Owner

@scoryi commented on GitHub (Dec 24, 2021):

Can do that but why?

因为在客户端前面的防火墙也限制了端口号,只有某几个端口号可以通过~

<!-- gh-comment-id:1000732232 --> @scoryi commented on GitHub (Dec 24, 2021): > Can do that but why? 因为在客户端前面的防火墙也限制了端口号,只有某几个端口号可以通过~
Author
Owner

@fatedier commented on GitHub (Dec 24, 2021):

cc @bingtianbaihua

<!-- gh-comment-id:1000764658 --> @fatedier commented on GitHub (Dec 24, 2021): cc @bingtianbaihua
Author
Owner

@fatedier commented on GitHub (Dec 29, 2021):

We discuss it and decide not to support this feature.

There may be multiple connections between frpc and frps, so you can't only specify one local port.

Instead, we will support connect_local_ip.

<!-- gh-comment-id:1002496503 --> @fatedier commented on GitHub (Dec 29, 2021): We discuss it and decide not to support this feature. There may be multiple connections between frpc and frps, so you can't only specify one local port. Instead, we will support `connect_local_ip`.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 29, 2022):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1024769391 --> @github-actions[bot] commented on GitHub (Jan 29, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2171
No description provided.