Apache Page Works on My Laptop but Not on My Phone
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
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
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
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