WordPress in lamp server i cant access it from wlan after port forwarding

126 views Asked by At

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.

1

There are 1 answers

0
Pat. ANDRIA On

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 ngrok like this:

patou@pa-linux:~$ ./ngrok-stable-linux-amd64/ngrok http 80

This results in a display like the following:

enter image description here

What I see, from the image you uploaded, is that you try to access your website using http://localhost from the internet.

You do not access you site from outside as localhost but as the random name provided by ngrok. Here it is http://19cfca2ea9c5.ngrok.io. It will work better