我正在使用VirtualBox进行简单的端口转发,似乎VirtualBox.exe正在主机上监听端口,但实际上没有将连接转发到虚拟机。我已经尝试了多个端口,并且多次重启了VirtualBox。另一方面,从虚拟机到主机的连通性是正常的。以下是详细信息:
Host: Win7 x64
Guest: Win7 x64
VirtualBox version: VirtualBox 4.2.10
Firewalls: All firewalls on host and guest disabled.
Virtual Box > Machine Settings > Network
Adapter 1:
Attached to: NAT
Cable Connected : True
Port Forwarding:
Rule 1: TCP, HostIP=127.0.0.1, HostPort=8081, GuestIP=127.0.0.1, GuestPort=8081
On Host:
[VirtualBox.exe] TCP 127.0.0.1:8081 IBM-6KT5OPCF76P:0 LISTENING
On Guest:
I never get the connection request on port 8081 or any others I've tried.
有什么想法吗?我希望避免使用VirtualBox的桥接适配器,有多种原因。我认为使用VirtualBox进行NAT端口转发相对简单。
谢谢!