-
Notifications
You must be signed in to change notification settings - Fork 16.4k
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
端口禁止访问 #1835
Comments
这意味着你计算机上的 1080 端口已经被占用。如果看不到SS的主界面,请用Windows自带的记事本打开 Shadowsocks.exe 所在目录下的gui-config.json 文件,找到 |
猜测是OS问题,今天升级到最新的Win 10 x64 Version 1803(OS Build 17661.1001) prerelease版本后,问题已经不再复现 |
@chenshaoju @hong6234 这个问题并不是端口被占用,通过 根据2018年2月13日发布的 KB4074588 里的 known issue,这个补丁会调整操作系统的 reserve port ranges,可以通过运行 在我自己的环境里,1025 ~ 1124 都被系统强制保留了,所以其他应用程序无法监听在这个端口。 workaround 要选取的端口也只能避开这些保留端口。 最后建议:ss 可以做一下 10013(WSAEACCES) 和 10048(WSAEADDRINUSE)的分类处理。毕竟看起来之后这个地方会出现坑不会少。 注1:我的系统是最新的1809,一直没有这个问题,直到上周安装了 SONY 的 Digital Paper App 附带的驱动之后触发了这个问题。另一台 surface pro 4 也装了 Digital Paper App,但是没有出现这个问题,不确定是不是因为 sp4 使用的是 Windows 10 Home 的关系。 |
这是非常有用的信息,感谢分享。 |
Reopen for tracking |
When error code is SocketError.AccessDenied/10013(WSAEACCES), the port is reserved by system and you may not find the process name in `netstat`. shadowsocks#1835 (comment)
根据 2dust/v2rayN#229 hyper-v可能会保留端口 |
When error code is SocketError.AccessDenied/10013(WSAEACCES), the port is reserved by system and you may not find the process name in `netstat`. shadowsocks#1835 (comment)
这个问题解决了吗????? 无论修改代理端口1080为1999或者10801 |
这意味着: |
谢谢提示,ss软件出现了问题,已经清空配置文件解决了。 |
如果是Hyper-V保留端口导致的问题,docker/for-win#3171 (comment) 提到一种workaround: |
分享一下曾经找到的解决办法
3.Re-Enable hyper-V (which will require a couple of restart) |
docker/for-win#3171 (comment) 提到的似乎可解 |
When error code is SocketError.AccessDenied/10013(WSAEACCES), the port is reserved by system and you may not find the process name in `netstat`. shadowsocks/shadowsocks-windows#1835 (comment)
版本:4.0.9
操作环境:Win 10 x64 Version 1803(OS Build 17134.5)
操作步骤:直接运行
期望的结果:正常运行
实际结果:提示端口被占用,异常
信息显示没有访问端口的权限(port:1080)
配置文件和日志文件:
[2018-05-03 08:45:29] System.Exception: Port already in use ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at Shadowsocks.Controller.Listener.Start(Configuration config)
at Shadowsocks.Controller.ShadowsocksController.Reload()
--- End of inner exception stack trace ---
The text was updated successfully, but these errors were encountered: