LoginSignup
11
19

More than 5 years have passed since last update.

外部からVirtualBox内のサーバにアクセス

Last updated at Posted at 2016-05-26

概要

 VirtualBoxにポートフォワーディングの設定があったので、それを利用して仮想環境に接続します。

手順

1.VirtualBoxの設定を開く

2.ネットワークタブのポートフォワーディングの設定を開く

キャプチャ.PNG

3.新たにルールを追加する
 名前、ホストポートを任意で設定し、ゲストポートを仮想環境のApacheで設定した値にします。

キャプチャ2.PNG

以上です。
本体のPCのIPアドレス:[ホストポート]で仮想環境に接続されるようになります。

11
19
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
19