0

The home net structure is simple.
Two devices(a pc and an android mobile phone) connected to the wireless router.
Wireless router'ip is 192.168.1.1.
Pc'ip is 192.168.1.176.(dhcp)
Mobile phone'ip is 192.168.37.(dhcp)
There is a wordpress build on the pc.

cat  /etc/hosts
127.0.0.1   localhost
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1  hwy.local
127.0.0.1  www.hwy.local

When to input hwy.local/wp or www.hwy.local/wp ,my pc can login the wordpress.
The mobile phone can connect internet when to input yahoo.com in its firefox.
Why can't longin my wordpress in local pc(192.168.1.176) when to input hwy.local/wp or www.hwy.local/wp in mobile phone 's firefox?

enter image description here

showkey
  • 323
  • 4
    I'm voting to close this question as off-topic because it has nothing to do with Unix&Linux and should be asked on SuperUser. – dr_ Feb 01 '17 at 13:37

1 Answers1

1

Because your mobile phone doesn't know how to reach that "domain name". Only your PC knows how to reach it because you added it in the hosts file.

You should be able to reach it from your mobile phone using the IP address (192.168.1.176/wp) of your PC.

You need a DNS server in your network and configure the domain in it if you want to be able to load it from all your LAN devices using a domain name.