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
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.
- 938
- 9
- 12
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?
- 3,314