Hi there, I know you often develop an online websites on your local environment using local webserver such as XAMPP before you deploy it on real web server online.
Sometimes you need to access your local website that is running on localhost for example in this link: http://localhost/yourwebsite from your mobile phone.
To do so, first you need to figure out what is your computer’s local ip address. On your Windows search cmd and run it (press window button on your keyboard and type cmd then press enter). Then on Command Prompt type “ipconfig”.
You will see your local ip address such as:
IPv4 Address. . . . . . . . . . . : 192.168.100.3
In this case, your local IP address is 192.168.100.3 and to access your above local website on your phone, you need to connect your phone to the same network for example same wifi which your computer is connected. Then type that ip address 192.168.100.3 followed by your website directory, like this: http://192.168.100.3/yourwebsite
If you’re unable to connect, possible your computer’s firewall is preventing it. You need to disable the blockage.