title: Accessing Localhost hosted on one virtual machine by another virtual machine
body: <p><strong>Background:</strong></p>
  
  <blockquote>
    <p>On my <em>Windows 7</em> machine I have a web
    development virtual machine running
    <em>Ubuntu</em>.  The VM's network structure is set to NAT (as opposed to bridge,
    etc.).  I run additional virtual
    machines of <em>XP</em> with different IE
    browsers on them for testing.</p>
  </blockquote>
  
  <p><strong>My Question:</strong></p>
  
  <blockquote>
    <p>I know that when using NAT on a
    virtual machine, you are able to
    access the web server from the host
    inside of a virtual machine by
    directing a web browser to <a href="http://10.0.2.2" rel="noreferrer">10.0.2.2</a>. 
    If <a href="http://localhost" rel="noreferrer">http://localhost</a> is hosted on
    <strong>Virtual Machine A</strong> (<em>Ubuntu</em>).  How do I access that from <strong>Virtual
    Machine B</strong> (any <em>XP</em> VM)?</p>
  </blockquote>
  
  <p><strong>Edit:</strong></p>
  
  <blockquote>
    <p>I am looking for an elegant solution,
    similar to that of using <a href="http://10.0.2.2" rel="noreferrer">10.0.2.2</a> as
    described above.  I would prefer not
    to have to specify dynamic IP's for
    the VM's as well as not having to look
    up the VM's IP every time I want to
    access it.  Is anything like this
    possible?</p>
  </blockquote>