The intranet of laravel homestead cannot be accessed?

  1. homestead; installed on win10
  2. aaa.test domain name, which you want others in the local area network to access;
  3. change public_network and IP of the same IP segment 10.8.220.12 according to online tutorials
  4. after local modification hosts , you can visit aaa.test ;
  5. other computers in the local area network cannot access the hosts file after changing it.
  6. and IP does not ping;

win10:

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::c02b:a17b:c92e:b45b%3
   Autoconfiguration IPv4 Address. . : 169.254.180.91
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :

Ethernet adapter VirtualBox Host-Only Network -sharp2:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::d054:8abc:18ec:f421%8
   IPv4 Address. . . . . . . . . . . : 192.168.10.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Ethernet adapter :

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::5ac:6bd5:2a2d:3137%9
   IPv4 Address. . . . . . . . . . . : 10.8.220.237
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 10.8.220.1

Virtual machine:

vagrant@homestead:~$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::a00:27ff:fef0:d6cc  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:f0:d6:cc  txqueuelen 1000  (Ethernet)
        RX packets 7403  bytes 1256971 (1.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5213  bytes 598032 (598.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.8.220.12  netmask 255.255.255.0  broadcast 10.8.220.255
        inet6 fe80::a00:27ff:fece:2c45  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:ce:2c:45  txqueuelen 1000  (Ethernet)
        RX packets 9801  bytes 644909 (644.9 KB)
        RX errors 0  dropped 3  overruns 0  frame 0
        TX packets 140  bytes 97322 (97.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 502  bytes 153873 (153.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 502  bytes 153873 (153.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 

what can I do to get other computers ping to homestead IP ? It"s no use changing it to the same one. Who knows?


1. Check your ip and gateway

if your ip is 192.168.20.50 , and the gateway: 192.168.20.100
, then the configuration of another person should be:
192.168.20.xxx , and the gateway is consistent.

2. Set homestead configure

homestead.yaml: under the Homestead directory

  

have you solved it?
does the virtual machine have to be rebuilt?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be90b3-310c3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be90b3-310c3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?