ehang-io / nps

一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.
https://ehang.io/nps/documents
GNU General Public License v3.0
29.77k stars 5.38k forks source link

服务端启用kcp模式,客户端无法连接 #1113

Closed tangmingxing1988 closed 1 year ago

tangmingxing1988 commented 1 year ago

服务端部署在windows server上,客户端部署在ubuntu上 服务端采用默认的配置TCP,客户端可以正常使用 如果服务端将桥接模式改为kcp,客户端采用-type=kcp模式连接,则无法连接

不知道有没有朋友帮忙告诉下怎么弄?

./npc -server=*.*.*.*:8024 -vkey=***** -type=kcp 报错提示:

2022/09/08 20:50:40.857 [I] [npc.go:231] the version of client is 0.26.10, the core version of client is 0.26.0

2022/09/08 20:50:50.857 [E] [control.go:231] timeout

2022/09/08 20:50:50.857 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error timeout

tangmingxing1988 commented 1 year ago

防火墙问题,必须放行upd协议,问题关闭。