Skip to content

Open a web server that runs in a session

When an agent starts a dev server on the host, forward its port to your laptop:

simstim ports my-server/app
simstim forward my-server/app 3000

ports lists the TCP ports the session’s processes listen on. forward makes each port reachable at 127.0.0.1 on your laptop, through your existing SSH connection, until you press Ctrl+C. With no port, it forwards all of them. Write 8080:3000 to use another local port.

Nothing is opened to the network: the port is bound to 127.0.0.1 on your laptop only, and nothing new listens on the host.