Distri.AI
English
English
  • ๐ŸชŸIntroduction
    • ๐ŸงฒWhat is Distri.AI
    • ๐Ÿ—ž๏ธWhitepaper
  • ๐Ÿ•น๏ธGetting Started
    • ๐Ÿ›’User
    • ๐Ÿ› ๏ธCompute Node
    • ๐ŸšฐFaucet
  • ๐Ÿ”ฑDistri.AI Aggregator
    • ๐Ÿ๏ธGPU Market
    • ๐Ÿ›ซModel Hub
    • ๐Ÿ“‘Dataset Repository
  • ๐Ÿ“ฆML Workspace
    • ๐ŸคนJupyter
    • ๐Ÿคนโ€โ™€๏ธDesktop GUI
    • ๐Ÿคนโ€โ™€๏ธVisual Studio Code
    • ๐Ÿคนโ€โ™‚๏ธJupyterLab
    • ๐ŸคนGit Integration
    • ๐Ÿคนโ€โ™€๏ธFile Sharing
    • ๐Ÿคนโ€โ™‚๏ธAccess Ports
    • ๐ŸคนTensorboard
    • ๐Ÿคนโ€โ™€๏ธExtensibility
    • ๐Ÿคนโ€โ™‚๏ธHardware Monitoring
    • ๐ŸคนSSH Access
    • ๐Ÿคนโ€โ™€๏ธRemote Development
    • ๐Ÿคนโ€โ™‚๏ธRun as a job
    • ๐Ÿ“ฌFAQ
  • ๐Ÿ“žContact & Social Media
Powered by GitBook
On this page
  1. ML Workspace

Access Ports

PreviousFile SharingNextTensorboard

Last updated 1 year ago

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).

๐Ÿ“ฆ
๐Ÿคนโ€โ™‚๏ธ