View random ngrok URL when run in background

前端 未结 12 1728
旧时难觅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:37

    There are a couple of ways.

    You can either:

    1) Visit localhost:4040/status in your browser to see a bunch of information, or

    2) Use curl to hit the API: localhost:4040/api/tunnels

提交回复
热议问题