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

protocol=kcp 参数的意义是什么? #1010

Closed
Creling opened this issue Dec 16, 2018 · 4 comments
Closed

protocol=kcp 参数的意义是什么? #1010

Creling opened this issue Dec 16, 2018 · 4 comments

Comments

@Creling
Copy link

Creling commented Dec 16, 2018

frpc.ini中设置了protocol=kcp
但是在范围端口映射时,如果:

[range:xxx]
type=kcp

会报错。
也就是说端口映射的类型只能写tcp/udp,那么protocol=kcp 究竟有什么用?

@shaobosong
Copy link

让服务器和客户端之间用udp端口走kcp流量

@Creling
Copy link
Author

Creling commented Dec 16, 2018

那么如果说我想达到“利用kcp加速服务器与客户端之间的连接”这个效果,这里的type我要如何填写?写UDP么?【我的服务本身是tcp协议】

@shaobosong
Copy link

shaobosong commented Dec 17, 2018

那么如果说我想达到“利用kcp加速服务器与客户端之间的连接”这个效果,这里的type我要如何填写?写UDP么?【我的服务本身是tcp协议】

kcp协议只能用在服务端与客户端之间(我没记错的话),服务端与个人PC之间(你自己电脑)只能使用TCP或者udp协议,也就是frpc.ini的[...]里代理的服务不能有kcp,如果这里有kcp协议,个人PC也得有相应的kcp解释两者才能通信,但实际上没有,所以自己的服务继续写tcp,frpc.ini的common写protocol = kcp,frps.ini里common写kcp_bind_port=port_num(可以和原本的端口号一致)

@fatedier
Copy link
Owner

根据代码理解。

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

3 participants