[GH-ISSUE #3228] STCP not working #2588

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

Originally created by @Setsuna-Kitahara on GitHub (Dec 25, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3228

Bug Description

如日志所示,无法联通
两边都能连上FRP服务端,STCP服务端的设置在FRP服务端这里是看得到的,STCP客户端有其他TCP再跑,也跑得动。

frpc Version

0.46

frps Version

0.46

System Architecture

Client: Linux/arm64 Server: Linux/amd64

Configurations

client

[NAME-Client]
type = stcp
role = visitor
sk = ***
server = NAME
bind_addr = 172.17.0.1 # This Client's IP
bind_port = 20001

server

[NAME]
type = stcp
sk = ***
local_port = 10050
use_encryption = true
use_compression = true

Logs

2022/12/25 06:33:39 [D] [visitor.go:118] [8562aa28541e628d] [NAME-Client] get a new stcp user connection
2022/12/25 06:33:39 [W] [visitor.go:149] [8562aa28541e628d] [NAME-Client] start new visitor connection error: custom listener for [] doesn't exist

Steps to reproduce

telnet 172.17.0.1 20001

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Setsuna-Kitahara on GitHub (Dec 25, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3228 ### Bug Description 如日志所示,无法联通 两边都能连上FRP服务端,STCP服务端的设置在FRP服务端这里是看得到的,STCP客户端有其他TCP再跑,也跑得动。 ### frpc Version 0.46 ### frps Version 0.46 ### System Architecture Client: Linux/arm64 Server: Linux/amd64 ### Configurations client [NAME-Client] type = stcp role = visitor sk = *** server = NAME bind_addr = 172.17.0.1 # This Client's IP bind_port = 20001 server [NAME] type = stcp sk = *** local_port = 10050 use_encryption = true use_compression = true ### Logs 2022/12/25 06:33:39 [D] [visitor.go:118] [8562aa28541e628d] [NAME-Client] get a new stcp user connection 2022/12/25 06:33:39 [W] [visitor.go:149] [8562aa28541e628d] [NAME-Client] start new visitor connection error: custom listener for [] doesn't exist ### Steps to reproduce telnet 172.17.0.1 20001 ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@superzjg commented on GitHub (Dec 26, 2022):

看上去server没有指明local_ip = ?
client中server_name = NAME是标准写法

<!-- gh-comment-id:1365212260 --> @superzjg commented on GitHub (Dec 26, 2022): 看上去server没有指明local_ip = ? client中server_name = NAME是标准写法
Author
Owner

@Setsuna-Kitahara commented on GitHub (Dec 26, 2022):

看上去server没有指明local_ip = ? client中server_name = NAME是标准写法

其实就是127.0.0.1
也尝试过写过,但是问题依旧

<!-- gh-comment-id:1365222963 --> @Setsuna-Kitahara commented on GitHub (Dec 26, 2022): > 看上去server没有指明local_ip = ? client中server_name = NAME是标准写法 其实就是127.0.0.1 也尝试过写过,但是问题依旧
Author
Owner

@superzjg commented on GitHub (Dec 26, 2022):

我不是提示你 client中server_name = NAME才是标准写法吗?估计你没改,还说问题依旧。
实际上我刚刚把server_name = NAME改成server = NAME以后,跟你报一样错:
custom listener for [] doesn't exist

<!-- gh-comment-id:1365225586 --> @superzjg commented on GitHub (Dec 26, 2022): > 我不是提示你 client中server_name = NAME才是标准写法吗?估计你没改,还说问题依旧。 实际上我刚刚把server_name = NAME改成server = NAME以后,跟你报一样错: custom listener for [] doesn't exist
Author
Owner

@Setsuna-Kitahara commented on GitHub (Dec 26, 2022):

我不是提示你 client中server_name = NAME才是标准写法吗?看来你没改,还说问题依旧。 实际上我刚刚把server_name = NAME改成server = NAME以后,跟你报一样错: custom listener for [] doesn't exist 下次注意仔细点!

好吧,是没仔细看文件,这代码是0.37版本抄下来的,但是当年好像就是server_name……是当年脑子烧糊涂了吧……

<!-- gh-comment-id:1365230118 --> @Setsuna-Kitahara commented on GitHub (Dec 26, 2022): > > > > 我不是提示你 client中server_name = NAME才是标准写法吗?看来你没改,还说问题依旧。 实际上我刚刚把server_name = NAME改成server = NAME以后,跟你报一样错: custom listener for [] doesn't exist 下次注意仔细点! 好吧,是没仔细看文件,这代码是0.37版本抄下来的,但是当年好像就是server_name……是当年脑子烧糊涂了吧……
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#2588
No description provided.