Home » Odeon Blogs » Liviu, Agile Bear »

Local server on Parallels guest OS

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:
  1. # linux/macos
  2. ifconfig
  3. # windows
  4. 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)
  1. ./manage.py runserver XXX.XXX.XXX.XXX:8000
Now you can open up Parallels Guest OS and browse to the Host's IP and you will see your dev server.


Category: Virtualization


Tagged as: apache dev devserver django guest host parallels server virtualization



Leave a Comment :

(required)


(required)




(required)




(required)






Leave a Comment


Page generated in: 0.17s