mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2067] 0.34.1 发生错误无法连接服务端 [control.go:178] [91777bf74d8e7b2f] start error: port unavailable #1643
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#1643
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 @XYZliang on GitHub (Nov 9, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2067
服务端配置(云服务器Ubuntu18.04,相关端口已开):
[common]
##服务器端口号
bind_port = 1234
max_pool_count = 40
##可视化界面
dashboard_addr = 0.0.0.0
dashboard_port = 8080
dashboard_user = admin
dashboard_pwd = 123456
token=123456
##日记
log_file = /home/ubuntu/frps/frps.log
log_level = info
log_max_days = 15
客户端配置(Macos BigSur)
[common]
server_addr = XXX.XX.XX.XX(我服务器ip)
server_port = 1234
token=zhangliang
[macOS Local VNC]
type = tcp
local_ip = 127.0.0.1
local_port = 5900
remote_port = 659
[macOS Local SSH]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 622
[macOS Local MySQL]
type = tcp
local_ip = 127.0.0.1
local_port = 3306
remote_port = 633
客户端运行发生以下错误
2020/11/09 15:12:38 [I] [service.go:288] [78940c414347b5f9] login to server success, get run id [78940c414347b5f9], server udp port [0]
2020/11/09 15:12:38 [I] [proxy_manager.go:144] [78940c414347b5f9] proxy added: [macOS Local VNC macOS Local SSH macOS Local MySQL]
2020/11/09 15:12:38 [W] [control.go:178] [78940c414347b5f9] [macOS Local VNC] start error: port unavailable
2020/11/09 15:12:38 [W] [control.go:178] [78940c414347b5f9] [macOS Local MySQL] start error: port unavailable
2020/11/09 15:12:38 [W] [control.go:178] [78940c414347b5f9] [macOS Local SSH] start error: port unavailable
并且不断重读后三行错误
服务器日志
2020/11/09 15:12:38 [I] [service.go:444] [78940c414347b5f9] client login info: ip [223.104.170.163:38860] version [0.34.1] hostname [] os [darwin] arch [amd64]
2020/11/09 15:12:38 [W] [control.go:442] [78940c414347b5f9] new proxy [macOS Local VNC] error: port unavailable
2020/11/09 15:12:38 [W] [control.go:442] [78940c414347b5f9] new proxy [macOS Local MySQL] error: port unavailable
2020/11/09 15:12:38 [W] [control.go:442] [78940c414347b5f9] new proxy [macOS Local SSH] error: port unavailable
并且不断重读后三行错误
@Becods commented on GitHub (Nov 9, 2020):
https://github.com/fatedier/frp/issues/1239
暂未找到原因
可考虑调整allow_ports
或者单一变量排除测试
另外穿透名称建议替换
为_@fatedier commented on GitHub (Nov 10, 2020):
port unavailablemeans frps can't bind this port.The reason maybe:
@llwq123456 commented on GitHub (Feb 16, 2023):
windows how to give it root permission