3

What actually worked for me was:

download ngrok normal/free service, and put it in your path download the authkey once you create an account, and set it w/ "ngrok authtoken " => this creates a file under your home/.ngrok folder

setup a service with nssm (install nssm from Admin\PowerShell w/ choco install nssm):

nssm install ngrok

in the service setup window, add executable "cmd.exe" w/ parameters: /K ngrok tcp 1234

in the newly installed service, change the login user to be your current one. this way, when service starts, ngrok can fetch the auth key from the user's home dir.

is there a better way?

John
  • 51
  • 1
  • 3
  • Try reading [this](https://stackoverflow.com/questions/50681671/how-to-keep-ngrok-running-even-when-signing-off-of-a-server) question, I found it pretty helpful – AKASGaming Oct 22 '20 at 17:55
  • In Windows, after installing nssm with 'choco install nssm', this worked for me: nssm install YourServiceName cmd.exe /K ngrok http --config="C:\path\to\your\config\.ngrok2\ngrok.yml" --region=us --hostname=my.speficic.hostname.com 443 – Rodolfo G. Oct 06 '21 at 07:13

0 Answers0