I have a website that needs to work only on my local network, I am hosting it on Apache, I have already done all the steps to make it accessible from any PC and laptop, but for some reasons if I try to reach it from a mobile phone it either give me ERR_UNREACHABLE
or it shows a white screen.
Both the phones and the PC/laptop are connected to the same network, and I just enter http://hostIP:8080
to access the site.
EDIT: So I tested it in my home network and by connecting from the phone to my pc with hotspot and it works fine, I think the problem have to do with the router in my company, but I can't figure out why it works from PC'S and laptop but not from phone (tested only on Android). I'll update the post if I manage to do some progress
8080
to the server/computer that Apache is running on, and try disabling the firewall on that to see if it makes a difference.192.168.1.12
for your server/computer and for your phone (e.g.,192.168.1.14
), then usinghttp://192.168.1.12:8080
should work without port forwarding. But if your server & phone have very different IP addresses (like one of them is public), then you'll need to setup port forwarding. I've found that with some routers however, you may need to setup port forwarding regardless - that might be the case with the router at your company. Also more advanced routers sometimes will block incoming packets from unregistered devices...