Я только что установил Homestead и настроил виртуальный сетевой адаптер на 192.168.0.12
и мостовой адаптер на 10.0.0.70
.Мой офисный диапазон IP-адресов 10.0.0.0
.Второй IP-адрес таков, что сайт разработчика виден другим машинам в локальной сети.
Мой первый IP-адрес находится в Homestead.yaml:
---
ip: "192.168.0.12"
memory: 4096
cpus: 2
provider: virtualbox
Мой второй находится в Vagrantfile
# NW CONFIG
config.vm.network "public_network", ip: "10.0.0.70", bridge: "eth2: This Killer Ethernet Controller connects you to the network."
VM загружается, и я вижу адаптеры в гостевой системе Ubuntu.Я могу пропинговать оба адаптера в порядке с хоста Win 10.
C:\Users\PAPA>ping dev.myproject.com.au
Pinging dev.myproject.com.au [192.168.0.12] with 32 bytes of data:
Reply from 192.168.0.12: bytes=32 time<1ms TTL=64
Reply from 192.168.0.12: bytes=32 time<1ms TTL=64
Reply from 192.168.0.12: bytes=32 time<1ms TTL=64
Reply from 192.168.0.12: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.0.12:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Users\PAPA>ping dev.myproject.com.au
Pinging dev.myproject.com.au [10.0.0.70] with 32 bytes of data:
Reply from 10.0.0.70: bytes=32 time<1ms TTL=128
Reply from 10.0.0.70: bytes=32 time<1ms TTL=128
Reply from 10.0.0.70: bytes=32 time<1ms TTL=128
Reply from 10.0.0.70: bytes=32 time<1ms TTL=128
Ping statistics for 10.0.0.70:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Если я настрою свой файл хоста так, чтобы мой домен разработчика указывал на 192.168.0.2
, тогда Laravel обслуживает страницу.
Если я укажу на 10.0.0.70
, я получу:
This site can’t be reached dev.myproject.com.au refused to connect.
Search Google for dev myproject au
ERR_CONNECTION_REFUSED
Что я пропустил, чтобы получить доступ к сайту через 10. адрес?Спасибо.