0

To elaborate, can I have for example OSX running virtually on my Windows machine. Where OSX is running an apache web server exposed to localhost. And the windows machine can access it, by going to the Lan IP address of the virtual OSX in a browser?

2 Answers 2

0

Short answer yes.

As long as the ports are open, you'll be able to access the web server. I would recommend using a linux, as plenty of OSX have issues when running in VM, and depending on your chip (AMD) it can be a nightmare.

Here is a guide on ubuntu, https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04 that I've used numerous times, they have plenty of guides on wordpress too if that's where you're going.

3
  • Is there a special setting so that the virtual OS can request an IP via DHCP instead of using the host OS's connection? Commented May 24, 2017 at 21:53
  • @johndunsworth Yes, depending on the version of VM you're using, you can. I would recommend VMbox, and have the device have a static IP instead of a DHCP. The VM will always use the Host's connection, but the IP will be different.
    – JustAGrump
    Commented May 24, 2017 at 21:55
  • Great thanks, I plan on using it to deploy iOS apps in Visual Studio in windows via the 'Connect to a Mac' build option. It asks you for the IP of you mac. OSX then install the app on an iOS device and reports back to the debugger. Commented May 24, 2017 at 22:00
0

Yes. Typically the VM will either be using NAT networking (which means that it is has an IP address local to the host) or will be using bridged networking (which makes the VM act like a separate physical machine on your network).

Also see: What is the difference between NAT / Bridged / Host-Only networking?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .