---
url: /en/workspaces/business-preview.md
description: >
  Explains how to preview services running in the Workspaces environment by
  accessing business ports through WebIDE or VS Code/Cursor client, including
  port mapping and port forwarding methods.
---
Services running in the Workspaces environment can be previewed
by accessing business ports through WebIDE or VS Code/Cursor client.

**Method 1: WebIDE Port Mapping**

Add port mappings in the PORTS panel of the WebIDE console, and the system will automatically generate accessible URLs.

The business port URL can be obtained in two ways:

* From the PORTS panel in the WebIDE console
* From the environment variable `CNB_VSCODE_PROXY_URI`. For example:
  `https://xxxxxxxxxx-{{port}}.cnb.build`, replace
  `{{port}}` with the actual port number.

:::tip
Note: The service must be started on `0.0.0.0` to be accessible via this method.
Services started on `localhost` or `127.0.0.1` cannot use this method.
:::

**Method 2: VS Code/Cursor Port Forwarding**

Use the Port Forward feature of the VS Code/Cursor client to forward business ports to your local machine.
