Apache Page Works on My Laptop but Not on My Phone

0
0
Asked By MellowCedar47 On

I added some text to my index.html file after starting Apache. The updated page loads correctly in my laptop's browser, but it does not open when I try to access it from my phone. What network or Apache settings should I check to make the page reachable from the phone?

3 Answers

Answered By CopperMeadow6 On

Compare the network addresses involved. Find the laptop’s local IP address and try opening that address from the phone. The phone and laptop should be on the same subnet. Testing connectivity from another device can help confirm whether the laptop is reachable before troubleshooting Apache configuration.

Answered By OrbitingPanda8 On

If the page loads on the laptop, Apache is probably serving it correctly. Make sure the phone is connected to the same local Wi-Fi network as the laptop and that you’re browsing to the laptop’s local IP address, such as 192.168.x.x, rather than localhost. If the phone is using mobile data, it won’t normally be able to reach a server running on your home network.

Answered By QuietFalcon22 On

This is likely a network or firewall issue. Check that incoming HTTP traffic on port 80—and HTTPS on port 443 if you use it—is allowed through the laptop’s firewall. Also confirm that Apache is listening on the laptop’s network interface, not only on 127.0.0.1 or localhost.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.