LAMPP website can't be viewed by other computers? - web

I have a VMware workstation which has Ubuntu in it and I've also installed LAMPP on it, I have already created a full running website using php. I could access the website on my local computer(where the vmware is installed) by using the ip address however if i try using other computers, I couldn't open the website. What am I missing?

One possible cause is that you probably have the VM interface card in NAT mode. If the interface is in NAT mode, your Ubuntu VM will be "hidden" behind the VM host.
Change the Virtual Machine network interface card to bridged mode, in Virtual Machine settings -> Network Adapter.
After setting the interface do Bridged mode, if you have a DHCP server on your network, you only have to renew the IP address of the Ubuntu machine (if it didn't do it automatically).
Check the new IP address of the Ubuntu machine (should be an IP address of your LAN). Use this IP to contact the web server.

Related

VMWare Fusion - External access private IP when no network available

I have IIS running in Windows 8 in a VM on my Mac. With the Networking set to Bridged mode I can access IIS from my Mac using the IP address. This works fine when I'm connected to my network.
What I need to be able to do is access IIS from my Mac when there is no network connection available, and I can't figure it out.
Background: This is so that I can demo a web app to clients in situations where I have no 3G coverage and they don't have wifi I can connect to.
Turns out you need to go to Virtual Machine -> Network Adapter -> Network Adapter Settings, then select Private To My Mac.
The VM won't be able to connect to the internet, but your Mac should be able to connect to the VM on the IP that it's assigned, even when there's no internet connection.
Remember to add rules, or turn off Windows firewall in order to let traffic through to IIS though.

Understanding Virtual Machine IP Address ???? Basics?

Host Machine is Windows 7
and I am using Oracle Virtual Box ( GUEST OS - FEDORA 20). I have enabled bridged connection in between host machine and guest machine. (Did it by selecting bridge connction inside virtual box manager)
Now I am a bit confused about IP addresses.
On my FEDORA guest machine when I do ifconfig. It shows me 2 interfaces. lo (localloop) and p2p1 with an IP address 192.168.0.12.
When I use firefox inside fedora is shows me some ip address which is same ip address as my host machine. (I checked using whats my ip address dot com)
Now I have a few questions
a) How come my guest OS and Host OS have same IP address ?
b) From where does interface p2p1 is getting an address 192.168.0.12 ? Is it assigned by my Wifi router ?
If yes, then is it possible to do ssh to 192.168.0.12 to reach my virtual machine from other machines connected to same router ? (provided if i enable ssh on my virtual machine)
c) Since it's an bridge network, How can I ssh or telnet my host windows machine from virtual machine ?
When I use firefox inside fedora is shows me some ip address which is same ip address as my host machine.
No. It shows the public IP address of your DSL router which is the same for your host and the virtual machine, as any traffic to the internet is going over the router. You need to understand that first.
When you have enabled "bridged connection" the vm is in the same private subnet as your host machine. The IP address 192.168.0.12 has been assigned by the local DHCP server, which is running on your router.
Since both, the vm and your host computer are in the same network you can ssh into your host computer from the vm using your host computer's IP address, which will be 192.168.0.???.

Ping/Access Host Machine FROM Hyper-V VM

I am not sure if this query is valid for this forum.
I have the following setup
1. Host Machine: Windows 8.1 Pro
2. Hyper-V enabled
3. VM [Windows 7] configured with internet access (using ICS from host machine, working fine)
4. RDP enabled to access VM from HOST
Now my question is how to configure Hyper-V in such a way that, from VM machine I will be able to access my Host machine Files, IIS, printer etc [IIS website is my primary focus]
You can only do this through the network layer by using IP address for example.
'VM to HOST' access through the virtualisation layer is impossible.

Allow VirtualBox machine to access IIS site on host machine

I am running a virtual machine using VirtualBox and I'd like the virtual machine to able to access a site that is hosted in IIS on the host machine (my computer).
How is this possible?
Give your VM networking capabilities, connecting to the same network as the host machine will allow the two to communicate / allow you to browse the site from the VM.
http://www.virtualbox.org/manual/ch06.html

How to configure Sharepoint site for intranet?

I am basically a windows developer and very new to Sharepoint. I have Designed a small site in sharepoint on my virtual PC environment.
I want to access it from out side of VPC environment and also from other local LAN machines [like intranet].
How do i configure (IIS/Sharepoint Adm) to make my site as an intranet site?
I googled it, but not able to get desired information. I don't have much knowledge in ISS setting also, kindly provide any help in layman style.
You need to configure Virtual PC to use Virtual Networking:
In this case a virtual machine acts as
an independent computer in a network
with the host computer. If there is a
DHCP server in the network (Dynamic
Host Configuration Protocol) to assign
IP addresses, a virtual machine will
get it and will work as an independent
system in the network (otherwise, you
will have to specify an external IP
manually)
This is actually the default option in Virtual PC. You should be able to access the VM on the network as you would your own machine. Of course this means the VM's network settings must be valid for your network.
You shouldn't have to reconfigure anything is IIS/Sharepoint Adm to get this to work.

Resources