2
2
I am a web developer and until recently I have been using ubuntu as my OS. For many reasons, I have switched back to windows. I still want to keep my server on linux platform, so I setup my local server as a virtual machine. Everything works great, but i have a little struggle with the networking. Since I am working in different places and going around clients, I connect to all sorts of network with different settings. That means the possible IP range is very dynamic which causes issues when I work on my local server. At the moment I have a dynamic IP on my host and static IP on my guest. That way I can access the server from my host (by adding record to hosts file). I also have internet connection on the guest. But once i change networks, it does not work (assuming the network has different configuration).
My question is, how to setup host-guest networking, so no matter what network I connect to, I can keep my static IP on guest, which is registered in hosts file on my host so I can access the webserver and also I will have internet connection on the guest?
Hope it make sense.
Thank you
What's your hypervisor? Hyper-V? VirtualBox? What is your network configuration: NAT, Bridge, host-only...? – MariusMatutiae – 2014-06-06T11:02:50.553
is the goal to access the web server from this static IP publicly with or without the host system? – mbb – 2014-06-09T18:46:52.573