Windows 10 Home Version 22H2,新安装。我下载了 real VNC Server 7.5.1 (r50075) x64,带有免费个人使用许可证。我以管理员身份运行它(但 UAC 仍然弹出要求许可)。它在这台机器上看起来不错,并在 GUI 的右上角有一个绿色复选标记。
但是当我尝试通过手机上的 realVNC 连接时,我遇到了超时问题。手机可以正常连接到另一台运行很多较旧版本的 VNC,5.1.1 (r117550) x64)。在运行古老 VNC 的那台机器上,我可以运行netstat -ano | find "LISTEN" | find "5900"
并看到有一个进程正在监听端口 5900,并且正如预期的那样,tasklist 显示该进程是 vncserver.exe。
但是,使用较新版本的 VNC 服务器,netstat 不会显示任何监听端口 5900 的内容,或任何接近的内容。以下是 VNC 服务器中的绿色复选标记、正在运行 VNC SERVER 的任务管理器以及包含以下输出的 cmd 窗口的屏幕截图netstat -ano
谷歌搜索表明 Windows 防火墙可能是罪魁祸首,但我认为防火墙无法阻止程序监听。无论如何,在关闭防火墙的情况下,我得到了相同的行为。更糟糕的是,具有高级安全性的 Windows Defender 防火墙应用程序入站规则显示 VNC 服务器的两个条目,一个用于 TCP,另一个用于 UDP,两者都允许任何接口、任何端口和任何用户。
关于如何让它发挥作用,我有什么想法吗?
===编辑 更多信息=== 正如我在评论中指出的那样,这些参数几乎都处于默认值,特别是 localhost 为 false,ipListenAddresses 为空(表示监听所有地址),ip ListendProtocols 为 TCP、UDP,RfbPort 为 5900。而且我已关闭 Windows Defender 防火墙。因此,在这种状态下,我转到选项->疑难解答并选择“创建调试日志文件”。这是该文件的内容:
RealVNC(R) Server 7.5.1 (r50075) x64 (May 30 2023 13:07:39)
Copyright (C) RealVNC Ltd.
RealVNC and VNC are trademarks of RealVNC Ltd and are protected by trademark
registrations and/or pending trademark applications in the European Union,
United States of America and other jurisdictions.
Protected by UK patent 2481870; US patent 8760366; EU patent 2652951.
See https://www.realvnc.com for information on VNC.
For third party acknowledgements see:
https://www.realvnc.com/docs/7/foss.html
OS: Microsoft Windows 10, version 22H2, x64
<14> 2023-06-20T19:32:18.794Z DESKTOP-NP7LJEH vncserver[1556]: LogDestMem: Start replaying stored messages
<14> 2023-06-20T19:32:18.794Z DESKTOP-NP7LJEH vncserver[1556]: Localize: Locales en_US
<14> 2023-06-20T19:32:18.794Z DESKTOP-NP7LJEH vncserver[1556]: JoinMgr: Getting CloudConfig.pkg from built-in resource
<14> 2023-06-20T19:32:18.794Z DESKTOP-NP7LJEH vncserver[1556]: JoinMgr: Using business identifier 21d22e22-eeb1-47dd-955f-00ca74f34f1e
<14> 2023-06-20T19:32:18.794Z DESKTOP-NP7LJEH vncserver[1556]: Licensing: Using online license token 1, changed 1
<14> 2023-06-20T19:32:18.794Z DESKTOP-NP7LJEH vncserver[1556]: LogDestMem: Finished replaying stored messages
<14> 2023-06-20T19:32:18.794Z DESKTOP-NP7LJEH vncserver[1556]: main: Running service-mode server
<14> 2023-06-20T19:32:18.794Z DESKTOP-NP7LJEH vncserver[1556]: Service: Service dispatcher starting
<14> 2023-06-20T19:32:18.799Z DESKTOP-NP7LJEH vncserver[1556]: Service: set status to START_PENDING(2) [seq# 1]
<14> 2023-06-20T19:32:18.799Z DESKTOP-NP7LJEH vncserver[1556]: Service: set status to RUNNING(4) [seq# 2]
<13> 2023-06-20T19:32:18.840Z DESKTOP-NP7LJEH vncserver[1556]: ServerManager: Server started
<14> 2023-06-20T19:32:18.899Z DESKTOP-NP7LJEH vncserver[1556]: Configuration: Authentication=VncAuth (Preference)
<14> 2023-06-20T19:32:18.899Z DESKTOP-NP7LJEH vncserver[1556]: Configuration: EnableAnalytics=1 (Preference)
<14> 2023-06-20T19:32:18.899Z DESKTOP-NP7LJEH vncserver[1556]: Configuration: EnableAutoUpdateChecks=1 (Preference)
<14> 2023-06-20T19:32:18.899Z DESKTOP-NP7LJEH vncserver[1556]: Configuration: Password=<binary> (Preference)
<14> 2023-06-20T19:32:18.901Z DESKTOP-NP7LJEH vncserver[1556]: AgentMgrService: sessionChange: 1 1
<14> 2023-06-20T19:32:18.919Z DESKTOP-NP7LJEH vncserver[1556]: SModuleCloudAccess: Beginning listening as [9uJFVm-UVbbB-JCBXYb]
<14> 2023-06-20T19:32:18.937Z DESKTOP-NP7LJEH vncserver[1556]: HostedRegion: Using region USEast
<14> 2023-06-20T19:32:18.939Z DESKTOP-NP7LJEH vncserver[1556]: SModuleRsaKey: Using new key: 5b-c9-9d-1b-7a-61-0d-8d (catchphrase "Brazil Linda control. Egypt Cecilia forward.")
<14> 2023-06-20T19:32:18.950Z DESKTOP-NP7LJEH vncserver[1556]: SModuleCtrlCommsListen: listening on RealVNC.vncservice.vncserver.CtrlComms
<14> 2023-06-20T19:32:19.090Z DESKTOP-NP7LJEH vncserver[1556]: SDesktopAgent: agent connected
<14> 2023-06-20T19:32:19.090Z DESKTOP-NP7LJEH vncserver[1556]: UiProcess: Restart in 500ms
<14> 2023-06-20T19:32:19.098Z DESKTOP-NP7LJEH vncserver[1556]: ServerApp: Input desktop is now 'Default'
<14> 2023-06-20T19:32:19.098Z DESKTOP-NP7LJEH vncserver[1556]: Agent: Localize: Locales en_US
<14> 2023-06-20T19:32:19.098Z DESKTOP-NP7LJEH vncserver[1556]: Agent: AgentAppWin: Starting
<14> 2023-06-20T19:32:19.098Z DESKTOP-NP7LJEH vncserver[1556]: Agent: EndSessionNotifier: Cannot listen for logoff events (console is attached)
<14> 2023-06-20T19:32:19.315Z DESKTOP-NP7LJEH vncserver[1556]: CtrlComms: connected: <namedpipe-server-RealVNC.vncservice.vncserver.CtrlComms-0000000000000388>
<14> 2023-06-20T19:32:19.558Z DESKTOP-NP7LJEH vncserver[1556]: HostedRendezvous: Using Rendezvous service at https://hc-8-us-va-1.services.vnc.com/rendezvous
<14> 2023-06-20T19:32:20.090Z DESKTOP-NP7LJEH vncserver[1556]: UiProcess: UI process started
<14> 2023-06-20T19:32:32.562Z DESKTOP-NP7LJEH vncserver[1556]: Licensing: Using online license token 1, changed 0
<14> 2023-06-20T19:32:33.186Z DESKTOP-NP7LJEH vncserver[1556]: ServerApp: Input desktop is now 'Winlogon'
<14> 2023-06-20T19:32:35.956Z DESKTOP-NP7LJEH vncserver[1556]: ServerApp: Input desktop is now 'Default'
<14> 2023-06-20T19:35:49.214Z DESKTOP-NP7LJEH vncserver[1556]: Licensing: Using online license token 1, changed 0
其中根本没有出现字符串 5900。并且字符串“listen”只出现了三次:
SModuleCloudAccess: Beginning listening as [9uJFVm-UVbbB-JCBXYb]
SModuleCtrlCommsListen: listening on RealVNC.vncservice.vncserver.CtrlComms
Agent: EndSessionNotifier: Cannot listen for logoff events (console is attached)
有人能在日志中看到任何可以解释发生了什么事情的内容吗?