ngrok run in background and get link

C++
ngrok http 80 --log=stdout > ngrok.log &
Source

Also in C++: