以一种访问权限不允许的方式做了一个访问套接字的尝试处理
有一个项目需要运行在本地 http 服务器的 8080 端口上,之前还好的,今天突然就提示 以一种访问权限不允许的方式做了一个访问套接字的尝试,
在管理员模式下运行 netstat -ano | findstr 8080 没有任何输出
上网搜索发现这可能是一个规则问题
https://stackoverflow.com/questions/54671199/kestrel-unable-to-start
尝试执行 netsh interface ipv4 show excludedportrange protocol=tcp,发现 8080 端口不知道为什么被排除了,使用以下指令成功修复:
net stop winnat |
参考
- (Windows)以一种访问权限不允许的方式做了一个访问套接字的尝试处理
- Kestrel unable to start
- Unable to start Kestrel getting ‘An attempt was made to access a socket in a way forbidden by its access permissions’
- Many excludedportranges how to delete - hyper-v is disabled
- Unable to bind ports: Docker-for-Windows & Hyper-V excluding but not using important port ranges #3171
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 墨池码窖 | Sentixxx's Blog!
