windows下启动端口报错-bind: An attempt was made to access a socket in a way forbidden by its access permiss

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档

文章目录

  • 前言
  • 一、排除是否用端口被占用的情况
  • 二、禁用Intenet ICS 服务
  • 三.运行应用穿过防火墙


前言

在windows环境下启动应用程序需要开启服务情况下会出现以下错误:
failed to listen on address: 127.0.0.1:12886 > listen tcp 127.0.0.1:12886: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

一、排除是否用端口被占用的情况

进入windows--cmd,使用管理员身份进入
输入netstat -nao | findstr 端口
如果出现记录然后杀掉相应的进程
taskkill /pid xx -f

二、禁用Intenet ICS 服务

windows下启动端口报错-bind: An attempt was made to access a socket in a way forbidden by its access permiss_第1张图片
windows下启动端口报错-bind: An attempt was made to access a socket in a way forbidden by its access permiss_第2张图片
windows下启动端口报错-bind: An attempt was made to access a socket in a way forbidden by its access permiss_第3张图片

三.运行应用穿过防火墙

windows下启动端口报错-bind: An attempt was made to access a socket in a way forbidden by its access permiss_第4张图片

你可能感兴趣的:(windows)