I'm trying to create a website, but when I port it forward using ngrok, I am not able to access it.
I am using a lamp server in Linux. I tried to access the website through my phone, but it shows this error and when I search using ngrok url it automatically changes the localhost in my phone browser.

Locally, I can access one of my local website using
http://localhost. Now, I would like to share this website on the internet.(By the way, this is not the way to deploy your site, only to share temporarily).
Using the command line, I use
ngroklike this:This results in a display like the following:
What I see, from the image you uploaded, is that you try to access your website using
http://localhostfrom the internet.You do not access you site from outside as
localhostbut as the random name provided byngrok. Here it ishttp://19cfca2ea9c5.ngrok.io. It will work better