Local server on Parallels guest OS
Are you using VirtualBox? Check out this post.
Parallels is a great virtual machine software, especially for MacOS where the RAM usage is less than half of the VirtualBox load.
As web developer you often need to change OS for cross browser testing and it's best to do it before pushing your code to the production server.
You can use your Host's dev server in the Guest OS, but you need to know 2 things:
1. The Host's LAN IP
Within Parallels Guest OS you can access the Host using it's LAN IP.To find what is your LAN IP type the following in a terminal:
- # linux/macos
- ifconfig
-
- # windows
- ipconfig
2. Start your Host's dev server on the LAN IP
Starting your local server is different from one software to another.For Apache, you will need to edit your httpd.conf and restart it.
For Django, you can just run (where XXX.XXX.XXX.XXX is your LAN IP)
- ./manage.py runserver XXX.XXX.XXX.XXX:8000
Category: Virtualization



Leave a Comment :
Leave a Comment