[GH-ISSUE #5080] 端口占用不释放 #3989

Closed
opened 2026-05-05 14:32:13 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @supersndqd on GitHub (Nov 29, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5080

Bug Description

我一台机器使用ssh -R 把端口8000映射到客户端的127.0.0.1:8000上,然后客户端把8000推送到服务器,我ssh断开后,8000端口仍然被frpc占用,但是如果客户端配置文件里两个端口不一样,就没有这个问题

frpc Version

0.65.0

frps Version

0.65.0

System Architecture

alma linux 9

Configurations

root@:~# cat /etc/frp/frps.toml
bindPort = 58080
webServer.addr = "0.0.0.0"
webServer.port = 60080
webServer.user = "
"
webServer.password = "
*"

[root@yannanbaolong ~]# cat /etc/frpc.toml
serverAddr = "*******************************"
serverPort = 58080

proxies
name = "1111"
type = "tcp"
localIP = "127.0.0.1"
localPort = 8000
remotePort = 8000

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @supersndqd on GitHub (Nov 29, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/5080 ### Bug Description 我一台机器使用ssh -R 把端口8000映射到客户端的127.0.0.1:8000上,然后客户端把8000推送到服务器,我ssh断开后,8000端口仍然被frpc占用,但是如果客户端配置文件里两个端口不一样,就没有这个问题 ### frpc Version 0.65.0 ### frps Version 0.65.0 ### System Architecture alma linux 9 ### Configurations root@*******:~# cat /etc/frp/frps.toml bindPort = 58080 webServer.addr = "0.0.0.0" webServer.port = 60080 webServer.user = "****" webServer.password = "****" [root@yannanbaolong ~]# cat /etc/frpc.toml serverAddr = "*******************************" serverPort = 58080 [[proxies]] name = "1111" type = "tcp" localIP = "127.0.0.1" localPort = 8000 remotePort = 8000 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### 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 14:32:13 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 13, 2025):

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

<!-- gh-comment-id:3648612183 --> @github-actions[bot] commented on GitHub (Dec 13, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d 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#3989
No description provided.