[GH-ISSUE #3095] [Feature Request] Recognize which device to connect to over remote port from 100s of devices in field #2481

Closed
opened 2026-05-05 13:35:40 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @ovfstack on GitHub (Sep 9, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3095

Describe the feature request

Hello,
We want to deploy 100s of devices in field which can run frpc and connect back to frps. The logic is each of this device will generate a unique remote port value when frpc is installed. This is a random unique port value which is generated when frpc is installed. On the frps side, how to know which device is available on which port?

The reason to use random but unique remote port value for each frpc is to simplify the device deployment. However when trying to connect from frps side to frpc over ssh, we need to know which port will connect to which device. Is there a way to map deviceid (Mac address in our case) that we know before hand with this remote port, so that we know that to ssh in to a device (which has a particular MAC address) we need to ssh to which remote port on frps

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 @ovfstack on GitHub (Sep 9, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3095 ### Describe the feature request Hello, We want to deploy 100s of devices in field which can run frpc and connect back to frps. The logic is each of this device will generate a unique remote port value when frpc is installed. This is a random unique port value which is generated when frpc is installed. On the frps side, how to know which device is available on which port? The reason to use random but unique remote port value for each frpc is to simplify the device deployment. However when trying to connect from frps side to frpc over ssh, we need to know which port will connect to which device. Is there a way to map deviceid (Mac address in our case) that we know before hand with this remote port, so that we know that to ssh in to a device (which has a particular MAC address) we need to ssh to which remote port on frps ### Describe alternatives you've considered _No response_ ### Affected area - [X] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:35:40 -06:00
Author
Owner

@fatedier commented on GitHub (Sep 9, 2022):

Set user in your frpc configuration https://github.com/fatedier/frp/blob/dev/conf/frpc_full.ini#L83

And you can get the info from frps dashboard api.

<!-- gh-comment-id:1241427919 --> @fatedier commented on GitHub (Sep 9, 2022): Set `user` in your frpc configuration https://github.com/fatedier/frp/blob/dev/conf/frpc_full.ini#L83 And you can get the info from frps dashboard api.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 10, 2022):

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

<!-- gh-comment-id:1272669393 --> @github-actions[bot] commented on GitHub (Oct 10, 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#2481
No description provided.