Ngrok allows you to expose a web server running on your local machine to the internet. 🌐 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Ngrok allows you to expose a web server running on your local machine to the internet. 🌐

Just tell ngrok what port your web server is listening on :👂🏻 ngrok http [port] -host-header="localhost:[port]" Result ✅ : Tunnel Status : online Version : 2.0/2.0 Web Interface : 127.0.0.1:4040 Forwarding : http://92832de0.ngrok.io Forwarding : https://92832de0.ngrok.io You can now access your website from ✨ : http://92832de0.ngrok.io When you start ngrok, it will display a UI in your terminal with the public URL of your tunnel and other status https://code.sololearn.com/W6d0E0j5wCMB/?ref=app

1st Apr 2018, 9:00 AM
Alireza Memarzade
Alireza Memarzade - avatar
1 Answer
+ 1
yeah but it creates temporary tunnel. not a permanent solution to web hosting.
6th Apr 2018, 11:08 AM
Sujoy Datta
Sujoy Datta - avatar