Windows 10/11 HTTP 设置跟踪任务通过 netsh http add urlacl 添加错误 URL

Windows 10/11 HTTP 设置跟踪任务通过 netsh http add urlacl 添加错误 URL

我试图了解为什么 8888 端口会自动从打开变为关闭......

我想用以管理员身份运行以下命令打开端口:

netsh http add urlacl url=http://127.0.0.1:8888/ user="outputof:whoami"

但在事件日志 > Windows 寄存器 > 系统我发现了以下行:

The reservation for the namespace identified by the URL prefix http://127.0.0.1:8888:127.0.0.1/? been added.

Attempt to reserve the URL http://127.0.0.1:8888:127.0.0.1/. Status 0x0. Process ID 0x1A4C executable path \ Device \ HarddiskVolume3 \ Windows \ System32 \ netsh.exe, DESKTOP-LNE0MHB \ User DEMO

我已经从管理员命令提示符检查过:

netsh http show urlacl

看来端口应该是开放的:

Reserved URL            : http://192.168.1.155:8888/
    User: DESKTOP-LNE0MHB\DEMO
        Listen: Yes
        Delegate: No
        SDDL: D:(A;;GX;;;S-1-5-21-1336458954-2914664476-3191138624-1001)

Reserved URL            : http://127.0.0.1:8888/
    User: DESKTOP-LNE0MHB\DEMO
        Listen: Yes
        Delegate: No
        SDDL: D:(A;;GX;;;S-1-5-21-1336458954-2914664476-3191138624-1001)

谁能解释一下为什么出现了两次 127.0.0.1 但该端口上的连接仍然被拒绝?

相关内容