Failed to start: app/proxyman/inbound: failed to listen TCP on 10808

发布时间 2023-08-03 13:07:17作者: 积跬步---行千里

问题现象

启动 v2xxx-With-Core 失败,报错信息如下:

2023/08/03 11:38:56 [Info] infra/conf/serial: Reading config: F:\工具\小工具\v2xxx-With-Core\guiConfigs\config.json
Failed to start: app/proxyman/inbound: failed to listen TCP on 10808 > transport/internet: failed to listen on address: 127.0.0.1:10808 > transport/internet/tcp: failed to listen TCP on 127.0.0.1:10808 > listen tcp 127.0.0.1:10808: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Cannot mix synchronous and asynchronous operation on process stream.

问题分析

1. 分析端口占用问题

netstat -ano | findstr ":10808"

image.png

分析结果:未查询到端口被占用

2. 分析端口是否被禁用

  • 查看禁用端口
C:\Users\lenovo>netsh interface ipv4 show excludedportrange protocol=tcp

协议 tcp 端口排除范围

开始端口    结束端口
----------    --------
        80          80
      7320        7419
      8002        8002
      8090        8090
      9001        9001
      9500        9500
     10062       10161
     10162       10261
     10262       10361
     10362       10461
     10462       10561
     10562       10661
     10662       10761
     10762       10861
     50000       50059     *

* - 管理的端口排除。
  • 分析
    端口 10808 确实在禁用端口范围内

解决方案

既然分析到问题的原因是端口被系统禁用,那么解决方案可以分为两种。

  • 修改当前应用的启动端口(修改为非系统禁用的端口范围)
  • 修改系统禁用端口范围

1. 修改当前应用的端口

打开 v2xxx-With-Core的参数配置界面,修改端口号:

image.png

打开参数设置界面

image.png
修改里面的端口号,点击确认保存即可。

2. 重新修改端口范围

C:\WINDOWS\system32>netsh int ipv4 set dynamicport tcp start=30000 num=1000

修改完成后,重启电脑即可。