Hi
If you created a Virtual Host for your project
(and you should for each new project) then yes amending the hosts file on the other PC's that want to access your site (Apache) as a pseudo central server is the correct thing to do.
Of course the Big Boys solution would be to amend your local DNS Server which all your internal PC's used as their DNS Server. But of course most of us dont have a local DNS Server, and dont want to get into that level of complexity. So the simple solution is to add a line to each of the other PC's HOSTS file so they know where to go to find the domain you created by creating a Virtual Host.
For others that may find this question, here is an example.
Assume your Virtual Host in Apache defines `ServerName project1.test`
and that your WAMPServer PC has an ip address of `192.168.0.10`
Then you would add this to your `\windows\system32\drivers\etc\hosts` file on the WAMPServer machine so that when you browse to that site on the WAMPServer PC you would get to the right site
192.168.0.10 project1.test
So on each of the other PC's in your network that want to access the `project1.text` site, you add the same line to the HOSTS file on all those PC's as well.
Windows caches results from all DNS accesses, so it does not have to ask a DNS server more than once per boot session for the same ip address for a domainname you already accesses.
When windows boots, it read the HOSTS file and seeds the dns cache with anything it finds in there.
Or you can refresh the DNS Cache manually after changing the HOSTS file from a command prompt started using the "Run as Administrator" option like this
>net stop dnscache
>net start dnscache
---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>Read The Manuals Apache --
MySQL --
PHP --
phpMyAdminGet your Apache/MySQL/mariaDB/PHP ADDONs here from the
WAMPServer alternate Repo-X-X-X-
Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-
Edited 3 time(s). Last edit at 02/09/2018 11:52AM by RiggsFolly.