You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过VNC连接Selenoid浏览器容器?能否使用VNC客户端连接?

How to Connect to Selenoid Browser Containers via VNC, and VNC Client Support

Great question! Let's break this down clearly for you:

1. Step-by-Step Guide to Connect via VNC

First, you need to make sure your Selenoid setup is configured to enable VNC access for browser containers. Here's what to do:

  • Use VNC-enabled browser images: Selenoid provides dedicated images with VNC pre-installed—look for tags that include vnc (e.g., selenoid/vnc:chrome_114.0 instead of the regular selenoid/chrome_114.0). These images come with the VNC server required for remote access.

  • Enable VNC in your browser config: In your browsers.json file, add "enableVNC": true to the browser version you want to debug. Here's an example for Chrome:

    {
      "chrome": {
        "default": "114.0",
        "versions": {
          "114.0": {
            "image": "selenoid/vnc:chrome_114.0",
            "enableVNC": true,
            "port": "4444"
          }
        }
      }
    }
    
  • Launch a WebDriver session: Start Selenoid with this config, then run a test that creates a browser session. Selenoid will spin up the container and dynamically map the container's default VNC port (5900) to a random port on your host machine.

  • Locate the mapped VNC port: You can get this info in two easy ways:

    • Through Selenoid-UI: Open the UI, go to the "Running Sessions" tab, and find the VNC connection string (like vnc://localhost:32768) next to your active session.
    • Through the Selenoid API: Send a GET request to http://<selenoid-host>:4444/status—the response will include session details with the mapped VNC port.
  • Connect with a VNC client: Open your preferred VNC client (RealVNC Viewer, TightVNC, TigerVNC all work), enter the host and port from the step above, and use the default password secret. If you want to customize the password, add "vncPassword": "your-custom-pass" to your browser config.

2. Does Selenoid Support VNC Client Connections?

Absolutely! Using a standalone VNC client is fully supported—and often more practical—than the browser-based viewer in Selenoid-UI. Dedicated VNC clients usually offer better performance, extra features like screen scaling or clipboard sharing, and a more stable experience for longer debugging sessions.

The browser-based viewer is great for quick checks, but a VNC client is ideal when you need deeper access to the browser container's desktop.


内容的提问来源于stack exchange,提问作者Ivan Baranov

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 11:12:45