Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use the IIS server in a VM on Mac host?

I need to access my http://localhost/ (in IIS 6 on VM) from the MAC Host (Safari).

I am using NAT (or can use Bridged) network connection to the Guest, but not sure how to identify IP addresses, etc. A novice when it comes to networking ;-)

Thanks, Geoff

like image 387
Geoff Avatar asked Nov 17 '10 07:11

Geoff


People also ask

How do I access IIS on Mac?

You would need to start listening & route a port on the Mac into the relevant port(s) of the IIS server. One way would be to enable ssh on the Mac. Then you can ssh into the Mac (from the Mac itself) and tie the port on the IIS server to a port that is available on the local network.

Can I run IIS Express on Mac?

IIS doesn't run on Mac, so I guess you should try Apache, and then install module "mod_mono". Or if that gets too hairy, just use the standalone mono web server called XSP. Or run FastCGI, or nginx.


2 Answers

A simple solution if you want a consistent hostname is to install Bonjour for Windows in the VM with bridged networking and then use http://computername.local in Safari.

It's possible to forward ports from a NATed VM too or ensure a consistent IP address if you want; some instructions are here.

like image 149
Nicholas Riley Avatar answered Sep 28 '22 01:09

Nicholas Riley


In Safari, you should be able to type in the IP address of your VM and be able to access IIS that way. Firewall settings permitting of course, but I assume you've set that up already.

If it doesn't work, could you please post more details about your current setup (VM software being used to run the guest, OS X version, Windows version) and I'm sure we'll be able to troubleshoot further.

like image 28
Coxy Avatar answered Sep 28 '22 03:09

Coxy