[GH-ISSUE #4922] [Feature Request] Add socket reuse flag #3884

Closed
opened 2026-05-05 14:28:50 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @f0re1gnKey on GitHub (Aug 10, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4922

Describe the feature request

Added a socket listener reuse flag to facilitate simultaneous listening on 127.0.0.1 and 0.0.0.0

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 @f0re1gnKey on GitHub (Aug 10, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4922 ### Describe the feature request Added a socket listener reuse flag to facilitate simultaneous listening on 127.0.0.1 and 0.0.0.0 ### 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
Author
Owner

@fatedier commented on GitHub (Aug 10, 2025):

We usually need to approach problems based on actual needs and try to do things in the simplest way possible.

<!-- gh-comment-id:3172521767 --> @fatedier commented on GitHub (Aug 10, 2025): We usually need to approach problems based on actual needs and try to do things in the simplest way possible.
Author
Owner

@f0re1gnKey commented on GitHub (Aug 10, 2025):

We usually need to approach problems based on actual needs and try to do things in the simplest way possible.

Two services are running on the server at the same time. One is the edge control access service responsible for controlling access, and the other is the frp service responsible for exposing intranet services. Legitimate access will be forwarded from the edge control service to frp's 127.0.0.1. The server has one static IP and multiple dynamic IPs, which makes it inconvenient to limit the listening IP of edge services. I also expose multiple ports externally, typically configuring them to automatically forward traffic to the same port.

<!-- gh-comment-id:3172580631 --> @f0re1gnKey commented on GitHub (Aug 10, 2025): > We usually need to approach problems based on actual needs and try to do things in the simplest way possible. Two services are running on the server at the same time. One is the edge control access service responsible for controlling access, and the other is the frp service responsible for exposing intranet services. Legitimate access will be forwarded from the edge control service to frp's 127.0.0.1. The server has one static IP and multiple dynamic IPs, which makes it inconvenient to limit the listening IP of edge services. I also expose multiple ports externally, typically configuring them to automatically forward traffic to the same port.
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#3884
No description provided.