Web 访问虚拟机

发布于 2024-07-05 11:38:27 字数 73 浏览 7 评论 0原文

它们是一种从主机访问安装在虚拟机(例如 vmware)上的 Web 服务器(例如 Windows Server 2003)的方法吗?

Is their a way to access a web server such as windows server 2003 installed on a virtual box such as vmware from the host machine?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

伴梦长久 2024-07-12 11:38:27

如果将虚拟机配置为使用桥接网络而不是 NAT,它将在主机“旁边”拥有自己的 IP 地址,而不是在主机“后面”使用本地 IP 地址。 然后您可以使用该 IP 号连接到虚拟机。

(免责声明:我已经使用 VMware 工作站好几年了,但没有使用他们的服务器产品。)

If you configure your virtual machine to use bridged networking, instead of NAT, it will have its own IP address "beside" the host machine, instead of a local IP address "behind" it. Then you can connect to the virtual machine, using that IP number.

(Disclaimer: I've used VMware workstation for several years, but not their server products.)

流云如水 2024-07-12 11:38:27

如果VMware设置为使用桥接网络,那么每个客户操作系统实际上都有自己的IP地址,就像brien所说,你只需将浏览器指向该地址即可。

If VMware is set to use bridged networking, then each guest OS effectively has its own IP address, like brien said, you just point your browser to that address.

遗忘曾经 2024-07-12 11:38:27

IP地址应该可以做到。

IP address should do it.

雨落星ぅ辰 2024-07-12 11:38:27

我遇到了同样的问题。 您必须在虚拟机中将网络连接设置为“桥接模式”。 然后你必须找出你的网络服务器的IP。

有时网络服务器会重定向到特定的 URL。 在这种情况下,您可以在 C:/Windows/System32/drivers/etc/hosts 中编辑您的主机文件,并使用重定向的 URL 添加您的 IP,如下所示:

192.168.0.37 some.url-you.need

然后您的主机可以访问 Web 服务器。 即使是以太网的参与者也可以访问网络服务器。

I faced the same issue. You have to set your networkconnection to "bridged mode" in your VM. Then you have to find out the IP of your Webserver.

Sometimes Webservers have a redirect to a specific URL. In this case you can edit your host-file in C:/Windows/System32/drivers/etc/hosts and add your IP with the redirected URL like this:

192.168.0.37 some.url-you.need

Then your Host can go to the Webserver. Even participants of your Ethernet can access the Webserver.

不醒的梦 2024-07-12 11:38:27

是的,您应该只能指向虚拟机的 IP 地址。

您的虚拟机网络是如何配置的?

Yes, you should just be able to point to the IP address of the VM.

How is your VM networking configured?

旧夏天 2024-07-12 11:38:27

我在所有地方都这样做,只需确保虚拟机配置了IP即可。

I am doing this all over the place, just make sure that the vm has an ip configured.

掩饰不了的爱 2024-07-12 11:38:27

我相信 vmware(工作站?)还内置了一个虚拟网络客户端(VNC),您可以连接到它 - 通过转到虚拟机的配置属性来启用它,并且在最后一个选项卡中有一个复选框。

i believe vmware (workstation?) also has built in a virtual network client (VNC) that you can connect to - enable it by going to the configuration properties of the vm, and in the last tab there is a checkbox for it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文