Sign Up

Ports

List listening ports

GET
/port

Returns every listening TCP port inside the sandbox, including the daemon's own listeners.

Response Body

application/json
  1. response

The TCP ports currently listening inside the sandbox.

ports*array<>

Every listening TCP port, including the daemon's own listeners.

curl -X GET 'http://sandbox:2280/port'
{  "ports": [    0  ]}
GET
/port/{port}/in-use

Parses the path segment as a decimal TCP port, requires the upstream Daytona range 3000..=9999, then checks the live listener table and a loopback dial fallback.

Path Parameters

port*string

TCP port number as a decimal string between 3000 and 9999.

Response Body

application/json
  1. response

Whether one TCP port is currently in use.

isInUse*boolean

true when the port is listening or accepts a loopback dial.

curl -X GET 'http://sandbox:2280/port/string/in-use'
{  "isInUse": true}