尝试使用 VNC 查看 behat 测试时出现连接错误

Connection error when trying to use VNC to view behat tests

我刚刚在我的计算机上安装了 moodle-docker,我正在尝试 运行 一些 behat 测试。测试 运行 正在通过。我现在正在尝试通过 VNC 实际查看这些测试,遵循 使用 VNC 查看 behat 测试 部分。但是,当我尝试从 VNC 连接时出现错误:

connect: the requested direction is not valid in this context (10049)

我该如何解决这个问题?

我能够通过将端口设置为 127.0.0.1:PI 而不是指南建议的 0.0.0.0:PI 来修复它。