荣耀之链论坛

 找回密码
 立即注册
搜索
查看: 231|回复: 0

KCPTUN教程

[复制链接]

1326

主题

2373

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10267
发表于 2024-4-7 16:21 | 显示全部楼层 |阅读模式
KCPTUN教程
https://github.com/xtaci/kcptun


客户端
client_windows_amd64.exe -l 127.0.0.2:4000 -r 1.2.3.4:10000
client_windows_amd64.exe -l 127.0.0.2:6112 -r 1.2.3.4:10001
client_windows_amd64.exe -l 127.0.0.2:6113 -r 1.2.3.4:10002

服务端
server_windows_amd64.exe -l 1.2.3.4:10000 -t 127.0.0.1:4000
server_windows_amd64.exe -l 1.2.3.4:10001 -t 127.0.0.1:6112
server_windows_amd64.exe -l 1.2.3.4:10002 -t 127.0.0.1:6113

这样就可以了

如果需要自定义一些参数的话可以加参数
client_windows_amd64.exe --help
可以查看具体的命令帮助


加密方式可以用none
--crypt none
模式默认是fast 我感觉可以了,没必要fast3  
-mode fast3
校验 默认是10bit增加3bit的校验,即流量增加30%  可以自己调节,不过我测试了,感觉效果不大,用默认的就行
-ds 1 -ps 1
不压缩(我感觉不用加这个参数)
-nocomp
其他参数(貌似没区别,我没加)
-sockbuf 16777217 -dscp 46


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

荣耀之链

GMT+8, 2025-6-18 06:36 , Processed in 0.013150 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表