![]() |
Accessing Website Being Hosted on Virtual Machine
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! |
Are you able to do ping from HOST to VM?
Are you able to access other service of VM machine? What is your network card setting of VM Machine? |
Connectivity Between Host OS and Guest OS
Quote:
I am able to ping and ssh to the VM. I have not tried accessing any other services yet. I have set Bridged connection (in the VM Settings) to be able to connect to the VM through ssh and telnet, etc. |
If you can ping to the VM machine, hope can access webserver too, just type & hit in web browser somewhere within your LAN as like http://vm machine ipaddress , please makesure the VM machine firewall allowed the webserver listening port
|
Quote:
Any settings in that file need to be done? When I type http://ip-of-vm:80 it is automatically replaced with http://ip-of-vm in the browser, and then website not found error comes up. |
As kirukan said check firewall setting and also check selinux if running.
you can check http port responding or not using telnet command. Code:
debian:~# telnet ip_of_server 80Code:
GET |
You can also use curl to check your web server response
Code:
curl http://www.example.com -v |
Quote:
Thanks for introducing a new command to me! |
Quote:
|
Quote:
Thanks! |
Hi,
Here is how I solved the problem: I was able to ping the VM using its IP but not by its host name. I made an entry in the file "c:\windows\system32\drivers\etc\hosts" and voila! Well, I also enabled "Secure Web Server (HTTPS)", "Telnet", and "FTP" service in Firewall to flag them as a Trusted Services on the VM. Now I can browse the website on the Host OS. I have done similar settings in Firewall on the Windows Box also. I also in added an entry in /etc/hosts on the VM to ping the Host OS. Now I can access the website running on IIS within the VM. So, the problem of accessing website from VM on Host OS and vice versa is resolved! I can also ping both the servers from each end. Thanks to all of you! |
| All times are GMT -5. The time now is 10:07 PM. |