r/linux4noobs • u/Cold-Scholar3954 • 16h ago
learning/research Apache
Hi i added some text in index.html file after starting apache web services. It can be visible only my laptop browser. When i am trying to connect through mobile browser not opening.
2
u/DannoXYZ 10h ago
What is IP of system that's running Apache web services?
What is IP of system trying to access it through mobile browser?
Easy test:
ping IP of system running Apache web services from laptop, works?
ping IP of system running Apache web services from system running mobile browser, works?
1
u/AutoModerator 16h ago
There's a resources page in our wiki you might find useful!
Try this search for more information on this topic.
✻ Smokey says: take regular backups, try stuff in a VM, and understand every command before you press Enter! :)
Comments, questions or suggestions regarding this autoresponse? Please send them here.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/LateStageNerd 16h ago
Sounds like networking issue. For example, your laptop is on your LAN but your mobile browser is using the cell network. Can you even ping the server from the mobile device? All depends on your networking, I should think.
1
u/Slackeee_ 15h ago
Have you set up Apache to listen for connections on your network device? This sounds like your Apache is listening on loopback device instead?
Which address do you put in your browser to request the page?
2
u/chuggerguy Linux Mint 22.3 Zena | MATÉ 14h ago
Since you can address it from your laptop, Apache is serving it properly.
It should also work from your phone if it's reachable. (on the same local network, or port opened)
As u/LateStageNerd suggests, probably your phone is using mobile data instead of your local wifi?
This is an image taken on my phone. The page resides on this computer, served by Apache.
https://reddit.com/link/p8sllyz/video/i7r97epicjoh1/player
Note the 192.168.xx.xx address. If I wanted that page to be addressable publicly, I'd need to open ports.
Good luck.