mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #557] kcp模式端口绑定BUG #433
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#433
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RainCrowSP on GitHub (Dec 8, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/557
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
0.14.0
What operating system and processor architecture are you using (
go env)?ubuntu 14.04
windows 10 64bit
Configures you used:
服务端配置(frps.ini):
bind_port = 9100
kcp_bind_port = 9101
privilege_token = 654321
客户端配置(frps.ini):
[common]
server_addr = x.x.x.x
server_port = 9100
protocol = kcp
privilege_token = 654321
[vnc]
type = tcp
local_ip = 127.0.0.1
local_port = 5900
remote_port = 5900
use_encryption = true
use_compression = true
Steps to reproduce the issue:
在bind_port 和kcp_bind_port 不一致时(如9100和9101),kcp模式无法连接,
服务端提示:
2017/12/08 12:36:17 [I] [service.go:87] frps tcp listen on 0.0.0.0:9100
2017/12/08 12:36:17 [I] [service.go:96] frps kcp listen on udp 0.0.0.0:9100
2017/12/08 12:36:17 [I] [main.go:112] Start frps success
2017/12/08 12:36:17 [I] [main.go:114] PrivilegeMode is enabled, you should pay more attention to security issues
客户端提示:
2017/12/08 20:40:38 [W] [control.go:483] [f24ba18323dbdd2a] reconnect to server error: i/o timeout
改成相同的端口号后一切正常。
@fatedier commented on GitHub (Dec 9, 2017):
客户端
protocol = kcp时,server_port 填写服务端 kcp_bind_port 的地址。@RainCrowSP commented on GitHub (Dec 10, 2017):
感谢指点,但是服务器端输出还是有问题,即使指定了不同的端口,输出里看到的都是tcp端口号。
比如我设置bind_port = 9100;kcp_bind_port = 9101,但是frps运行的输出是2017/12/08 12:36:17 [I] [service.go:87] frps tcp listen on 0.0.0.0:9100
2017/12/08 12:36:17 [I] [service.go:96] frps kcp listen on udp 0.0.0.0:9100
@fatedier commented on GitHub (Dec 10, 2017):
打印错误,实际使用的是你配置的地址,这个下个版本修改下。