BerlinVagrant / vagrant-dns

A plugin to manage DNS records for vagrant environments
MIT License
490 stars 50 forks source link

Accessing VMs from another device in the same network #33

Closed njam closed 10 years ago

njam commented 10 years ago

For testing and developing on mobile devices it would be great if we could access vagrant boxes from devices on the same network (let's call them "iPhone").

Our idea to accomplish this is something like this:

@kris-lab @fnordfish what do you think?

msteinhoff commented 10 years ago

We are facing the same problems, have you made any progress on this issue?

njam commented 10 years ago

I'm using landrush, which is also a vagrant DNS plugin. It detects the IP address of the operating system in the VM, so it works with DHCP-assigned addresses.

I've written up some docu on how to do it: https://github.com/phinze/landrush/tree/master/doc/proxy-mobile

njam commented 10 years ago

Another solution which proxies from a public IP to your local one (and replacing all hostnames etc): http://www.browsersync.io/