4

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

EDIT: After a year I doing a similar project and find that the issue was a router settings. My pc was connected via ethernet while my phone was on the same router but on a different network setted as guest, that didnt allowed device discovery. It was working between pc because most of them were connected to a hidden network (not the guest one) that didn't hide device, it was also working between two different guest network, even with device discovery blocked.

2 Answers2

1

Phones are usually connected to TWO networks: one via cell tower and one via WiFi. If you turn off mobile data on your Android device, it will force it to use WiFi for the local intranet and it would be able to connect to the local server.

Stephen Ostermiller
  • 99,822
  • 18
  • 143
  • 364
0

After a year I'm doing a similar project and find that the issue was a router settings. My pc was connected via ethernet while my phone was on the same router but on a different network setted as guest, that didnt allowed device discovery. Most of the time guest network are set like that to protect connected users.