Port preview
Last updated: 5 December 2026 · API v1 (beta)
To see a web app running on a machine in the browser, you open its port at a preview address. The address looks like https://<port>-<random>.hbox.tr; every port you open gets a new address with its own random suffix.
Open and close from the panel
- Open the machine's page in the panel and go to the "Ports" card.
- Type the port number and, if you like, give it a label. The preview is private (see below).
- After you open it, the address appears on the card; you can copy it or open it in a new tab with Open.
- To close it, press Remove next to the port. The port no longer appears in the list.
Paused machine
If the machine was paused because it was idle, or because you paused it, it is resumed automatically when you open the preview address. The page says "the machine is waking up" for a few seconds and opens by itself once the machine is ready.
In these cases a preview does not wake the machine; resume it yourself from the panel or the CLI:
- it was paused because it ran for 6 hours without a break,
- it was paused because the balance ran out (top up first),
- it was paused because of an account suspension or an abuse review (this machine cannot be started; the address does not respond).
A preview can wake a machine at most 30 times an hour. Once the limit is reached, the address says "the machine is sleeping" until the end of that hour and tells you when to try again; resuming from the panel always works.
Signed-in requests to the preview address keep the machine awake: while you use the preview, the machine does not count as idle and is not paused automatically.
Access type
Preview addresses are private only: when you open the address you are verified with your hadronbox account, and only members of the machine's organization can get in. You do not need to add a token to the address.
There is no public preview link yet.
Limits
- Ports
52,5900–5999,6080and8052are reserved for the platform and cannot be opened (PORT_RESERVED). - You cannot open the same port a second time (
PORT_ALREADY_EXPOSED). Removing a port that does not exist returnsPORT_NOT_FOUND. - The Beta package allows at most 2 open ports; if you go over, the request is rejected with
402. The current limit is shown on the Package and limits page. - The platform may block some preview ports (
PREVIEW_BLOCKED); write through the support form for details. - Preview addresses fall under the Usage rules. If you see abuse, you can report the address.
API and webhook
You can manage ports through the API too: the list, open, get and remove endpoints are on the Endpoints page. When a port is opened, a port.exposed webhook event arrives; its payload carries only IDs and does not contain the preview address. See Webhooks. The CLI has the hb ports command too (ls, expose, rm, token).