How to make your project publicly accessible without taking any Hosting and Domain?

Today we will learn, how can we make our project publicly accessible.

Many times we develop web projects and want to view a demo of our website without purchasing any hosting or domain.

So there is an application by which we can achieve it. And it is "NGROK". First, we have to download ngrok then we can make our localhost project accessible to the internet.

you can download ngrok from this link:-https://ngrok.com/download

After downloading the zip file, extract it then you will get ngrok.exe

Open ngrok.exe and run following command on it
>ngrok http port_number
Here port_number may vary from different projects and localhost settings. For PHP it is 7777 and for JSP  it is 8080. Any way we can easily determine our port number by localhost link.
>ngrok http 7777  (for PHP)
>ngrok http 8080  (for JSP)

then you will get a forwarding link on your screen as you can see in the picture.


Now use this link in place of  http://localhost:7777 then you can access your project from any other device.
Example:-
Suppose your project link is http://localhost:7777/Major/Home1.php
so you can access this project on the internet with  http://0c6e4351.ngrok.io/Major/Home1.php
This link is only for given example, in your case every time you will get a new link.

While using ngrok your computer should have an internet connection and ngrok should be opened.

Try it for your project and if you get any problem please comment on it, we will try to solve it.


Comments

Post a Comment

Popular posts from this blog

Top useful websites for campus preparation