access local Lan's http server inside virtualbox.

Hi

I have a LAN under a wifi router.

A desktop has virtualbox installed and that guest OS is running httpd server.

I want to access this httpd from other LAN machines as well as from ipad.

I can edit hosts file of other machines but I cant do this in ipad.

Only thing i can do is change the proxy setting in ipad.

For more understanding I have attached Image. Design
BToTheAToTheBABAAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pritamduttCommented:
All you need is to configure Bridged Networking for the Virtual Machine

Steps to be followed are

1. Stop the Virtual Machine
2. Right Click the Virtual Machine
3. Click On Settings
4. Click on Network
5. Change Attached To to  Bridged Adapter

Now your virtual machine will have its own IP on your LAN and will be accessible from LAN.

Hope this helps
0
pritamduttCommented:
You can find more information about various Networking Options of Virtual Box @
http://www.virtualbox.org/manual/ch06.html
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
If you are using the default NAT networking option change to Bridged.

or you could use Advanced NAT.
0
Turn Raw Data into a Real Career

There’s a growing demand for qualified analysts who can make sense of Big Data. With an MS in Data Analytics, you can become the data mining, management, mapping, and munging expert that today’s leading corporations desperately need.

naveencnairCommented:
With the jalbroken and ssh enabled ios you can do edit your host file in iPad which is in  /private/etc/hosts
and add your Virtual Box's host name in it. Or change your Virtual box settings to bridged to access it from the same network.

0
BToTheAToTheBABAAuthor Commented:
Hi,

I added a new "Bridged Adapter" to that guest OS.

Now Inside my Guest OS Im seeing a new LAN IP Address, Howerver I cant ping this IP from LAN.

The Host OS has no change in the ipconfig /all.

Thanks
access-local-web--1-.png
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
so you guest gets and IP address of 192.168.0.4 from the router on your LAN?

what machine are you trying to ping from?

Firewall enabled in VM Guest 192.168.0.4?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
what IP address does the host have?

0
BToTheAToTheBABAAuthor Commented:
host OS cmd prompt ipconfig /all
shows the following

ip is still 192.168.0.2
virtualbox host only adapter is still showing 192.168.52.1
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you will not be able to ping the VM from the host, because they are on different networks.

change the hosts network to 192.168.0.x.
0
pritamduttCommented:
You do not need Host Only Adapter to ping from Host.

Once you install a Bridge Adapter, the Virtual Machine will be able to communication with Host as well as other Machines on Network.

However you need to take care of the following:

1. The Bridge Adapter is mapped to correct LAN Adapter on your system (in case you have multiple adapters on the system)
2. The firewall of the Virtual Machine Permits pinging from network. Try disabling the firewall on guest os.


Hope this helps!
0
BToTheAToTheBABAAuthor Commented:
Firewall in guest OS looks fine.

But I dont know how to check if "Bridge Adapter is mapped to correct LAN Adapter"
Can u explain a bit about how to see this in ref with my previous image/sys-diagram posted.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You need to run the Virtual Network Editor, which should be a shortcut in your VMware group.
0
BToTheAToTheBABAAuthor Commented:
@hanccocka

But I think my question is about VirtualBox & you are answering about VMWare.

[ Oracle VM VirtualBox ] and I dont know about VMware.

I think u answered initially with virtualbox in mind,
but im not sure from when u started talking about vmware.
0
pritamduttCommented:
Hi there....

Step 1: Which interface to choose for Bridged Network?

Right Click on your Local Area Connection icon, and choose properties.

Look for the name below "Connect Using"

  LAN Properties

Step 2: Ensure Bridge Related Network Drivers and Protocols are enabled on your host network interface.

Please see the image above, you would find that VMWare Bridge Protocol and VirtualBox Bridged Networking Driver are enabled for your network.

Step 3: Map Bridged Adapter.

Once you have identified your network adapter, select the same in your Virtual Machine's Network Settings Configuration Area, as depicted below:

Oracle VMBox Bridge Network Interface
Step 4: Once you have mapped and enabled the Bridged Adapter, boot your guest operating system.

Assign IP to your Guest OS - 192.168.0.4.
Validate your IP Configuration in the guest os using ifconfig if linux!

Now you should be able to ping other machines on network from Guest OS and vice versa.

If you still face issues, kindly share the following:
1. IPCONFIG /ALL Output for the HOST Machine
2. IPCONFIG /ALL or IFCONFIG output for the GUEST OS
3. Oracle VirtualBox Network Settings Configuration screenshot for your Guest OS as shared by me.

I hope we find a solution soon...

Regards,
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
oh, yes, sorry, slipped back into VMware there!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Network Operations

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.