我'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使用VirtualBox 5.0.14(截至目前) . 我想从访客虚拟机访问我的NodeJS服务器 . 我现在可以通过在我的访客VM中的IE上键入“http://10.0.2.2:3000 " 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 " http://localhost:3000”来实现此目的,这在任何情况下似乎都不适用于我 .

有可能会问一个重复的问题,因为我已经尝试了所有发布的内容here但是对我来说没有任何作用 . 来宾VM中的IE无法找到"localhost:3000" .

我在来宾VM中的主机文件中有 10.0.2.2 localhost 的条目 . 我在VirtualBox上的虚拟机网络配置如下:
enter image description here

我目前没有转发端口 . 我尝试转发80和3000没有成功 . 我不是网络或VirtualBox专家,所以将不胜感激任何帮助 . 我确定我错过了一些小事 .