您的位置:首页 > 其它

Configure port forwarding with NAT

2013-12-04 10:39 218 查看

From: http://scriptogr.am/kevinshen/post/configure-port-forwarding-with-nat

terminology:

guest: virtual machine like Ubantu

host: physical machine where virtual machine is running on, e.g. Windows 7

virtual machine app: VMware, Virtual Box etc.

with NAT configuration:

guest lives in a private network virtual machine app created. host and other guest can't access the service it exposes. use port forwarding will let virtual machine app listens to the certain ports on
the host and forward to guest. we will utilize it to expose same port on both host and guest

Steps:

create a rule in the virtual machine application, set Host IP: 127.0.0.1, set HostPort: 3000, set Guest Port: 3000
in guest, listen to port 3000.
in host, open a web browser, type: localhost:3000. it will send get request to guest
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: