Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

远程计算机拒绝网络连接 或 http://127.0.0.1:59789 页面无法访问 #1155

Open
duanluan opened this issue Mar 24, 2023 · 1 comment
Labels

Comments

@duanluan
Copy link

duanluan commented Mar 24, 2023

根本原因其实是端口 59789 被占用了,因为我 Hyper-V 的保留端口调整为 50000 ~ 65539 的。
没想到 brook 会用这么大的端口,不行我就再调大一点吧。
以下方案同样适用于Client: 127.0.0.1:1080 already in use但是netstat -ano|findstr 1080没找到端口占用的情况。

# 查看端口占用范围
$ netsh int ipv4 show dynamicport tcp
# 查看端口排除范围
$ netsh interface ipv4 show excludedportrange protocol=tcp
# 关闭 Hyper-V,可以不重启
$ dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
# 修改动态端口范围,num=65535-start
$ netsh int ipv4 set dynamicport tcp start=60000 num=5535
$ netsh int ipv4 set dynamicport udp start=60000 num=5535
# 开启 Hyper-V 并重启(注销不行)
$ dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
@txthinking
Copy link
Owner

txthinking commented Mar 24, 2023 via email

@txthinking txthinking pinned this issue Jun 14, 2023
@txthinking txthinking unpinned this issue Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants