Skip to content

Lynk4/Exposing-Localhost-to-the-Internet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Exposing Localhost to the Internet using Ngrok.


First of all we need to install ngrok

You can expose anything like a simple website, tcp client server chat etc.................

I'll expose a simple html page.


We are gonna use python3 to start a server locally.


Screenshot 2024-08-10 at 6 22 29 PM

Here we can see our web page is running locally.

Screenshot 2024-08-10 at 6 23 58 PM

Keep the local server on.

open up another terminal on the same directory location.

Now we have to set authentication token for ngrok.

go to here register an acoount. go to Your Authtoken and you get your auth token....

To set auth token.

in the terminal type

ngrok config add-authtoken your-auth-token

Now you are ready to use ngrok..

in the terminal typengrok http port no. in my case it's 9191

ngrok http 9191

Screenshot 2024-08-10 at 6 31 48 PM

Visit the web interface address.

Screenshot 2024-08-10 at 6 34 39 PM

click on the link..then visit site.......


Screenshot 2024-08-10 at 6 34 39 PM
Screenshot 2024-08-10 at 6 34 49 PM

Now you can visit the Forwarding address to access the web page from anywhere in the world.............


Screenshot 2024-08-10 at 6 35 22 PM

About

Expose your local network to the World using Ngrok.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published