title: Mac OSX El Capitan - Accessing "localhost:[port]" on host from guest VM running on VirtualBox
body: <p>I'm working on an AngularJS application running on NodeJS. I fire up my NodeJS server on localhost:3000 on my OSX development machine. All good! I need to test my AngularJS app on IE10+ so I got a VirtualBox image with Windows 8.1 32-bit and IE11 and got it running. I'm using VirtualBox 5.0.14 (latest as of now). I would like to access my NodeJS server from my guest VM. I can currently achieve this by typing "<a href="http://10.0.2.2:3000" rel="nofollow noreferrer">http://10.0.2.2:3000</a>" on IE in the guest VM. All good! The only issue is that due to some google maps API whitelisting issues I need to be able to go "<a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a>" on IE in my guest VM and this doesn't seem to work for me under any circumstance.</p>
  
  <p>At the risk of asking a duplicate question because I have tried everything posted <a href="https://stackoverflow.com/questions/1261975/addressing-localhost-from-a-virtualbox-virtual-machine">here</a> but nothing works for me. IE in the guest VM cannot find "localhost:3000".</p>
  
  <p>I do have an entry in the hosts file for <code>10.0.2.2    localhost</code> in the guest VM. And my network config for my VM on VirtualBox is as follows:
  <a href="https://i.stack.imgur.com/LFqMy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LFqMy.png" alt="enter image description here"></a></p>
  
  <p>I have no ports forwarded currently. I tried forwarding 80 and 3000 without success. I am no networking or VirtualBox expert so would appreciate any help. I'm sure I'm missing something small.</p>