Skip to main content

Ports

Caged automatically scans for listening TCP ports inside a sandbox and exposes them as public preview URLs.

List Ports

Returns all currently detected listening ports for a sandbox.
Response 200 OK

Port Fields

Password-Protect a Port

Add password protection to a preview URL.
string
required
Password required to access the preview URL.
Response 200 OK

How Port Detection Works

  1. Caged scans /proc/net/tcp inside the sandbox every 2 seconds
  2. New listening ports are registered in the port registry
  3. HTTP ports (80, 3000, 4200, 5173, 8000, 8080, etc.) get public preview URLs
  4. Non-HTTP ports (databases, etc.) are listed but not publicly exposed
  5. Ports are removed when they stop listening

Rate Limits

Preview URLs are rate-limited to 100 requests per minute per port.