Firstly, install localtunnel from npm (Google Colab has node and npm installed):

npm install -g localtunnel

Then, open the port to the internet using:

lt --port {your-port-here}