How-to guides How-to guide

Forward a port

Preview a service running on a remote host or sprite, and read the listening-port chips on session cards.

Remote sessions — SSH and sprites.dev — can forward a port so a service running on the remote machine is reachable on your local machine. This lets you preview a remote dev server in a local browser.

Forward a sprite port

For sprites, forwarded ports are managed from the Sprites panel. Open the panel, find your sprite, and use its port controls to set up forwarding.

See which ports a session is listening on

Session cards in the rail and the flyout show listening-port chips for ports detected in that session. They give you a quick read on what a session is currently serving.

You can turn these chips off with the sidebarShowPorts setting under Settings → Sidebar.

Report ports from inside a pane

A program running in a pane can tell Muxie which ports it is using:

  • muxie report-ports — report the pane’s listening ports to Muxie.
  • muxie ports-kick — trigger an immediate re-scan.

See the CLI reference for exact usage.

Tip: If a port chip is slow to appear after a server starts, run muxie ports-kick in that pane to force a re-scan.

Once a port is forwarded, you can open it in a browser pane to preview the service without leaving Muxie.