Virtualbox - 访问托管 virtualbox 的网站 [英] Virtualbox - access to website which is hosted virtualbox

查看:62
本文介绍了Virtualbox - 访问托管 virtualbox 的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想连接到我在 virtualbox 上托管的网站.在 Virtualbox 上安装了 Windows server 2012.我不知道如何连接到 VB 之外的那个站点.

I want to connect to website which i host on virtualbox. On Virtualbox is installed Windows server 2012. I don't know how can I connect to that site outside VB.

推荐答案

这取决于您的网络在 Virtual Box 环境中的设置方式.检查虚拟机设置页面的网络部分.应该有一组适配器选项卡.其中之一应该是启用".该复选框下方是一个标记为附加到:"的下拉菜单,默认设置为 NAT.在 NAT 模式下,您的虚拟 Box 将在您的真实"网络无法看到的专用网络上分配其自己的 IP 地址.虚拟机将能够浏览网页等,但不能与其他机器交互.NAT 模式还可以防止机器从外部互联网可见.

It depends on how your network is setup within the Virtual Box environment. Check under the Network section of the settings page of your Virtual machine. There should be a set of tabs for adapters. One of them should be "enabled". Below that checkbox is a dropdown marked "Attached To:" The default setting is NAT. In NAT mode your virtual Box will be assigned its own IP address on a Private network that can't be seen by your "real" network. The Virtual Machine will be able to browse the web and whatnot but not interact with other machines. NAT mode also prevents the machine from being visible from the outside internet.

如果您将其设置为桥接网络",这将允许虚拟机充当您网络上的任何其他计算机.设置完成后,您的 VM 将拥有一个可由其他本地计算机访问的 IP 地址.

If you set it to "Bridged Networking", this will allow the VM to act as any other computer on your network. Once you have set this up your VM will have an IP address that can be reached by other local computers.

如果您希望该机器在互联网上可见,您需要设置端口转发.

If you then want that machine to be visible from the internet you will need to setup Port Forwarding.

有关更详细的说明,请参阅以下文档.https://www.virtualbox.org/manual/ch06.htmlhttp://catlingmindswipe.blogspot.com/2012/06/how-to-virtualbox-networking-part-two.html

See the following Documentation for more detailed instructions. https://www.virtualbox.org/manual/ch06.html http://catlingmindswipe.blogspot.com/2012/06/how-to-virtualbox-networking-part-two.html

这篇关于Virtualbox - 访问托管 virtualbox 的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆