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:
./ngrok tcp 22
tcp://0.tcp.ngrok.io:
There is a better way to do that just login to your account on ngrok.com. Your URL will be in your dashboard.