Code Server Network Requirements for Enterprise Users
To ensure the stability of Code Server within an enterprise intranet environment, the following requirements must be met:
- All domain dependencies must be whitelisted. For details, see Code Server Domain Dependencies.
- Enterprise network equipment (firewalls, CDNs, proxies) must support WebSocket protocol passthrough. If you encounter issues, see Code Server Network Troubleshooting.
Code Server Domain Dependencies
To ensure the proper operation of Code Server, network access permissions for the domains below must be granted. These domains are required for features such as the extension marketplace, resource loading, and remote development; disabling them will impact the usability of these features.
| Domain | Purpose |
|---|---|
| authoring-modelarts-cnnorth4.huaweicloud.com | ModelArts platform domain (The example provided is for CN North-Beijing4; modify it according to your actual region). |
| vscode-remote+authoring-002dmodelarts-002dcnnorth4-002ehuaweicloud-002ecom.vscode-resource.vscode-cdn.net | VS Code remote development resource acceleration CDN (ModelArts platform). |
| openvsx.eclipsecontent.org | Open VSX content delivery/image domain, used to accelerate extension file (.vsix) downloads and static resource distribution. |
| img.shields.io | Periodically (or in real-time) pulls download metrics from the Visual Studio Marketplace API to generate project badges (for example, download counts, version numbers), fetching data in real-time and rendering it as images. |
| github.com | GitHub code hosting platform and original file access gateway. |
| raw.githubusercontent.com | GitHub raw file direct link service (used for direct access to code files). |
| badges.gitter.im | Generates Gitter chat room badge icons. |
| open-vsx.org | VS Code extension marketplace and registry (open-source alternative). |
| code.visualstudio.com | Official VS Code website (documentation, downloads, community, and more). |
Code Server Network Troubleshooting
In an enterprise intranet environment, Code Server may encounter the following network faults. Below are the symptoms and their solutions.
Fault 1: WebSocket Connection Abnormality
When your browser attempts to establish a WebSocket connection with the Code Server backend, the relevant extensions fail to display.
The following error appears when opening the browser's developer tools window:
Invalid frame header
Fault 2: Error Creating or Opening Jupyter Notebook Files
An error occurs when creating or opening a Jupyter file within Code Server.
- Create a Jupyter file:
Command 'Create: New Jupyter Notebook' resulted in an error
Figure 4 Creating a Jupyter file
Figure 5 Error creating a Jupyter file
- Open a Jupyter file:
Unable to open 'xxx.ipynb'
Figure 6 Error opening a Jupyter file
Possible Root Causes and Solutions
The table below describes the possible causes and solutions.
| Possible Cause | Description | Solution |
|---|---|---|
| Protocol mismatch | WebSocket connections require the server to strictly adhere to the RFC 6455 protocol. The error message indicates:
| Check whether enterprise proxy servers or TLS middleware (for example, Nginx or Squid) are performing non-standard processing on WebSocket traffic. Any such modification features must be disabled. |
| Enterprise firewall / CDN interference | Firewalls or CDNs within the enterprise network may intercept or attempt to optimize WebSocket traffic, leading to connection abnormalities. |
|
| Proxy network abnormality | The proxy server might not be correctly forwarding WebSocket requests, or there may be a Man-in-the-Middle (MITM) encryption causing protocol conflicts. | Ensure that the proxy server explicitly supports WebSocket protocol passthrough. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot