Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

客户端连接命令问题 #87

Open
mywwq opened this issue Jul 19, 2024 · 1 comment
Open

客户端连接命令问题 #87

mywwq opened this issue Jul 19, 2024 · 1 comment

Comments

@mywwq
Copy link

mywwq commented Jul 19, 2024

./ngrokc -SER[Shost:ngrok.redsaefdq.link,Sport:3010] -AddTun[Type:tcp,Lhost:localhost,Lport:23,Rport:3020,Sdname:test1]

tcp:{"Type":"NewTunnel","Payload":{"ReqId":"EIGNW","Url":"tcp://ngrok.redsaefdq.link,Sport:3010","Protocol":"tcp","Error":""}}
Add tunnel ok,type:tcp url:tcp://ngrok.redsaefdq.link,Sport:3020

这个tcp连接加上Sdname为什么没起作用

另外,客户端A向ngrok服务器映射自己的23端口为其他比如说3030,其他客户端telnet <服务器ip> 3030为什么总是失败
telnet ngrok.redsaefdq.link 3020
Trying XX.XXX.XXX.XXX ...
Connected to ngrok.redsaefdq.link.
Escape character is '^]'.
Connection closed by foreign host.

@mywwq
Copy link
Author

mywwq commented Jul 19, 2024

服务器端是这样的日志
[02:55:26 UTC 2024/07/19] [INFO] (ngrok/log.(*PrefixLogger).Info:83) [pub:1d473bb7] [tcp://ngrok.redsaefdq.link:3020] Joined with connection pxy:7432ea60
[02:55:26 UTC 2024/07/19] [DEBG] (ngrok/log.(*PrefixLogger).Debug:79) [ctl:3387e5aa] [cc9472b305fdcfe390aa3cba8f845f06] Writing message: {"Type":"ReqProxy","Payload":{}}
[02:55:26 UTC 2024/07/19] [DEBG] (ngrok/log.(*PrefixLogger).Debug:79) [pxy:7432ea60] [cc9472b305fdcfe390aa3cba8f845f06] [tcp://ngrok.redsaefdq.link:3020] Copied 0 bytes to pub:1d473bb7
[02:55:26 UTC 2024/07/19] [DEBG] (ngrok/log.(*PrefixLogger).Debug:79) [pxy:7432ea60] [cc9472b305fdcfe390aa3cba8f845f06] [tcp://ngrok.redsaefdq.link:3020] Closing
[02:55:26 UTC 2024/07/19] [WARN] (ngrok/log.(*PrefixLogger).Warn:87) [pub:1d473bb7] [tcp://ngrok.redsaefdq.link:3020] Copied 0 bytes to pxy:7432ea60 before failing with error read tcp 10.2.0.4:3020->52.261.158.151:50218: use of closed network connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant