Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My development environment is Ubuntu guest OS inside VMWare Player with Windows 7 as the host OS. I edit the hosts file in windows to point to the ip-address of my VM so that I can test browsers in windows. I love this setup, but have to update my hosts file quite often to take advantage of it. Is there a way to either prevent the ip-address from changing so frequently, or to automatically update the hosts file when it changes?

share|improve this question

migrated from Nov 21 '11 at 14:55

This question came from our site for system and network administrators.

Is your Virtual networking setup NAT or bridged? Any reason why you can't just set a static IP in Ubuntu? – growse Jul 10 '11 at 19:20
That's exactly what I'm asking how to do! – Anson Kao Jul 10 '11 at 23:04
up vote 1 down vote accepted

It may be simpler to set your virtual machines networking to Bridged and set a static IP up in Ubuntu.

share|improve this answer
Awesome, can you point me in the right direction on how to do that? I tried changing VMWare player to bridged, after which my hosts don't seem to work anymore – Anson Kao Jul 11 '11 at 0:39
Nevermind, I probably just didn't wait long enough for the settings to kick in. Thanks! – Anson Kao Jul 11 '11 at 3:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .