Publish targets

GUIDE

Publish targets

Use one Pubto command for the local target you need to share: a web app, API, WebSocket, TCP service, file, folder, or static website.

Before you begin

Install Desktop on the computer that can reach the target, or install the CLI bundled with Desktop. Select only the port, file, or directory intended for the recipient.

Shortest path

command or instruction
pubto publish --port 3000 --duration 30m

Web services

Use --port for HTTP or HTTPS demos, APIs, webhooks, and static sites. Use --ws-port for a WebSocket service.

TCP services

Use --tcp for MySQL, PostgreSQL, Redis, SSH, MQTT, or another raw byte stream. The result is a tcp:// address and still requires the service's own credentials and encryption.

Files and folders

Use --file for one document or asset, --dir for a browsable folder, and --website for a directory served as a site. Supported documents can open in a browser preview; complex formats use a download fallback.

Access controls

Add --duration for expiry, --password for browser content, and --name for a clear endpoint name. Stop or delete the endpoint when the handoff is complete.

Before you share

  • The selected target is reachable on the publishing computer
  • The endpoint type matches the source protocol
  • Password and expiry match the audience
  • The public URL or tcp address was tested
  • The endpoint is stopped or allowed to expire after use

A public address is not a secret. Keep application, database, and SSH authentication enabled on the source service.

Download PubtoStill stuck? Contact support