[GH-ISSUE #4682] STCP local listener closed #3698

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

Originally created by @Otanh1900 on GitHub (Feb 20, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4682

Bug Description

I encountered a problem where the STCP connection would disconnect every 90 seconds after it was established. I reviewed the manual but found no relevant description. I am sure that my configuration is correct because I can use it normally before the disconnection. The connection will automatically reconnect after the disconnection, and the error message is as follows:
“stcp local listener closed”
”stcp internal listener closed“

frpc Version

0.61.0

frps Version

0.61.0

System Architecture

windows/amd64

Configurations

[common]

[]
type=stcp
role = visitor
server_name = xxxx
sk = xxxx
bind_addr =
bind_port =

Logs

“stcp local listener closed”
”stcp internal listener closed“

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 @Otanh1900 on GitHub (Feb 20, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4682 ### Bug Description I encountered a problem where the STCP connection would disconnect every 90 seconds after it was established. I reviewed the manual but found no relevant description. I am sure that my configuration is correct because I can use it normally before the disconnection. The connection will automatically reconnect after the disconnection, and the error message is as follows: “stcp local listener closed” ”stcp internal listener closed“ ### frpc Version 0.61.0 ### frps Version 0.61.0 ### System Architecture windows/amd64 ### Configurations [common] [] type=stcp role = visitor server_name = xxxx sk = xxxx bind_addr = bind_port = ### Logs “stcp local listener closed” ”stcp internal listener closed“ ### 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:22:15 -06:00
Author
Owner

@superzjg commented on GitHub (Feb 20, 2025):

Please use the conf file to test:

frps:

bindPort = 7000
auth.token = "xxx"

frpc_server:

serverAddr = "xxx.xxx.xxx"
serverPort = 7000
loginFailExit = false
auth.token = "xxx"
user = "user1"

[[proxies]]
name = "test"
type = "stcp"
secretKey = "asdf"
localIP = "127.0.0.1"
localPort = 80

frpc_visitor:

serverAddr = "xxx.xxx.xxx"
serverPort = 7000
auth.token = "xxx"
loginFailExit = false
user = "user1"

[[visitors]]
name = "stcp_visitor"
type = "stcp"
serverUser = "user1"
serverName = "test"
secretKey = "asdf"
bindAddr = "127.0.0.1"
bindPort = 81
<!-- gh-comment-id:2671530526 --> @superzjg commented on GitHub (Feb 20, 2025): Please use the conf file to test: frps: ``` bindPort = 7000 auth.token = "xxx" ``` frpc_server: ``` serverAddr = "xxx.xxx.xxx" serverPort = 7000 loginFailExit = false auth.token = "xxx" user = "user1" [[proxies]] name = "test" type = "stcp" secretKey = "asdf" localIP = "127.0.0.1" localPort = 80 ``` frpc_visitor: ``` serverAddr = "xxx.xxx.xxx" serverPort = 7000 auth.token = "xxx" loginFailExit = false user = "user1" [[visitors]] name = "stcp_visitor" type = "stcp" serverUser = "user1" serverName = "test" secretKey = "asdf" bindAddr = "127.0.0.1" bindPort = 81 ```
Author
Owner

@github-actions[bot] commented on GitHub (Mar 7, 2025):

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

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