View random ngrok URL when run in background

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

    May be I'm a little too late in answering but would be glad if it is helpful for anyone visiting the question.

    ***Above answers are solutions to see/check the redirection URL. However to run ngrok in background, you could try using screen in linux . Incase you need help here a quick reference

    Steps: 1. Just run the ngrok in screen and then detach. 2. Use the python script given by Gerard above to see the URL.

    I have followed the same process and it works!

提交回复
热议问题