Expose Your Local Website to the Internet Using ngrok | Free Public Domain | No Port Forwarding
Manjunath Ganesan
0:00 / 0:00
Expose Your Local Website to the Internet Using ngrok | Free Public Domain | No Port Forwarding
79 просмотров · 1 месяц назад
Manjunath Ganesan
8 подписчиков
79 просмотров · 1 месяц назад
GitHub Link: https://github.com/manjunath-ganesan/ngrok
In this tutorial, you'll learn how to expose a local website running on your laptop or VM to the internet using ngrok and its free public domain.
We'll first install Nginx, host a simple web page, install ngrok, configure an authentication token, and generate a secure public URL that anyone can access from anywhere—without port forwarding or deploying to a cloud server.
This is perfect for:
Developers sharing demos
Testing webhooks
Client presentations
Remote testing
API development
Temporary website hosting
🚀 What You'll Learn
✅ Install and configure Nginx
✅ Create a simple website
✅ Install ngrok on Ubuntu/Linux
✅ Configure ngrok authentication
✅ Generate a free public URL
✅ Access localhost from anywhere
✅ Share your local website securely
📝 Step 1: Install Nginx and Update index file
Execute the below commands (use sudo if you're not logged in as the root user).
Example
sudo apt install nginx
apt install nginx
systemctl enable nginx
systemctl start nginx
systemctl status nginx
curl localhost
cd /var/www/html
vim index.html
curl localhost
📝 Step 2: Install ngrok
wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok...
sudo tar -xvzf ngrok-v3-stable-linux-amd64.tgz -C /usr/local/bin
ngrok config add-authtoken YOUR_AUTH_TOKEN
ngrok http --url=thoroughly-current-primate.ngrok-free.app 80
📝 Step 3: Test the Public URL
Open the generated URL from another device or share it with anyone.
https://thoroughly-current-primate.ngrok-f...
Note: The URL may change depending on your ngrok endpoint configuration or plan.
💻 Technologies Used
ngrok
Nginx
Ubuntu Linux
Localhost
HTTP
Linux Terminal
Web Server
Public URL
Tunneling
Web Development
🎯 Who Should Watch?
Beginners
Web Developers
Backend Developers
DevOps Engineers
Cloud Engineers
Students
QA/Test Engineers
If this tutorial helped you,
👍 Like the video
💬 Leave a comment
🔔 Subscribe for more tutorials on AWS, DevOps, Docker, Kubernetes, Linux, Jenkins, Terraform, Networking, and Cloud Architecture.