How to keep the server in Windows' command prompt always running

I managed to run my localhost session through Ngrok to enable external users of accessing it. However, obviously, when I exit the command prompt the server stops and the Ngrok link also stops.

What is the solution to that? How do I keep the server running even when the PC is off?

Typically, we recommend using tmux for managing persistent ssh sessions. You can find a lot of posts by searching tmux or community posts like this:

I also really like Victor Geislinger's recent NormConf short on tmux:

1 Like

Thanks Ryan! Will check these resources out