access private VM from other computer over wifi

后端 未结 4 1354
孤街浪徒
孤街浪徒 2021-02-04 06:26

I have a private network VM for developing on my mac. I\'d like for my android device to be able to communicate with the VM on my mac. Currently I can visit the IP defined in my

4条回答
  •  既然无缘
    2021-02-04 06:54

    A little expansion on the accepted answer: after adding the public network option in your vagrant file and reloading it, ssh into it the old way and then run ifconfig to get the IP you can use to access the vm in your local network from any other device.

    Docs: https://www.vagrantup.com/docs/networking/public_network.html

提交回复
热议问题