🤹‍♂️Access Ports

It is possible to securely access any workspace internal port by selecting Open Tool -> Access Port. With this feature, you are able to access a REST API or web application running inside the workspace directly with your browser. The feature enables developers to build, run, test, and debug REST APIs or web applications directly from the workspace.

If you want to use an HTTP client or share access to a given port, you can select the Get shareable link option. This generates a token-secured link that anyone with access to the link can use to access the specified port.

The HTTP app requires to be resolved from a relative URL path or configure a base path (/tools/PORT/).

​​

Example (click to expand...)
  1. Start an HTTP server on port 1234 by running this command in a terminal within the workspace: python -m http.server 1234

  2. Select Open Tool -> Access Port, input port 1234, and select the Get shareable link option.

  3. Click Access, and you will see the content provided by Python's http.server.

  4. The opened link can also be shared to other people or called from external applications (e.g., try with Incognito Mode in Chrome).

Last updated