PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Sep 16, 2019 12:14 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Sep 02, 2010 2:30 am 
Offline
Forum Contributor

Joined: Fri Feb 05, 2010 8:15 pm
Posts: 101
Hi,


I want to access the Website / Web Pages being hosted on the Virtual Machine (Linux) created with Sun VirtualBox onmy Host OS (Windows XP).

The website is working fine on the VM. But I can't access it from the Host OS (Windows XP).

What settings to do I need to configure to accomplish it?

Besides, how can I access the website, being hosted on the Host OS, from within the VM?

What settings to do I need to configure to accomplish it too?

Thanks!


Top
 Profile  
 
PostPosted: Thu Sep 02, 2010 11:05 am 
Offline
Forum Contributor

Joined: Sun Sep 09, 2007 6:27 pm
Posts: 282
One way, I set up a bridged network so the VM is just another IP on my existing network. I did this on a linux host but I imagine a windows host would be much the same.


Top
 Profile  
 
PostPosted: Thu Sep 02, 2010 12:59 pm 
Offline
Forum Contributor

Joined: Fri Feb 05, 2010 8:15 pm
Posts: 101


Top
 Profile  
 
PostPosted: Thu Sep 02, 2010 3:30 pm 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine
You should be able to access it using ip in the url, like this: http://192.168.2.12
If you use apache virtual host (it's not the same as 'virtual machine', mind you), you may need to add the name for the host into c:\windows\system32\drivers\etc\hosts if you want to access web server running inside the virtual machine, and put a name into /etc/hosts if you want to access webserver running on the host from within a virtual machine.


Top
 Profile  
 
PostPosted: Thu Sep 02, 2010 5:32 pm 
Offline
Forum Contributor

Joined: Fri Feb 05, 2010 8:15 pm
Posts: 101


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group