View random ngrok URL when run in background

前端 未结 12 1912
旧时难觅i
旧时难觅i 2021-02-02 08:16

When I start an ngrok client with ./ngrok tcp 22 it runs in the foreground and I can see the randoming generated forwarding URL, such as tcp://0.tcp.ngrok.io:

12条回答
  •  我在风中等你
    2021-02-02 08:46

    Run ./ngrok http & This runs the ngrok tunnel as a background process. Ngrok usually opens a window showing the assigned URL but since we are using the nohup command this is not visible.

    Thus, then run curl http://127.0.0.1:4040/api/tunnels too see the URL assigned by ngrok

提交回复
热议问题