kcptun
kcptun copied to clipboard
help, how to use it?
./client_linux_amd64 -r "193.164.16.243:4000" -l ":8388" -key "123" -nocomp -autoexpire 900 -sockbuf 16777217 -dscp 46 ./server_linux_amd64 -t "127.0.0.1:8388" -l "193.164.16.243:4000" -mode fast3 -nocomp -sockbuf 16777217 -dscp 46 -key "123" How to open port 22\25565 on a home machine using "kcptun"?
服务端配置
# Provide kcp service for local port 22
./server_linux_amd64 -t "127.0.0.1:22" -l "193.164.16.243:4000" -mode fast3 -nocomp -sockbuf 16777217 -dscp 46 -key "123"
客户端配置
# The client is exposed to 25565. At this time, if you access the local 25565, it is equivalent to accessing the server's port 22.
./client_linux_amd64 -r "193.164.16.243:4000" -l ":25565" -key "123" -nocomp -autoexpire 900 -sockbuf 16777217 -dscp 46