
In the terminal, on MAC and LINUX type ifconfig |grep inet, on WINDOWS type ipconfig. We first need to know the IP address on the computer that hosts the website (the one we've been working on since the very beginning). Well this is now easy! We just need to tell the other computers how they could find symfony.local! How do we do this?ģa Get the IP address of the computer hosting the website:

How can I now access my website through an other computer? We finally arrive to your main question which is: It will understand that you want to work on localhost (127.0.0.1).ģ Access symfony.local from an other computer: # localhost is used to configure the loopback interfaceįrom now on, everytime you type symfony.local on this computer, your computer will use the loopback interface to connect to symfony.local.

You need to provide the name of the Virtual Host as well as the root/main folder of your website.

This step prepares the Web server on your computer for handling symfony.local requests. On MAMP, you can find this file here: Applications/MAMP/conf/apache/extra/nf.

On XAMP, you can find this file here: C:\xampp\apache\conf\extra\nf. You first need to set up a virtual host in your apache nf file. Let's say you're a big Symfony2 fan and you would like to access your symfony website at from 4 different computers (the main one hosting your website, as well as a Mac, a Windows and a Linux distro connected (wireless or not) to the main computer. We'll take a general case with Apache here.
