Сервер доступа, работающий в VirtualBox [закрыто]

Я использую Windows 7, но использую Linux Ubuntu в VirtualBox. Я установил сервер LAMP в Ubuntu, но не знаю, как получить к нему доступ. Прямо сейчас мой маршрутизатор настроен на переадресацию порта на мой IP-адрес, но этот IP-адрес подходит только для моего HOST-компьютера. Есть ли способ перенаправить на мою виртуальную гостевую ОС?

-1
задан 5 October 2012 в 11:30
2 ответа

In Virtualbox's settings, set the machine to have a Bridge Network adapter. That means that your guest will have a proper IP address on your network and will not simply use NAT through the host. Then you can set your router to forward the port to the guest's IP.

2
ответ дан 5 December 2019 в 19:32

The default networking mode for Virtualbox is NAT. You can either configure Port forwarding in Virtualbox (as well as on your router) or using bridge mode networking where your VM guest is connected directly to the network.

See Virtual networking

0
ответ дан 5 December 2019 в 19:32

Теги

Похожие вопросы