关闭

Configure port forwarding with NAT

900人阅读 评论(0) 收藏 举报
分类:

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:

  1. create a rule in the virtual machine application, set Host IP: 127.0.0.1, set HostPort: 3000, set Guest Port: 3000
  2. in guest, listen to port 3000.
  3. in host, open a web browser, type: localhost:3000. it will send get request to guest
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:826415次
    • 积分:8051
    • 等级:
    • 排名:第2516名
    • 原创:121篇
    • 转载:73篇
    • 译文:0篇
    • 评论:87条
    最新评论