[GH-ISSUE #804] 不能使用STCP #627

Closed
opened 2026-05-05 12:24:24 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @asdaragon on GitHub (Jun 5, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/804

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
frps 0.20.0
frpc 0.20.0
frpc_Visitor 0.20.0

What operating system and processor architecture are you using (go env)?
frps - ubuntu
frpc - win2016
frpc_Visitor - win7

Configures you used:
frpc
[ubuntu_shh_stcp]
type = stcp
sk = Qwe159874123
local_ip = 192.168.1.40
local_port = 22
use_encryption = true
use_compression = true

frpc_Visitor
[secret_tcp_visitor]
role = visitor
type = stcp
server_name = ubuntu_shh_stcp
sk = Qwe159874123
bind_addr = 127.0.0.1
bind_port = 22
use_encryption = true
use_compression = true

Steps to reproduce the issue:
1.两台机器启动了frpc
2.连接正常
3.使用XSHELL访问Frpc_Visitor

Describe the results you received:
default

image

image

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)

Originally created by @asdaragon on GitHub (Jun 5, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/804 Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly. (为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。) Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST **What version of frp are you using (./frpc -v or ./frps -v)?** frps 0.20.0 frpc 0.20.0 frpc_Visitor 0.20.0 **What operating system and processor architecture are you using (`go env`)?** frps - ubuntu frpc - win2016 frpc_Visitor - win7 **Configures you used:** frpc [ubuntu_shh_stcp] type = stcp sk = Qwe159874123 local_ip = 192.168.1.40 local_port = 22 use_encryption = true use_compression = true frpc_Visitor [secret_tcp_visitor] role = visitor type = stcp server_name = ubuntu_shh_stcp sk = Qwe159874123 bind_addr = 127.0.0.1 bind_port = 22 use_encryption = true use_compression = true **Steps to reproduce the issue:** 1.两台机器启动了frpc 2.连接正常 3.使用XSHELL访问Frpc_Visitor **Describe the results you received:** ![default](https://user-images.githubusercontent.com/22835918/40958076-918299c6-68ca-11e8-8a23-c9e8901f17ad.PNG) ![image](https://user-images.githubusercontent.com/22835918/40958105-a4d01198-68ca-11e8-82c2-fcc26d9ba6bc.png) ![image](https://user-images.githubusercontent.com/22835918/40958138-c012312a-68ca-11e8-8577-590ed57aa3bf.png) **Describe the results you expected:** 无 **Additional information you deem important (e.g. issue happens only occasionally):** 无 **Can you point out what caused this issue (optional)** 无
gitea-mirror 2026-05-05 12:24:24 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@fatedier commented on GitHub (Jun 6, 2018):

两边的 user 这个参数是不是配置的不一样。

<!-- gh-comment-id:395172653 --> @fatedier commented on GitHub (Jun 6, 2018): 两边的 `user` 这个参数是不是配置的不一样。
Author
Owner

@asdaragon commented on GitHub (Jun 8, 2018):

User配置是一样的。我想问一下,如果NAT类型是Udpblocked的话应该用不了吧

<!-- gh-comment-id:395657703 --> @asdaragon commented on GitHub (Jun 8, 2018): User配置是一样的。我想问一下,如果NAT类型是Udpblocked的话应该用不了吧
Author
Owner

@fatedier commented on GitHub (Jun 8, 2018):

不是,stcp 不是 p2p 和 NAT 类型无关,之后我会测试下是哪里的问题。
你最好贴下你的完整的配置,同时最好简化,一些不必要的配置可以去掉。

<!-- gh-comment-id:395660554 --> @fatedier commented on GitHub (Jun 8, 2018): 不是,stcp 不是 p2p 和 NAT 类型无关,之后我会测试下是哪里的问题。 你最好贴下你的完整的配置,同时最好简化,一些不必要的配置可以去掉。
Author
Owner

@fatedier commented on GitHub (Jun 8, 2018):

看起来是对 user 作为 server_name 的 prefix 部分有问题,已修改。

<!-- gh-comment-id:395664873 --> @fatedier commented on GitHub (Jun 8, 2018): 看起来是对 user 作为 server_name 的 prefix 部分有问题,已修改。
Author
Owner

@ljpwinxp2 commented on GitHub (Jul 27, 2018):

我也是0.20版本,也是碰到这种问题。我该如何在还没发布新版本的时候去修复这个问题呢

<!-- gh-comment-id:408331162 --> @ljpwinxp2 commented on GitHub (Jul 27, 2018): 我也是0.20版本,也是碰到这种问题。我该如何在还没发布新版本的时候去修复这个问题呢
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#627
No description provided.