允许从另一台计算机访问VMware虚拟机(NAT)

本文介绍了如何配置VMware的NAT设置,以便从网络上的其他计算机访问运行在虚拟机(例如Ubuntu)上的服务,如Apache web服务器。通过端口转发,可以在主机的8080端口上访问虚拟机的80端口,通过主机的IP地址进行远程访问。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

If you are running a virtual machine on your computer, you may want to access that virtual machine from another computer. Let’s use an example: Say you have an Ubuntu virtual machine with Apache running on port 80, and you want to show other people on your network to access the website you are hosting.

如果您在计算机上运行虚拟机,则可能要从另一台计算机访问该虚拟机。 让我们举个例子:假设您有一个在80端口上运行Apache的Ubuntu虚拟机,并且想让网络上的其他人访问您托管的网站。

We’re going to assume that the virtual machine is using NAT, and has been assigned an IP address of 192.168.23.128.

我们将假设虚拟机正在使用NAT,并且已分配IP地址192.168.23.128。

First open the Manage Virtual Networks start menu item:

首先打开“管理虚拟网络”开始菜单项:

Click on the NAT tab, and then click on Edit. You will see the NAT Settings dia

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值