Page 1 of 1
Win 7 IIS VM Network Settings
Posted: 21. Aug 2012, 17:10
by craig100
Hi,
On Win 7 x32 I have IIS installed with a web site set up on it. I want to be able to access this web site from the same machine's browser. I can hit the home page but any internal links for things like stylesheets and javascripts don't work. I think it's because of the network settings of the virtual machine but am not sure. I've tried both a single network adapter set to NAT, and two network adapters, one set to NAT and one to Bridged.
Any advice would be appreciated.
Craig
Re: Win 7 IIS VM Network Settings
Posted: 22. Aug 2012, 02:24
by BillG
This is a bit unclear. Where is IIS installed and where are you trying to access it from? The host and the guest are not "the same machine"!
If you are trying to access the host from the guest (or vice versa), host only is the best networking choice. It will work even if the host is not connected to any network.
Re: Win 7 IIS VM Network Settings
Posted: 22. Aug 2012, 09:57
by craig100
I'll expand it a bit further.
I have IIS installed in a W7 Virtual Machine guest on a Linux MInt Host. It is a development VM I use to build web sites. I normally don't specifically interfere with IIS as it's just there for WebMatrix or Visual Studio to use. However I have a specific need to install an Umbraco site on it's own for test purposes. So I set up a web site in IIS to point to a web site directory on "the same machine" i.e. the same VM. So I want to use the VM's web browser to see the web site on the same VM (i.e. all on the same VM).
I can hit the root directory of the site but don't get anything that's referenced by links in the source like stylesheets and javascripts. This is the bit I need help with, the network settings for the VM.
Thanks,
Craig
Re: Win 7 IIS VM Network Settings
Posted: 22. Aug 2012, 13:27
by craig100
While it may or may not be due to running IIS in the VM, I found the solution was in IIS and not the VM network settings. In the site's IIS - Authentication section I had to set Anonymous Authentication Credentials User Identity to "Application pool identity"
Hope this helps someone else when they're told they're daft for running in a VM, you're not;)
Craig