mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1814] port unavailable #1433
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#1433
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 @swhoro on GitHub (May 19, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1814
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.
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)?
服务器上的为frps 0.33.0
路由器openwrt上的为frpc 0.32.1
What operating system and processor architecture are you using (
go env)?路由器上的为openwrt aarch64
服务器上的为Ubuntu x86_64
Configures you used:

服务端:
客户端:


Steps to reproduce the issue:
1.服务端frps start启动服务
2.客户端(路由器)在frpc界面中配置相关选项,打勾启动
3.日志中显示port unavailable
Describe the results you received:
只有udp的7777端口proxy打开,tcp未打开
Describe the results you expected:
打开7777端口的tcp和udp proxy
Additional information you deem important (e.g. issue happens only occasionally):

日志文件:
Can you point out what caused this issue (optional)
@blizard863 commented on GitHub (May 19, 2020):
如果你把 frpc 配置里的 protocol = tcp 改为 kcp ,应该就 OK 了。
建议仔细看文档,什么参数是两边需要一致的。
https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini
https://github.com/fatedier/frp/blob/master/conf/frps_full.ini
@swhoro commented on GitHub (May 19, 2020):
如果使用kcp的话会报错i/o deadline reached,issues里面好像没有解决方案
把frps中的kcp_bind_port去掉的话依然会有同样的错误
@swhoro commented on GitHub (May 19, 2020):
对不起,麻烦close一下吧,找到原因了,服务器上已经有程序占用7777端口了
@blizard863 commented on GitHub (May 20, 2020):
嗯, 下次遇到这些问题, 多尝试一下, ps ,lsof,ss,netstat, nc,tcpdump 这些瑞士军刀都可以试试。