[GH-ISSUE #5070] [Feature Request] Auto port setting #3984

Closed
opened 2026-05-05 14:32:01 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @MertJSX on GitHub (Nov 19, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5070

Describe the feature request

For example we will allow a range of ports like 6000-6100 and server will give client a randomly selected available port. It would be so nice. The use cases will be for example I have a server and I also want my friends also to have access to share their webservers or something like that, I will make sure to give them my frp server. And all of them will receive a random port every time. (If it's available)

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 @MertJSX on GitHub (Nov 19, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/5070 ### Describe the feature request For example we will allow a range of ports like 6000-6100 and server will give client a randomly selected available port. It would be so nice. The use cases will be for example I have a server and I also want my friends also to have access to share their webservers or something like that, I will make sure to give them my frp server. And all of them will receive a random port every time. (If it's available) ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [x] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Nov 20, 2025):

When proxy remotePort is set to 0, the server will automatically assign a random available port.

<!-- gh-comment-id:3555467867 --> @fatedier commented on GitHub (Nov 20, 2025): When proxy `remotePort` is set to 0, the server will automatically assign a random available port.
Author
Owner

@MertJSX commented on GitHub (Nov 25, 2025):

The problem is that the client doesn't show which port it's using. Can we make an update to show the port that client uses?

<!-- gh-comment-id:3576832002 --> @MertJSX commented on GitHub (Nov 25, 2025): The problem is that the client doesn't show which port it's using. Can we make an update to show the port that client uses?
Author
Owner

@fatedier commented on GitHub (Nov 26, 2025):

Enable client-admin-ui

./frpc -c ./frpc.toml status or visit the client admin dashboard.

<!-- gh-comment-id:3578555175 --> @fatedier commented on GitHub (Nov 26, 2025): Enable [client-admin-ui](https://github.com/fatedier/frp?tab=readme-ov-file#client-admin-ui) `./frpc -c ./frpc.toml status` or visit the client admin dashboard.
Author
Owner

@MertJSX commented on GitHub (Nov 27, 2025):

The admin panel is looking so good, but I think there is no need for that, it would be good idea to show the port in the console. Thank you!

<!-- gh-comment-id:3586085859 --> @MertJSX commented on GitHub (Nov 27, 2025): The admin panel is looking so good, but I think there is no need for that, it would be good idea to show the port in the console. Thank you!
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#3984
No description provided.