Apache Page Works on My Laptop but Not on My Phone

September 9, 2026 3 answers
Asked by MellowCedar47
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?

Answers

QuietFalcon22
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.
Reply to this answer
OrbitingPanda8
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.
Reply to this answer
CopperMeadow6
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.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions