windows 监听端口失败处理

今天启动 adb 时出现错误,在 %temp%\adb.log 中提示创建监听端口失败
解析方案与 android studio 启动失败一新处理,将 adb 的 5037 端口加入至排除列表中

https://github.com/docker/for-win/issues/3171

# 查看排除端口
netsh interface ipv4 show excludedportrange protocol=tcp

net stop winnat

netsh int ipv4 add excludedportrange protocol=tcp startport=5037 numberofports=1

net start winnat


# 查看监听端口
netstat -ano
Get-NetTCPConnection

上一篇
下一篇